improvements and fixes
[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_restart.py \
24  test_integration_clique.py \
25  test_integration_clique_nat.py
26 endif
27
28
29 if ENABLE_TEST_RUN
30 TESTS = \
31  $(check_SCRIPTS)  
32 endif
33
34 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
35
36 %.py: %.py.in Makefile
37         $(do_subst) < $(srcdir)/$< > $@
38         chmod +x $@
39
40 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
41         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
42         chmod +x test_integration_bootstrap_and_connect.py
43
44 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
45         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
46         chmod +x test_integration_disconnect.py
47
48 test_integration_restart.py: test_integration_restart.py.in Makefile
49         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
50         chmod +x test_integration_restart.py    
51         
52 test_integration_clique.py: test_integration_clique.py.in Makefile
53         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
54         chmod +x test_integration_clique.py     
55
56 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
57         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
58         chmod +x test_integration_clique_nat.py 
59
60
61 EXTRA_DIST = \
62    gnunet_testing.py.in \
63    test_integration_bootstrap_and_connect.py.in \
64    test_integration_disconnect.py.in \
65    test_integration_restart.py.in \ 
66    test_integration_clique.py.in \
67    test_integration_clique_nat.py.in
68
69 CLEANFILES = \
70         $(check_SCRIPTS) \
71         gnunet_testing.py