e0b151158ce23015f618d3ceac55ed3ce960226f
[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  gnunet_pyexpect.py
19
20 if HAVE_PYTHON_PEXPECT
21 check_SCRIPTS = \
22  test_integration_bootstrap_and_connect.py \
23  test_integration_bootstrap_and_connect_and_disconnect.py \
24  test_integration_restart.py \
25  test_integration_clique.py \
26  test_integration_clique_nat.py
27 endif
28 # test_integration_disconnect.py 
29
30
31 if ENABLE_TEST_RUN
32 TESTS = \
33  $(check_SCRIPTS)  
34 endif
35
36 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
37
38 %.py: %.py.in Makefile
39         $(do_subst) < $(srcdir)/$< > $@
40         chmod +x $@
41
42 gnunet_testing.py: gnunet_testing.py.in Makefile
43         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
44         chmod +x gnunet_testing.py      
45
46 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
47         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
48         chmod +x gnunet_pyexpect.py     
49
50 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
51         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
52         chmod +x test_integration_bootstrap_and_connect.py
53
54
55 test_integration_bootstrap_and_connect_and_disconnect.py.in: test_integration_bootstrap_and_connect_and_disconnect.py.in Makefile
56         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect.py.in > test_integration_bootstrap_and_connect_and_disconnect.py
57         chmod +x test_integration_bootstrap_and_connect_and_disconnect.py
58
59 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
60         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
61         chmod +x test_integration_disconnect.py
62
63 #test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
64 #       $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
65 #       chmod +x test_integration_disconnect_nat.py
66
67 test_integration_restart.py: test_integration_restart.py.in Makefile
68         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
69         chmod +x test_integration_restart.py    
70
71 test_integration_clique.py: test_integration_clique.py.in Makefile
72         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
73         chmod +x test_integration_clique.py     
74
75 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
76         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
77         chmod +x test_integration_clique_nat.py 
78
79
80 EXTRA_DIST = \
81    gnunet_testing.py.in \
82    gnunet_pyexpect.py.in \
83    test_integration_bootstrap_and_connect.py.in \
84    test_integration_disconnect.py.in \
85    test_integration_restart.py.in \
86    test_integration_clique.py.in \
87    test_integration_clique_nat.py.in \
88    confs/c_bootstrap_server.conf \
89    confs/c_nat_client.conf \
90    confs/c_no_nat_client_2.conf \
91    confs/c_no_nat_client.conf \
92    hostkeys/0000-hostkey \
93    hostkeys/0001-hostkey \
94    hostkeys/0002-hostkey \
95    hostkeys/0003-hostkey \
96    hostkeys/0004-hostkey \
97    hostkeys/0005-hostkey \
98    hostkeys/0006-hostkey \
99    hostkeys/0007-hostkey \
100    hostkeys/0008-hostkey \
101    hostkeys/0009-hostkey 
102 #   test_integration_disconnect_nat.py 
103
104 CLEANFILES = \
105         $(check_SCRIPTS) \
106         gnunet_testing.py