improved test framework
[oweals/gnunet.git] / src / integration-tests / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 bin_PROGRAMS =
13
14 check_PROGRAMS =
15
16 noinst_SCRIPTS = \
17  gnunet_testing.py
18
19 if HAVE_PYTHON_PEXPECT
20 check_SCRIPTS = \
21  test_integration_bootstrap_and_connect.py \
22  test_integration_disconnect.py \
23  test_integration_clique.py
24 endif
25
26
27 if ENABLE_TEST_RUN
28 TESTS = \
29  $(check_SCRIPTS)  
30 endif
31
32 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
33
34 %.py: %.py.in Makefile
35         $(do_subst) < $(srcdir)/$< > $@
36         chmod +x $@
37
38 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
39         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
40         chmod +x test_integration_bootstrap_and_connect.py
41
42 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
43         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
44         chmod +x test_integration_disconnect.py
45         
46 test_integration_clique.py: test_integration_clique.py.in Makefile
47         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
48         chmod +x test_integration_clique.py     
49
50 EXTRA_DIST = \
51    gnunet_testing.py.in \
52    test_integration_bootstrap_and_connect.py.in \
53    test_integration_disconnect.py.in \ 
54    test_integration_clique.py.in
55
56 CLEANFILES = \
57         $(check_SCRIPTS) \
58         gnunet_testing.py