forked from duzy/gst-switch
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile.am
73 lines (56 loc) · 1.86 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
SUBDIRS = plugins tools tests/unit tests
EXTRA_DIST = autogen.sh
ACLOCAL_AMFLAGS = -I build
include tests/names.mk
test:
make style unittests integration
# TODO: Use configure to detect Python versions currently installed
cd python-api; make PYTHONVERSION=2.7 style unittests integration
cd python-api; make PYTHONVERSION=3.4 style unittests integration
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
$(MAKE) -C tests/unit coverage
clean-local:
rm -f tools/*.gcno
rm -f tools/*.gcda
rm -f tools/*.gcov
endif
style:
git status || true
git diff || true
git diff-files; echo $$?
git diff-files --quiet || (echo "Can only run make style on clean repo"; git status; git diff; git diff-files; exit 1)
@echo "--------------------------------------------------------"
@echo "--------------------------------------------------------"
for i in $$(find -name \*.c -o -name \*.h); do ./scripts/indent $$i; done
git diff
@echo "--------------------------------------------------------"
@echo "--------------------------------------------------------"
@git diff-files --quiet || (echo "Style errors found!"; exit 1)
integration:
$(MAKE) -C python-api integration
unittests:
$(MAKE) -C tests/unit check