]> git.lizzy.rs Git - dragonstd.git/blob - dragonstd/test/Makefile
Tests: add address sanitizer
[dragonstd.git] / dragonstd / test / Makefile
1 CC=cc -g -Wall -Wextra -Werror -fmax-errors=1 -fsanitize=address
2 TEST=valgrind --leak-check=full --show-leak-kinds=all --quiet
3
4 run: test_array test_list test_tree test_queue test_flag test_refcount_map
5         $(TEST) ./test_array && \
6         $(TEST) ./test_list  && \
7         $(TEST) ./test_tree  && \
8         $(TEST) ./test_queue && \
9         $(TEST) ./test_flag  && \
10         $(TEST) ./test_refcount_map
11
12 test_%: test_%.c ../*.h ../*.c ../bits/*.h ../bits/*.c
13         $(CC) $< ../*.c ../bits/*.c -o $@ -lpthread
14
15 clean:
16         rm -rf test_array test_list test_tree test_queue test_flag test_refcount_map