remove CYGWIN codeblocks, drop vendored Windows openvpn, drop win32 specific files.
[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 USE_COVERAGE
5   AM_CFLAGS = --coverage -O0
6   XLIB = -lgcov
7 endif
8
9 noinst_SCRIPTS = \
10  gnunet_testing.py \
11  gnunet_pyexpect.py
12
13 if HAVE_PYTHON
14 check_SCRIPTS = \
15   test_integration_bootstrap_and_connect.py \
16   test_integration_disconnect.py \
17   test_integration_disconnect_nat.py \
18   test_integration_reconnect.py \
19   test_integration_reconnect_nat.py
20 #  test_integration_clique.py
21 endif
22
23
24 if HAVE_MHD
25 if ENABLE_TEST_RUN
26 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
27 if HAVE_LIBGNURL
28 TESTS = \
29  $(check_SCRIPTS)
30 else
31 if HAVE_LIBCURL
32 TESTS = \
33  $(check_SCRIPTS)
34 endif
35 endif
36 endif
37 endif
38
39 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
40
41 SUFFIXES = .py.in .py
42 .py.in.py:
43         $(do_subst) < $(srcdir)/$< > $@
44         chmod +x $@
45
46 gnunet_testing.py: gnunet_testing.py.in Makefile
47         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
48         chmod +x gnunet_testing.py
49
50 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
51         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
52         chmod +x gnunet_pyexpect.py
53
54 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
55         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
56         chmod +x test_integration_bootstrap_and_connect.py
57
58 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
59         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
60         chmod +x test_integration_disconnect.py
61
62 test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
63         $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
64         chmod +x test_integration_disconnect_nat.py
65
66 test_integration_reconnect.py: test_integration_reconnect.py.in Makefile
67         $(do_subst) < $(srcdir)/test_integration_reconnect.py.in > test_integration_reconnect.py
68         chmod +x test_integration_reconnect.py
69
70 test_integration_reconnect_nat.py: test_integration_reconnect_nat.py.in Makefile
71         $(do_subst) < $(srcdir)/test_integration_reconnect_nat.py.in > test_integration_reconnect_nat.py
72         chmod +x test_integration_reconnect_nat.py
73
74 test_integration_clique.py: test_integration_clique.py.in Makefile
75         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
76         chmod +x test_integration_clique.py
77
78
79 EXTRA_DIST = \
80    gnunet_testing.py.in \
81    gnunet_pyexpect.py.in \
82    test_integration_bootstrap_and_connect.py.in \
83    test_integration_disconnect.py.in \
84    test_integration_disconnect_nat.py.in \
85    test_integration_reconnect.py.in \
86    test_integration_reconnect_nat.py.in \
87    test_integration_clique.py.in \
88    confs/test_defaults.conf \
89    confs/c_bootstrap_server.conf \
90    confs/c_nat_client.conf \
91    confs/c_no_nat_client_2.conf \
92    confs/c_no_nat_client.conf \
93    hostkeys/c_bootstrap_server \
94    hostkeys/c_no_nat_client \
95    hostkeys/c_no_nat_client_2 \
96    hostkeys/c_nat_client
97
98 CLEANFILES = \
99         $(check_SCRIPTS) \
100         gnunet_pyexpect.py \
101         gnunet_testing.py