2022-11-29 16:25:24 +01:00
|
|
|
add_compile_options(-Wno-incompatible-pointer-types)
|
|
|
|
|
2022-12-07 10:57:58 +01:00
|
|
|
add_executable(test_trie test_trie.c ../src/trie.c)
|
2022-11-29 20:59:28 +01:00
|
|
|
add_test(NAME test_trie COMMAND test_trie)
|
2022-12-07 23:20:39 +01:00
|
|
|
|
2022-12-07 10:57:58 +01:00
|
|
|
add_executable(test_trie_fuzzy test_trie_fuzzy.c ../src/trie.c)
|
2022-11-29 16:25:24 +01:00
|
|
|
add_test(NAME test_trie_fuzzy COMMAND test_trie_fuzzy)
|
2022-12-07 23:20:39 +01:00
|
|
|
|
|
|
|
add_test(NAME test_leaks COMMAND valgrind --tool=memcheck --error-exitcode=1 --track-origins=yes --leak-check=full ./test_trie)
|
|
|
|
add_test(NAME test_fuzzy_leaks COMMAND valgrind --tool=memcheck --error-exitcode=1 --track-origins=yes --leak-check=full ./test_trie_fuzzy)
|
|
|
|
|