use -Wl on -no-undefined as it is a linker option:
[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_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
30 TESTS = \
31  $(check_SCRIPTS)
32 endif
33 endif
34
35 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
36
37 %.py: %.py.in Makefile
38         $(do_subst) < $(srcdir)/$< > $@
39         chmod +x $@
40
41 gnunet_testing.py: gnunet_testing.py.in Makefile
42         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
43         chmod +x gnunet_testing.py
44
45 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
46         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
47         chmod +x gnunet_pyexpect.py
48
49 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
50         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
51         chmod +x test_integration_bootstrap_and_connect.py
52
53 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
54         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
55         chmod +x test_integration_disconnect.py
56         
57 test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
58         $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
59         chmod +x test_integration_disconnect_nat.py
60
61 test_integration_reconnect.py: test_integration_reconnect.py.in Makefile
62         $(do_subst) < $(srcdir)/test_integration_reconnect.py.in > test_integration_reconnect.py
63         chmod +x test_integration_reconnect.py
64
65 test_integration_reconnect_nat.py: test_integration_reconnect_nat.py.in Makefile
66         $(do_subst) < $(srcdir)/test_integration_reconnect_nat.py.in > test_integration_reconnect_nat.py
67         chmod +x test_integration_reconnect_nat.py
68
69 test_integration_clique.py: test_integration_clique.py.in Makefile
70         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
71         chmod +x test_integration_clique.py
72
73
74 EXTRA_DIST = \
75    gnunet_testing.py.in \
76    gnunet_pyexpect.py.in \
77    test_integration_bootstrap_and_connect.py.in \
78    test_integration_disconnect.py.in \
79    test_integration_disconnect_nat.py.in \
80    test_integration_reconnect.py.in \
81    test_integration_reconnect_nat.py.in \
82    test_integration_clique.py.in \
83    confs/test_defaults.conf \
84    confs/c_bootstrap_server.conf \
85    confs/c_nat_client.conf \
86    confs/c_no_nat_client_2.conf \
87    confs/c_no_nat_client.conf \
88    hostkeys/c_bootstrap_server \
89    hostkeys/c_no_nat_client \
90    hostkeys/c_no_nat_client_2 \
91    hostkeys/c_nat_client
92
93 CLEANFILES = \
94         $(check_SCRIPTS) \
95         gnunet_pyexpect.py \
96         gnunet_testing.py