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