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