add_compile_options(-Wno-incompatible-pointer-types) add_executable(test_trie test_trie.c ../src/trie.c) add_test(NAME test_trie COMMAND test_trie) add_executable(test_trie_fuzzy test_trie_fuzzy.c ../src/trie.c) add_test(NAME test_trie_fuzzy COMMAND test_trie_fuzzy) 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)