-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.am
42 lines (31 loc) · 888 Bytes
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SUBDIRS = plugins tools tests
EXTRA_DIST = autogen.sh
ACLOCAL_AMFLAGS = -I m4
include tests/names.mk
test: update-test-suite clean-test-data $(TESTS)
demo: $(UI_TESTS)
show-tests:
@printf "Available tests:\n\t$(TESTS)\n"
@printf "And these tests demonstrate the UI:\n\t$(UI_TESTS)\n"
@printf "You may want to do 'make test-*' for specific test.\n"
$(TESTS) $(UI_TESTS):
@$(MAKE) -C tests $@
update-test-suite: tests/test-switch-server tests/test-fd-leaks
$(MAKE)
tests/test-switch-server: tests/test_switch_server.c \
tools/*.h tools/*.c
tests/test-fd-leaks: tests/test_fd_leaks.c \
tools/*.h tools/*.c
clean-test-data:
rm -f "tests/test-recording "*" "*.data
rm -f "tests/test-server-"*.log
valgrind:
./tests/run_server_in_valgrind.sh $(TESTS)
if GPROF_ENABLED
perf:
echo "TODO: program profiling"
endif
if GCOV_ENABLED
coverage:
$(MAKE) -C tools coverage
endif