diff options
Diffstat (limited to 'src/lib/testing/Makefile.am')
-rw-r--r-- | src/lib/testing/Makefile.am | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/src/lib/testing/Makefile.am b/src/lib/testing/Makefile.am new file mode 100644 index 000000000..95fc30f86 --- /dev/null +++ b/src/lib/testing/Makefile.am | |||
@@ -0,0 +1,92 @@ | |||
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 | libexecdir= $(pkglibdir)/libexec/ | ||
10 | |||
11 | libexec_PROGRAMS = \ | ||
12 | gnunet-cmds-helper | ||
13 | |||
14 | plugindir = $(libdir)/gnunet | ||
15 | |||
16 | lib_LTLIBRARIES = \ | ||
17 | libgnunettesting.la | ||
18 | |||
19 | gnunet_cmds_helper_SOURCES = \ | ||
20 | gnunet-cmds-helper.c testing_cmds.h | ||
21 | gnunet_cmds_helper_LDADD = $(XLIB) \ | ||
22 | libgnunettesting.la \ | ||
23 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
24 | $(LTLIBINTL) | ||
25 | |||
26 | libgnunettesting_la_SOURCES = \ | ||
27 | testing_api_barrier.c testing_api_barrier.h \ | ||
28 | testing_api_cmd_barrier_create.c \ | ||
29 | testing_api_cmd_barrier_reached.c \ | ||
30 | testing_api_cmd_batch.c testing_api_cmd_batch.h \ | ||
31 | testing_api_cmd_exec.c \ | ||
32 | testing_api_cmd_finish.c \ | ||
33 | testing_api_cmd_get_topo.c \ | ||
34 | testing_api_cmd_netjail_start.c \ | ||
35 | testing_api_cmd_netjail_start_cmds_helper.c \ | ||
36 | testing_api_cmd_signal.c \ | ||
37 | testing_api_cmd_stat.c \ | ||
38 | testing_api_cmds.c testing_cmds.h \ | ||
39 | testing_api_loop.c testing_api_loop.h \ | ||
40 | testing_api_main.c \ | ||
41 | testing_api_traits.c \ | ||
42 | testing_api_topology.c testing_api_topology.h | ||
43 | libgnunettesting_la_LIBADD = \ | ||
44 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
45 | $(LTLIBINTL) | ||
46 | libgnunettesting_la_LDFLAGS = \ | ||
47 | $(GN_LIB_LDFLAGS) \ | ||
48 | -version-info 3:0:0 | ||
49 | |||
50 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; | ||
51 | |||
52 | |||
53 | bin_PROGRAMS = \ | ||
54 | gnunet-testing-netjail-launcher | ||
55 | |||
56 | gnunet_testing_netjail_launcher_SOURCES = \ | ||
57 | gnunet-testing-netjail-launcher.c | ||
58 | gnunet_testing_netjail_launcher_LDADD = $(XLIB) \ | ||
59 | libgnunettesting.la \ | ||
60 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
61 | $(LTLIBINTL) | ||
62 | |||
63 | check_PROGRAMS = \ | ||
64 | test_testing_api | ||
65 | |||
66 | check_SCRIPTS = \ | ||
67 | test_netjail_api.sh | ||
68 | |||
69 | TESTS = \ | ||
70 | $(check_PROGRAMS) \ | ||
71 | $(check_SCRIPTS) | ||
72 | |||
73 | test_testing_api_SOURCES = \ | ||
74 | test_testing_api.c | ||
75 | test_testing_api_LDADD = \ | ||
76 | libgnunettesting.la \ | ||
77 | -lgnunetutil \ | ||
78 | $(XLIB) | ||
79 | |||
80 | EXTRA_DIST = \ | ||
81 | $(check_SCRIPTS) \ | ||
82 | test_netjail_topo.conf | ||
83 | |||
84 | plugin_LTLIBRARIES = \ | ||
85 | libgnunet_test_testing_plugin_ping.la | ||
86 | |||
87 | libgnunet_test_testing_plugin_ping_la_SOURCES = \ | ||
88 | test_testing_plugin_ping.c | ||
89 | libgnunet_test_testing_plugin_ping_la_LIBADD = \ | ||
90 | libgnunettesting.la \ | ||
91 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
92 | $(LTLIBINTL) | ||