Reordered files and directories.
[qshowdiff.git] / tests / Makefile
blob27aee9a6ffe6cfdbe3150b7f72ff01a1374a2b2d
1 ALL_FLAGS_TEST = $(ALL_FLAGS) -I../src/diff
2 ALL_LD_FLAGS_TEST = $(ALL_LD_FLAGS) -lcppu
4 TEST_SUITES = text.cpp snippet.cpp hunk.cpp
5 OBJS = ../src/diff/text.o ../src/diff/snippet.o ../src/diff/hunk.o
7 all: run_tests
8 run_tests: test
9 -cppu-aggregate ./test
10 @echo
11 @echo -ne "Press key to start valgrind "
12 @read key
13 -valgrind --leak-check=full --show-reachable=yes ./test
15 test: main.cpp $(TEST_SUITES)
16 $(CC) $(ALL_FLAGS_TEST) -o $@ $< $(OBJS) $(ALL_LD_FLAGS_TEST)
18 clean:
19 rm -f test
20 rm -f *.o
22 .PHONY: all run_tests