- pexpect
[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
14 check_PROGRAMS =
15
16 noinst_SCRIPTS = \
17  gnunet_testing.py \
18  gnunet_pyexpect.py
19
20 if HAVE_PYTHON_PEXPECT
21 check_SCRIPTS = \
22  test_integration_bootstrap_and_connect.py \
23  test_integration_restart.py \
24  test_integration_clique.py \
25  test_integration_clique_nat.py
26 endif
27 # test_integration_disconnect.py 
28
29
30 if ENABLE_TEST_RUN
31 TESTS = \
32  $(check_SCRIPTS)  
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_restart.py: test_integration_restart.py.in Makefile
62         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
63         chmod +x test_integration_restart.py    
64
65 test_integration_clique.py: test_integration_clique.py.in Makefile
66         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
67         chmod +x test_integration_clique.py     
68
69 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
70         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
71         chmod +x test_integration_clique_nat.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_restart.py.in \
80    test_integration_clique.py.in \
81    test_integration_clique_nat.py.in \
82    confs/c_bootstrap_server.conf \
83    confs/c_nat_client.conf \
84    confs/c_no_nat_client_2.conf \
85    confs/c_no_nat_client.conf \
86    hostkeys/0000-hostkey \
87    hostkeys/0001-hostkey \
88    hostkeys/0002-hostkey \
89    hostkeys/0003-hostkey \
90    hostkeys/0004-hostkey \
91    hostkeys/0005-hostkey \
92    hostkeys/0006-hostkey \
93    hostkeys/0007-hostkey \
94    hostkeys/0008-hostkey \
95    hostkeys/0009-hostkey 
96 #   test_integration_disconnect_nat.py 
97
98 CLEANFILES = \
99         $(check_SCRIPTS) \
100         gnunet_testing.py