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