fix
[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 if HAVE_MHD
37 if ENABLE_TEST_RUN
38 TESTS = \
39  $(check_SCRIPTS)  
40 endif
41 endif
42
43 connection_watchdog_SOURCE = \
44  connection_watchdog.c      
45 connection_watchdog_LDADD = \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(top_builddir)/src/core/libgnunetcore.la \
48   $(top_builddir)/src/transport/libgnunettransport.la \
49   $(top_builddir)/src/util/libgnunetutil.la
50
51 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
52
53 %.py: %.py.in Makefile
54         $(do_subst) < $(srcdir)/$< > $@
55         chmod +x $@
56
57 gnunet_testing.py: gnunet_testing.py.in Makefile
58         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
59         chmod +x gnunet_testing.py      
60
61 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
62         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
63         chmod +x gnunet_pyexpect.py     
64
65 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
66         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
67         chmod +x test_integration_bootstrap_and_connect.py
68
69 test_integration_bootstrap_and_connect_and_disconnect.py: test_integration_bootstrap_and_connect_and_disconnect.py.in Makefile
70         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect.py.in > test_integration_bootstrap_and_connect_and_disconnect.py
71         chmod +x test_integration_bootstrap_and_connect_and_disconnect.py
72
73 test_integration_bootstrap_and_connect_and_disconnect_nat.py: test_integration_bootstrap_and_connect_and_disconnect_nat.py.in Makefile
74         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in > test_integration_bootstrap_and_connect_and_disconnect_nat.py
75         chmod +x test_integration_bootstrap_and_connect_and_disconnect_nat.py
76
77
78 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
79         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
80         chmod +x test_integration_disconnect.py
81
82 #test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
83 #       $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
84 #       chmod +x test_integration_disconnect_nat.py
85
86 test_integration_restart.py: test_integration_restart.py.in Makefile
87         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
88         chmod +x test_integration_restart.py    
89
90 test_integration_clique.py: test_integration_clique.py.in Makefile
91         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
92         chmod +x test_integration_clique.py     
93
94 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
95         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
96         chmod +x test_integration_clique_nat.py 
97
98 test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
99         $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
100         chmod +x test_integration_connect_on_restart.py         
101
102 test_integration_connection_values_tcp.py: test_integration_connection_values_tcp.py.in Makefile
103         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp.py.in > test_integration_connection_values_tcp.py
104         chmod +x test_integration_connection_values_tcp.py              
105
106 test_integration_connection_values_tcp_udp.py: test_integration_connection_values_tcp_udp.py.in Makefile
107         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp.py.in > test_integration_connection_values_tcp_udp.py
108         chmod +x test_integration_connection_values_tcp_udp.py          
109
110 test_integration_connection_values_tcp_udp_http.py: test_integration_connection_values_tcp_udp_http.py.in Makefile
111         $(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp_http.py.in > test_integration_connection_values_tcp_udp_http.py
112         chmod +x test_integration_connection_values_tcp_udp_http.py             
113
114
115 EXTRA_DIST = \
116    gnunet_testing.py.in \
117    gnunet_pyexpect.py.in \
118    test_integration_connection_values_tcp.py.in \
119    test_integration_connection_values_tcp_udp.py.in \
120    test_integration_connection_values_tcp_udp_http.py.in \
121    test_integration_bootstrap_and_connect.py.in \
122    test_integration_bootstrap_and_connect_and_disconnect.py.in \
123    test_integration_bootstrap_and_connect_and_disconnect_nat.py.in \
124    test_integration_connect_on_restart.py.in \
125    test_integration_disconnect.py.in \
126    test_integration_restart.py.in \
127    test_integration_clique.py.in \
128    test_integration_clique_nat.py.in \
129    confs/c_bootstrap_server.conf \
130    confs/c_bootstrap_server_w_massif.conf \
131    confs/c_nat_client.conf \
132    confs/c_no_nat_client_2.conf \
133    confs/c_no_nat_client.conf \
134    confs/c_normal_client_tcp.conf \
135    confs/c_normal_client_tcp_udp.conf \
136    confs/c_normal_client_tcp_udp_http.conf \
137    confs/c_no_nat_client_http.conf \
138    confs/c_no_nat_client_http_2.conf\
139    confs/c_no_nat_client_http.conf \
140    confs/c_no_nat_client_http_2.conf \
141    confs/c_no_nat_client_unix.conf \
142    confs/c_no_nat_client_unix_2.conf \
143    hostkeys/0000-hostkey \
144    hostkeys/0001-hostkey \
145    hostkeys/0002-hostkey \
146    hostkeys/0003-hostkey \
147    hostkeys/0004-hostkey \
148    hostkeys/0005-hostkey \
149    hostkeys/0006-hostkey \
150    hostkeys/0007-hostkey \
151    hostkeys/0008-hostkey \
152    hostkeys/0009-hostkey 
153 #   test_integration_disconnect_nat.py 
154
155 CLEANFILES = \
156         $(check_SCRIPTS) \
157         gnunet_testing.py