diff options
Diffstat (limited to 'src/testing/Makefile.am')
-rw-r--r-- | src/testing/Makefile.am | 50 |
1 files changed, 45 insertions, 5 deletions
diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am index 868e3fcec..038f0cb08 100644 --- a/src/testing/Makefile.am +++ b/src/testing/Makefile.am | |||
@@ -11,12 +11,46 @@ pkgcfgdir= $(pkgdatadir)/config.d/ | |||
11 | dist_pkgcfg_DATA = \ | 11 | dist_pkgcfg_DATA = \ |
12 | testing.conf | 12 | testing.conf |
13 | 13 | ||
14 | libexec_PROGRAMS = \ | ||
15 | gnunet-cmds-helper | ||
16 | |||
17 | plugindir = $(libdir)/gnunet | ||
18 | |||
19 | plugin_LTLIBRARIES = \ | ||
20 | libgnunet_test_testing_plugin_testcmd.la | ||
21 | |||
14 | lib_LTLIBRARIES = \ | 22 | lib_LTLIBRARIES = \ |
15 | libgnunettesting.la | 23 | libgnunettesting.la |
16 | 24 | ||
25 | gnunet_cmds_helper_SOURCES = \ | ||
26 | gnunet-cmds-helper.c | ||
27 | gnunet_cmds_helper_LDADD = $(XLIB) \ | ||
28 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
29 | libgnunettesting.la \ | ||
30 | $(LTLIBINTL) $(Z_LIBS) | ||
31 | |||
32 | libgnunet_test_testing_plugin_testcmd_la_SOURCES = \ | ||
33 | test_testing_plugin_testcmd.c | ||
34 | libgnunet_test_testing_plugin_testcmd_la_LIBADD = \ | ||
35 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
36 | $(top_builddir)/src/arm/libgnunetarm.la \ | ||
37 | libgnunettesting.la \ | ||
38 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
39 | $(LTLIBINTL) | ||
40 | libgnunet_test_testing_plugin_testcmd_la_LDFLAGS = \ | ||
41 | $(GN_PLUGIN_LDFLAGS) | ||
42 | |||
17 | libgnunettesting_la_SOURCES = \ | 43 | libgnunettesting_la_SOURCES = \ |
18 | testing.c \ | 44 | testing_api_cmd_local_test_finished.c \ |
45 | testing_api_cmd_send_peer_ready.c \ | ||
46 | testing_api_cmd_block_until_all_peers_started.c \ | ||
47 | testing_api_cmd_netjail_start.c \ | ||
48 | testing_api_cmd_netjail_start_testsystem.c \ | ||
49 | testing_api_cmd_netjail_stop_testsystem.c \ | ||
50 | testing_api_cmd_netjail_stop.c \ | ||
51 | testing.c testing.h \ | ||
19 | testing_api_cmd_system_create.c \ | 52 | testing_api_cmd_system_create.c \ |
53 | testing_api_cmd_system_destroy.c \ | ||
20 | testing_api_cmd_batch.c \ | 54 | testing_api_cmd_batch.c \ |
21 | testing_api_cmd_hello_world.c \ | 55 | testing_api_cmd_hello_world.c \ |
22 | testing_api_cmd_hello_world_birth.c \ | 56 | testing_api_cmd_hello_world_birth.c \ |
@@ -28,9 +62,6 @@ libgnunettesting_la_LIBADD = \ | |||
28 | $(top_builddir)/src/arm/libgnunetarm.la \ | 62 | $(top_builddir)/src/arm/libgnunetarm.la \ |
29 | $(top_builddir)/src/util/libgnunetutil.la \ | 63 | $(top_builddir)/src/util/libgnunetutil.la \ |
30 | $(LTLIBINTL) | 64 | $(LTLIBINTL) |
31 | libgnunettesting_la_DEPENDENCIES = \ | ||
32 | $(top_builddir)/src/arm/libgnunetarm.la \ | ||
33 | $(top_builddir)/src/util/libgnunetutil.la | ||
34 | libgnunettesting_la_LDFLAGS = \ | 65 | libgnunettesting_la_LDFLAGS = \ |
35 | $(GN_LIB_LDFLAGS) \ | 66 | $(GN_LIB_LDFLAGS) \ |
36 | -version-info 2:0:1 | 67 | -version-info 2:0:1 |
@@ -56,6 +87,7 @@ list_keys_LDADD = \ | |||
56 | 87 | ||
57 | 88 | ||
58 | check_PROGRAMS = \ | 89 | check_PROGRAMS = \ |
90 | test_testing_api_cmd_netjail \ | ||
59 | test_testing_hello_world \ | 91 | test_testing_hello_world \ |
60 | test_testing_portreservation \ | 92 | test_testing_portreservation \ |
61 | test_testing_servicestartup \ | 93 | test_testing_servicestartup \ |
@@ -66,6 +98,7 @@ check_PROGRAMS = \ | |||
66 | if ENABLE_TEST_RUN | 98 | if ENABLE_TEST_RUN |
67 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | 99 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; |
68 | TESTS = \ | 100 | TESTS = \ |
101 | test_testing_api_cmd_netjail \ | ||
69 | test_testing_hello_world \ | 102 | test_testing_hello_world \ |
70 | test_testing_portreservation \ | 103 | test_testing_portreservation \ |
71 | test_testing_peerstartup \ | 104 | test_testing_peerstartup \ |
@@ -73,6 +106,12 @@ TESTS = \ | |||
73 | test_testing_servicestartup | 106 | test_testing_servicestartup |
74 | endif | 107 | endif |
75 | 108 | ||
109 | test_testing_api_cmd_netjail_SOURCES = \ | ||
110 | test_testing_api_cmd_netjail.c | ||
111 | test_testing_api_cmd_netjail_LDADD = \ | ||
112 | libgnunettesting.la \ | ||
113 | $(top_builddir)/src/util/libgnunetutil.la | ||
114 | |||
76 | test_testing_hello_world_SOURCES = \ | 115 | test_testing_hello_world_SOURCES = \ |
77 | test_testing_hello_world.c | 116 | test_testing_hello_world.c |
78 | test_testing_hello_world_LDADD = \ | 117 | test_testing_hello_world_LDADD = \ |
@@ -111,4 +150,5 @@ test_testing_sharedservices_LDADD = \ | |||
111 | 150 | ||
112 | EXTRA_DIST = \ | 151 | EXTRA_DIST = \ |
113 | test_testing_defaults.conf \ | 152 | test_testing_defaults.conf \ |
114 | test_testing_sharedservices.conf | 153 | test_testing_sharedservices.conf \ |
154 | testing_cmds.h | ||