-bringing copyright tags up to FSF standard
[oweals/gnunet.git] / src / integration-tests / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13 noinst_SCRIPTS = \
14  gnunet_testing.py \
15  gnunet_pyexpect.py
16
17 if HAVE_PYTHON
18 check_SCRIPTS = \
19   test_integration_bootstrap_and_connect.py \
20   test_integration_disconnect.py \
21   test_integration_disconnect_nat.py \
22   test_integration_reconnect.py \
23   test_integration_reconnect_nat.py \
24   test_integration_clique.py
25 endif
26
27
28 if HAVE_MHD
29 if ENABLE_TEST_RUN
30 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
31 TESTS = \
32  $(check_SCRIPTS)
33 endif
34 endif
35
36 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
37
38 %.py: %.py.in Makefile
39         $(do_subst) < $(srcdir)/$< > $@
40         chmod +x $@
41
42 gnunet_testing.py: gnunet_testing.py.in Makefile
43         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
44         chmod +x gnunet_testing.py
45
46 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
47         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
48         chmod +x gnunet_pyexpect.py
49
50 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
51         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
52         chmod +x test_integration_bootstrap_and_connect.py
53
54 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
55         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
56         chmod +x test_integration_disconnect.py
57         
58 test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
59         $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
60         chmod +x test_integration_disconnect_nat.py
61
62 test_integration_reconnect.py: test_integration_reconnect.py.in Makefile
63         $(do_subst) < $(srcdir)/test_integration_reconnect.py.in > test_integration_reconnect.py
64         chmod +x test_integration_reconnect.py
65
66 test_integration_reconnect_nat.py: test_integration_reconnect_nat.py.in Makefile
67         $(do_subst) < $(srcdir)/test_integration_reconnect_nat.py.in > test_integration_reconnect_nat.py
68         chmod +x test_integration_reconnect_nat.py
69
70 test_integration_clique.py: test_integration_clique.py.in Makefile
71         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
72         chmod +x test_integration_clique.py
73
74
75 EXTRA_DIST = \
76    gnunet_testing.py.in \
77    gnunet_pyexpect.py.in \
78    test_integration_bootstrap_and_connect.py.in \
79    test_integration_disconnect.py.in \
80    test_integration_disconnect_nat.py.in \
81    test_integration_reconnect.py.in \
82    test_integration_reconnect_nat.py.in \
83    test_integration_clique.py.in \
84    confs/test_defaults.conf \
85    confs/c_bootstrap_server.conf \
86    confs/c_nat_client.conf \
87    confs/c_no_nat_client_2.conf \
88    confs/c_no_nat_client.conf \
89    hostkeys/c_bootstrap_server \
90    hostkeys/c_no_nat_client \
91    hostkeys/c_no_nat_client_2 \
92    hostkeys/c_nat_client
93
94 CLEANFILES = \
95         $(check_SCRIPTS) \
96         gnunet_pyexpect.py \
97         gnunet_testing.py