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