6 # *sigh* - there is no way to get CPPFLAGS or CFLAGS for a group of files :(
9 TESTS_CPPFLAGS = $(AM_CPPFLAGS) \
10 -I$(top_srcdir)/tests/helpers/c \
11 -I$(top_builddir)/tests/helpers/c \
27 ALL_TESTS_LDADD = lib/libfrr.la $(LIBCAP)
31 tests/helpers/python/frrsix.py \
32 tests/helpers/python/frrtest.py \
38 .PHONY: tests/tests.xml
39 tests/tests.xml: $(check_PROGRAMS)
40 ( cd tests; $(PYTHON) ../$(srcdir)/tests/runtests.py --junitxml=tests.xml -v ../$(srcdir)/tests $(PYTEST_IGNORE); )
41 check: tests/tests.xml
43 clean-local: clean-tests
46 -rm -f tests/tests.xml
51 ### conditional (if needed) - ONLY for "check_PROGRAMS +=" line!
53 # check_PROGRAMS += tests/daemon/test_foo
55 ### CFLAGS/CPPFLAGS/LDADD as usual, extend on top of TESTS_XYZFLAGS
56 # tests_daemon_test_foo_CFLAGS = $(TESTS_CFLAGS)
57 # tests_daemon_test_foo_CPPFLAGS = $(TESTS_CPPFLAGS)
58 # tests_daemon_test_foo_LDADD = $(ALL_TESTS_LDADD)
59 # tests_daemon_test_foo_SOURCES = tests/daemon/test_foo.c
60 ### don't forget "nodist_" for autogenerated source files, & add to CLEANFILES
61 # nodist_tests_daemon_test_foo_SOURCES = tests/daemon/test_foo_autogen.c
62 # CLEANFILES += tests/daemon/test_foo_autogen.c
63 ### clippy_scan works normally
64 # clippy_scan += tests/daemon/test_foo.c
65 ### header files for tests go into "noinst_HEADERS"
66 # noinst_HEADERS += tests/daemon/foo.h
67 ### all python scripts & auxiliary files are added into EXTRA_DIST
68 # EXTRA_DIST += tests/daemon/test_foo.py
71 include tests/bgpd/subdir.am
72 include tests/isisd/subdir.am
73 include tests/ospfd/subdir.am
74 include tests/ospf6d/subdir.am
75 include tests/zebra/subdir.am
76 include tests/lib/subdir.am