1e5686bf8009e8628ef532630ec37f896300287b
[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_disconnect.py \
23  test_integration_restart.py \
24  test_integration_clique.py
25 endif
26
27
28 if ENABLE_TEST_RUN
29 TESTS = \
30  $(check_SCRIPTS)  
31 endif
32
33 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
34
35 %.py: %.py.in Makefile
36         $(do_subst) < $(srcdir)/$< > $@
37         chmod +x $@
38
39 test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
40         $(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
41         chmod +x test_integration_bootstrap_and_connect.py
42
43 test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
44         $(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
45         chmod +x test_integration_disconnect.py
46
47 test_integration_restart.py: test_integration_restart.py.in Makefile
48         $(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
49         chmod +x test_integration_restart.py    
50         
51 test_integration_clique.py: test_integration_clique.py.in Makefile
52         $(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
53         chmod +x test_integration_clique.py     
54
55 EXTRA_DIST = \
56    gnunet_testing.py.in \
57    test_integration_bootstrap_and_connect.py.in \
58    test_integration_disconnect.py.in \
59    test_integration_restart.py.in \ 
60    test_integration_clique.py.in
61
62 CLEANFILES = \
63         $(check_SCRIPTS) \
64         gnunet_testing.py