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