- test
[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_bootstrap_and_connect_and_disconnect.py \
24  test_integration_bootstrap_and_connect_and_disconnect_nat.py \ 
25  test_integration_restart.py \
26  test_integration_clique.py \
27  test_integration_clique_nat.py
28 endif
29 # test_integration_disconnect.py 
30
31
32 if ENABLE_TEST_RUN
33 TESTS = \
34  $(check_SCRIPTS)  
35 endif
36
37 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
38
39 %.py: %.py.in Makefile
40         $(do_subst) < $(srcdir)/$< > $@
41         chmod +x $@
42
43 gnunet_testing.py: gnunet_testing.py.in Makefile
44         $(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
45         chmod +x gnunet_testing.py      
46
47 gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
48         $(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
49         chmod +x gnunet_pyexpect.py     
50
51 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
52         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
53         chmod +x test_integration_bootstrap_and_connect.py
54
55 test_integration_bootstrap_and_connect_and_disconnect.py.in: test_integration_bootstrap_and_connect_and_disconnect.py.in Makefile
56         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect.py.in > test_integration_bootstrap_and_connect_and_disconnect.py
57         chmod +x test_integration_bootstrap_and_connect_and_disconnect.py
58
59 test_integration_bootstrap_and_connect_and_disconnect_nat.py.in: test_integration_bootstrap_and_connect_and_disconnect_nat.py.in Makefile
60         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in > test_integration_bootstrap_and_connect_and_disconnect_nat.py
61         chmod +x test_integration_bootstrap_and_connect_and_disconnect_nat.py
62
63
64 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
65         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
66         chmod +x test_integration_disconnect.py
67
68 #test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
69 #       $(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
70 #       chmod +x test_integration_disconnect_nat.py
71
72 test_integration_restart.py: test_integration_restart.py.in Makefile
73         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
74         chmod +x test_integration_restart.py    
75
76 test_integration_clique.py: test_integration_clique.py.in Makefile
77         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
78         chmod +x test_integration_clique.py     
79
80 test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
81         $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
82         chmod +x test_integration_clique_nat.py 
83
84
85 EXTRA_DIST = \
86    gnunet_testing.py.in \
87    gnunet_pyexpect.py.in \
88    test_integration_bootstrap_and_connect.py.in \
89    test_integration_disconnect.py.in \
90    test_integration_restart.py.in \
91    test_integration_clique.py.in \
92    test_integration_clique_nat.py.in \
93    confs/c_bootstrap_server.conf \
94    confs/c_nat_client.conf \
95    confs/c_no_nat_client_2.conf \
96    confs/c_no_nat_client.conf \
97    hostkeys/0000-hostkey \
98    hostkeys/0001-hostkey \
99    hostkeys/0002-hostkey \
100    hostkeys/0003-hostkey \
101    hostkeys/0004-hostkey \
102    hostkeys/0005-hostkey \
103    hostkeys/0006-hostkey \
104    hostkeys/0007-hostkey \
105    hostkeys/0008-hostkey \
106    hostkeys/0009-hostkey 
107 #   test_integration_disconnect_nat.py 
108
109 CLEANFILES = \
110         $(check_SCRIPTS) \
111         gnunet_testing.py