51885ead4d9d21cb2d4e9d2dc09a39bfabafad57
[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 # connection_watchdog
14
15 noinst_PROGRAMS = connection_watchdog
16
17 noinst_SCRIPTS = \
18  gnunet_testing.py \
19  gnunet_pyexpect.py \
20  test_integration_connection_values_tcp.py \
21  test_integration_connection_values_tcp_udp.py \
22  test_integration_connection_values_tcp_udp_http.py
23
24 if HAVE_PYTHON
25 check_SCRIPTS = \
26  test_integration_bootstrap_and_connect.py \
27  test_integration_bootstrap_and_connect_and_disconnect.py \
28  test_integration_bootstrap_and_connect_and_disconnect_nat.py \
29  test_integration_restart.py \
30  test_integration_clique.py \
31  test_integration_clique_nat.py \
32  test_integration_connect_on_restart.py
33 endif
34 # test_integration_disconnect.py 
35
36 # This temporary test does one thing: hangs up for 1300 seconds
37 # to test buildslave hangup process killing functionality
38 # It's in integration tests because integration-tests is one of the few
39 # tests that are configured to run under more-than-1200-seconds watchdog
40 if MINGW
41   hangup_SCRIPTS = test_buildslave_hangup.py
42 else
43   hangup_SCRIPTS = 
44 endif
45 if HAVE_MHD
46 if ENABLE_TEST_RUN
47 TESTS = \
48  $(hangup_SCRIPTS) \
49  $(check_SCRIPTS)  
50 endif
51 endif
52
53 connection_watchdog_SOURCE = \
54  connection_watchdog.c      
55 connection_watchdog_LDADD = \
56   $(top_builddir)/src/statistics/libgnunetstatistics.la \
57   $(top_builddir)/src/core/libgnunetcore.la \
58   $(top_builddir)/src/transport/libgnunettransport.la \
59   $(top_builddir)/src/util/libgnunetutil.la
60
61 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
62
63 %.py: %.py.in Makefile
64         $(do_subst) < $(srcdir)/$< > $@
65         chmod +x $@
66
67 gnunet_testing.py: gnunet_testing.py.in Makefile
68         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
69         chmod +x gnunet_testing.py      
70
71 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
72         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
73         chmod +x gnunet_pyexpect.py     
74
75 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
76         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
77         chmod +x test_integration_bootstrap_and_connect.py
78
79 test_integration_bootstrap_and_connect_and_disconnect.py: test_integration_bootstrap_and_connect_and_disconnect.py.in Makefile
80         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect.py.in > test_integration_bootstrap_and_connect_and_disconnect.py
81         chmod +x test_integration_bootstrap_and_connect_and_disconnect.py
82
83 test_integration_bootstrap_and_connect_and_disconnect_nat.py: test_integration_bootstrap_and_connect_and_disconnect_nat.py.in Makefile
84         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in > test_integration_bootstrap_and_connect_and_disconnect_nat.py
85         chmod +x test_integration_bootstrap_and_connect_and_disconnect_nat.py
86
87
88 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
89         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
90         chmod +x test_integration_disconnect.py
91
92 #test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
93 #       $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
94 #       chmod +x test_integration_disconnect_nat.py
95
96 test_integration_restart.py: test_integration_restart.py.in Makefile
97         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
98         chmod +x test_integration_restart.py    
99
100 test_integration_clique.py: test_integration_clique.py.in Makefile
101         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
102         chmod +x test_integration_clique.py     
103
104 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
105         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
106         chmod +x test_integration_clique_nat.py 
107
108 test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
109         $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
110         chmod +x test_integration_connect_on_restart.py         
111
112 test_integration_connection_values_tcp.py: test_integration_connection_values_tcp.py.in Makefile
113         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp.py.in > test_integration_connection_values_tcp.py
114         chmod +x test_integration_connection_values_tcp.py              
115
116 test_integration_connection_values_tcp_udp.py: test_integration_connection_values_tcp_udp.py.in Makefile
117         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp.py.in > test_integration_connection_values_tcp_udp.py
118         chmod +x test_integration_connection_values_tcp_udp.py          
119
120 test_integration_connection_values_tcp_udp_http.py: test_integration_connection_values_tcp_udp_http.py.in Makefile
121         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp_http.py.in > test_integration_connection_values_tcp_udp_http.py
122         chmod +x test_integration_connection_values_tcp_udp_http.py             
123
124
125 EXTRA_DIST = \
126    gnunet_testing.py.in \
127    gnunet_pyexpect.py.in \
128    test_integration_connection_values_tcp.py.in \
129    test_integration_connection_values_tcp_udp.py.in \
130    test_integration_connection_values_tcp_udp_http.py.in \
131    test_integration_bootstrap_and_connect.py.in \
132    test_integration_bootstrap_and_connect_and_disconnect.py.in \
133    test_integration_bootstrap_and_connect_and_disconnect_nat.py.in \
134    test_integration_connect_on_restart.py.in \
135    test_integration_disconnect.py.in \
136    test_integration_restart.py.in \
137    test_integration_clique.py.in \
138    test_integration_clique_nat.py.in \
139    confs/c_bootstrap_server.conf \
140    confs/c_bootstrap_server_w_massif.conf \
141    confs/c_nat_client.conf \
142    confs/c_no_nat_client_2.conf \
143    confs/c_no_nat_client.conf \
144    confs/c_normal_client_tcp.conf \
145    confs/c_normal_client_tcp_udp.conf \
146    confs/c_normal_client_tcp_udp_http.conf \
147    confs/c_no_nat_client_http.conf \
148    confs/c_no_nat_client_http_2.conf\
149    confs/c_no_nat_client_http.conf \
150    confs/c_no_nat_client_http_2.conf \
151    confs/c_no_nat_client_unix.conf \
152    confs/c_no_nat_client_unix_2.conf \
153    hostkeys/0000-hostkey \
154    hostkeys/0001-hostkey \
155    hostkeys/0002-hostkey \
156    hostkeys/0003-hostkey \
157    hostkeys/0004-hostkey \
158    hostkeys/0005-hostkey \
159    hostkeys/0006-hostkey \
160    hostkeys/0007-hostkey \
161    hostkeys/0008-hostkey \
162    hostkeys/0009-hostkey 
163 #   test_integration_disconnect_nat.py 
164
165 CLEANFILES = \
166         $(check_SCRIPTS) \
167         gnunet_testing.py