7c1991b9175c4f122f787b3ac6b7a3c38b5a4d00
[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 check_PROGRAMS =
16
17 noinst_PROGRAMS = connection_watchdog
18
19 noinst_SCRIPTS = \
20  gnunet_testing.py \
21  gnunet_pyexpect.py \
22  test_integration_connection_values_tcp.py \
23  test_integration_connection_values_tcp_udp.py \
24  test_integration_connection_values_tcp_udp_http.py
25
26 if HAVE_PYTHON_PEXPECT
27 check_SCRIPTS = \
28  test_integration_bootstrap_and_connect.py \
29  test_integration_bootstrap_and_connect_and_disconnect.py \
30  test_integration_bootstrap_and_connect_and_disconnect_nat.py \
31  test_integration_restart.py \
32  test_integration_clique.py \
33  test_integration_clique_nat.py \
34  test_integration_connect_on_restart.py
35 endif
36 # test_integration_disconnect.py 
37
38 check_PROGRAMS = \
39         test_connection_stability
40
41
42 if ENABLE_TEST_RUN
43 TESTS = \
44  $(check_SCRIPTS)  
45 endif
46
47 connection_watchdog_SOURCE = \
48  connection_watchdog.c      
49 connection_watchdog_LDADD = \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(top_builddir)/src/core/libgnunetcore.la \
52   $(top_builddir)/src/transport/libgnunettransport.la \
53   $(top_builddir)/src/util/libgnunetutil.la
54
55 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
56
57 %.py: %.py.in Makefile
58         $(do_subst) < $(srcdir)/$< > $@
59         chmod +x $@
60
61 gnunet_testing.py: gnunet_testing.py.in Makefile
62         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
63         chmod +x gnunet_testing.py      
64
65 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
66         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
67         chmod +x gnunet_pyexpect.py     
68
69 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
70         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
71         chmod +x test_integration_bootstrap_and_connect.py
72
73 test_integration_bootstrap_and_connect_and_disconnect.py: test_integration_bootstrap_and_connect_and_disconnect.py.in Makefile
74         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect.py.in > test_integration_bootstrap_and_connect_and_disconnect.py
75         chmod +x test_integration_bootstrap_and_connect_and_disconnect.py
76
77 test_integration_bootstrap_and_connect_and_disconnect_nat.py: test_integration_bootstrap_and_connect_and_disconnect_nat.py.in Makefile
78         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in > test_integration_bootstrap_and_connect_and_disconnect_nat.py
79         chmod +x test_integration_bootstrap_and_connect_and_disconnect_nat.py
80
81
82 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
83         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
84         chmod +x test_integration_disconnect.py
85
86 #test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
87 #       $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
88 #       chmod +x test_integration_disconnect_nat.py
89
90 test_integration_restart.py: test_integration_restart.py.in Makefile
91         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
92         chmod +x test_integration_restart.py    
93
94 test_integration_clique.py: test_integration_clique.py.in Makefile
95         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
96         chmod +x test_integration_clique.py     
97
98 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
99         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
100         chmod +x test_integration_clique_nat.py 
101         
102 test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
103         $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
104         chmod +x test_integration_connect_on_restart.py         
105
106 test_integration_connection_values_tcp.py: test_integration_connection_values_tcp.py.in Makefile
107         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp.py.in > test_integration_connection_values_tcp.py
108         chmod +x test_integration_connection_values_tcp.py              
109
110 test_integration_connection_values_tcp_udp.py: test_integration_connection_values_tcp_udp.py.in Makefile
111         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp.py.in > test_integration_connection_values_tcp_udp.py
112         chmod +x test_integration_connection_values_tcp_udp.py          
113
114 test_integration_connection_values_tcp_udp_http.py: test_integration_connection_values_tcp_udp_http.py.in Makefile
115         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp_http.py.in > test_integration_connection_values_tcp_udp_http.py
116         chmod +x test_integration_connection_values_tcp_udp_http.py             
117
118 test_connection_stability_SOURCES = \
119  test_connection_stability.c
120 test_connection_stability_LDADD = \
121  $(top_builddir)/src/testing/libgnunettesting.la \
122  $(top_builddir)/src/util/libgnunetutil.la  
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_bootstrap_and_connect.py.in \
131    test_integration_bootstrap_and_connect_and_disconnect.py.in \
132    test_integration_bootstrap_and_connect_and_disconnect_nat.py.in \
133    test_integration_connect_on_restart.py.in \
134    test_integration_disconnect.py.in \
135    test_integration_restart.py.in \
136    test_integration_clique.py.in \
137    test_integration_clique_nat.py.in \
138    confs/c_bootstrap_server.conf \
139    confs/c_nat_client.conf \
140    confs/c_no_nat_client_2.conf \
141    confs/c_no_nat_client.conf \
142    confs/c_normal_client_tcp.conf \
143    confs/c_normal_client_tcp_udp.conf \
144    confs/c_normal_client_tcp_udp_http.conf \
145    confs/c_no_nat_client_http.conf \
146    confs/c_no_nat_client_http_2.conf\
147    confs/c_no_nat_client_http.conf \
148    confs/c_no_nat_client_http_2.conf \
149    test_connection_stability.conf \
150    hostkeys/0000-hostkey \
151    hostkeys/0001-hostkey \
152    hostkeys/0002-hostkey \
153    hostkeys/0003-hostkey \
154    hostkeys/0004-hostkey \
155    hostkeys/0005-hostkey \
156    hostkeys/0006-hostkey \
157    hostkeys/0007-hostkey \
158    hostkeys/0008-hostkey \
159    hostkeys/0009-hostkey 
160 #   test_integration_disconnect_nat.py 
161
162 CLEANFILES = \
163         $(check_SCRIPTS) \
164         gnunet_testing.py