- htons => htonl
[oweals/gnunet.git] / src / integration-tests / Makefile.am
1 AM_CPPFLAGS = -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 noinst_SCRIPTS = \
13  gnunet_testing.py \
14  gnunet_pyexpect.py
15
16 if HAVE_PYTHON
17 check_SCRIPTS = \
18   test_integration_bootstrap_and_connect.py \
19   test_integration_disconnect.py \
20   test_integration_disconnect_nat.py \
21   test_integration_reconnect.py \
22   test_integration_reconnect_nat.py \
23   test_integration_clique.py
24 endif
25
26
27 if HAVE_MHD
28 if ENABLE_TEST_RUN
29 TESTS = \
30  $(check_SCRIPTS)
31 endif
32 endif
33
34 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
35
36 %.py: %.py.in Makefile
37         $(do_subst) < $(srcdir)/$< > $@
38         chmod +x $@
39
40 gnunet_testing.py: gnunet_testing.py.in Makefile
41         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
42         chmod +x gnunet_testing.py
43
44 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
45         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
46         chmod +x gnunet_pyexpect.py
47
48 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
49         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
50         chmod +x test_integration_bootstrap_and_connect.py
51
52 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
53         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
54         chmod +x test_integration_disconnect.py
55         
56 test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
57         $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
58         chmod +x test_integration_disconnect_nat.py
59
60 test_integration_reconnect.py: test_integration_reconnect.py.in Makefile
61         $(do_subst) < $(srcdir)/test_integration_reconnect.py.in > test_integration_reconnect.py
62         chmod +x test_integration_reconnect.py
63
64 test_integration_reconnect_nat.py: test_integration_reconnect_nat.py.in Makefile
65         $(do_subst) < $(srcdir)/test_integration_reconnect_nat.py.in > test_integration_reconnect_nat.py
66         chmod +x test_integration_reconnect_nat.py
67
68 test_integration_clique.py: test_integration_clique.py.in Makefile
69         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
70         chmod +x test_integration_clique.py
71
72
73 EXTRA_DIST = \
74    gnunet_testing.py.in \
75    gnunet_pyexpect.py.in \
76    test_integration_bootstrap_and_connect.py.in \
77    test_integration_disconnect.py.in \
78    test_integration_disconnect_nat.py.in \
79    test_integration_reconnect.py.in \
80    test_integration_reconnect_nat.py.in \
81    test_integration_clique.py.in \
82    confs/test_defaults.conf \
83    confs/c_bootstrap_server.conf \
84    confs/c_nat_client.conf \
85    confs/c_no_nat_client_2.conf \
86    confs/c_no_nat_client.conf \
87    hostkeys/c_bootstrap_server \
88    hostkeys/c_no_nat_client \
89    hostkeys/c_no_nat_client_2 \
90    hostkeys/c_nat_client
91
92 CLEANFILES = \
93         $(check_SCRIPTS) \
94         gnunet_pyexpect.py \
95         gnunet_testing.py