diff options
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/Makefile.am | 14 | ||||
-rw-r--r-- | src/arm/meson.build | 23 |
2 files changed, 26 insertions, 11 deletions
diff --git a/src/arm/Makefile.am b/src/arm/Makefile.am index 8a738c5a9..6ecc7ca7a 100644 --- a/src/arm/Makefile.am +++ b/src/arm/Makefile.am | |||
@@ -18,7 +18,7 @@ lib_LTLIBRARIES = libgnunetarm.la | |||
18 | libgnunetarm_la_SOURCES = \ | 18 | libgnunetarm_la_SOURCES = \ |
19 | arm_api.c arm_monitor_api.c arm.h | 19 | arm_api.c arm_monitor_api.c arm.h |
20 | libgnunetarm_la_LIBADD = \ | 20 | libgnunetarm_la_LIBADD = \ |
21 | $(top_builddir)/src/util/libgnunetutil.la \ | 21 | $(top_builddir)/src/lib/util/libgnunetutil.la \ |
22 | $(GN_LIBINTL) $(XLIB) | 22 | $(GN_LIBINTL) $(XLIB) |
23 | libgnunetarm_la_LDFLAGS = \ | 23 | libgnunetarm_la_LDFLAGS = \ |
24 | $(GN_LIB_LDFLAGS) \ | 24 | $(GN_LIB_LDFLAGS) \ |
@@ -38,19 +38,19 @@ gnunet_arm_SOURCES = \ | |||
38 | gnunet-arm.c | 38 | gnunet-arm.c |
39 | gnunet_arm_LDADD = \ | 39 | gnunet_arm_LDADD = \ |
40 | libgnunetarm.la \ | 40 | libgnunetarm.la \ |
41 | $(top_builddir)/src/util/libgnunetutil.la \ | 41 | $(top_builddir)/src/lib/util/libgnunetutil.la \ |
42 | $(GN_LIBINTL) | 42 | $(GN_LIBINTL) |
43 | 43 | ||
44 | gnunet_service_arm_SOURCES = \ | 44 | gnunet_service_arm_SOURCES = \ |
45 | gnunet-service-arm.c | 45 | gnunet-service-arm.c |
46 | gnunet_service_arm_LDADD = \ | 46 | gnunet_service_arm_LDADD = \ |
47 | $(top_builddir)/src/util/libgnunetutil.la \ | 47 | $(top_builddir)/src/lib/util/libgnunetutil.la \ |
48 | $(GN_LIBINTL) | 48 | $(GN_LIBINTL) |
49 | 49 | ||
50 | mockup_service_SOURCES = \ | 50 | mockup_service_SOURCES = \ |
51 | mockup-service.c | 51 | mockup-service.c |
52 | mockup_service_LDADD = \ | 52 | mockup_service_LDADD = \ |
53 | $(top_builddir)/src/util/libgnunetutil.la | 53 | $(top_builddir)/src/lib/util/libgnunetutil.la |
54 | mockup_service_LDFLAGS = \ | 54 | mockup_service_LDFLAGS = \ |
55 | $(GN_LIBINTL) | 55 | $(GN_LIBINTL) |
56 | 56 | ||
@@ -74,19 +74,19 @@ test_arm_api_SOURCES = \ | |||
74 | test_arm_api.c | 74 | test_arm_api.c |
75 | test_arm_api_LDADD = \ | 75 | test_arm_api_LDADD = \ |
76 | libgnunetarm.la \ | 76 | libgnunetarm.la \ |
77 | $(top_builddir)/src/util/libgnunetutil.la | 77 | $(top_builddir)/src/lib/util/libgnunetutil.la |
78 | 78 | ||
79 | test_exponential_backoff_SOURCES = \ | 79 | test_exponential_backoff_SOURCES = \ |
80 | test_exponential_backoff.c | 80 | test_exponential_backoff.c |
81 | test_exponential_backoff_LDADD = \ | 81 | test_exponential_backoff_LDADD = \ |
82 | libgnunetarm.la \ | 82 | libgnunetarm.la \ |
83 | $(top_builddir)/src/util/libgnunetutil.la | 83 | $(top_builddir)/src/lib/util/libgnunetutil.la |
84 | 84 | ||
85 | test_gnunet_service_arm_SOURCES = \ | 85 | test_gnunet_service_arm_SOURCES = \ |
86 | test_gnunet_service_arm.c | 86 | test_gnunet_service_arm.c |
87 | test_gnunet_service_arm_LDADD = \ | 87 | test_gnunet_service_arm_LDADD = \ |
88 | libgnunetarm.la \ | 88 | libgnunetarm.la \ |
89 | $(top_builddir)/src/util/libgnunetutil.la | 89 | $(top_builddir)/src/lib/util/libgnunetutil.la |
90 | 90 | ||
91 | SUFFIXES = .py.in .py | 91 | SUFFIXES = .py.in .py |
92 | .py.in.py: | 92 | .py.in.py: |
diff --git a/src/arm/meson.build b/src/arm/meson.build index 9943c32f9..bfeb0b31f 100644 --- a/src/arm/meson.build +++ b/src/arm/meson.build | |||
@@ -39,12 +39,20 @@ executable ('gnunet-arm', | |||
39 | include_directories: [incdir, configuration_inc], | 39 | include_directories: [incdir, configuration_inc], |
40 | install: true, | 40 | install: true, |
41 | install_dir: get_option('bindir')) | 41 | install_dir: get_option('bindir')) |
42 | |||
42 | executable ('gnunet-service-arm', | 43 | executable ('gnunet-service-arm', |
43 | gnunetservicearm_src, | 44 | gnunetservicearm_src, |
44 | dependencies: [libgnunetarm_dep, libgnunetutil_dep], | 45 | dependencies: [libgnunetarm_dep, libgnunetutil_dep], |
45 | include_directories: [incdir, configuration_inc], | 46 | include_directories: [incdir, configuration_inc], |
46 | install: true, | 47 | install: true, |
47 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | 48 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') |
49 | |||
50 | mockservice = executable ('mockup-service', | ||
51 | ['mockup-service.c'], | ||
52 | dependencies: [libgnunetarm_dep, libgnunetutil_dep], | ||
53 | include_directories: [incdir, configuration_inc], | ||
54 | install: false) | ||
55 | |||
48 | testarmapi = executable ('test_arm_api', | 56 | testarmapi = executable ('test_arm_api', |
49 | testarmapi_src, | 57 | testarmapi_src, |
50 | dependencies: [libgnunetarm_dep, libgnunetutil_dep], | 58 | dependencies: [libgnunetarm_dep, libgnunetutil_dep], |
@@ -63,9 +71,16 @@ testgnunetservice = executable ('test_gnunet_service', | |||
63 | configure_file(copy: true, | 71 | configure_file(copy: true, |
64 | input: 'test_arm_api_data.conf', | 72 | input: 'test_arm_api_data.conf', |
65 | output: 'test_arm_api_data.conf') | 73 | output: 'test_arm_api_data.conf') |
66 | test('test_arm_api', testarmapi, workdir: meson.current_source_dir(), | 74 | |
75 | # FIXME: We need to convert the convoluted awk script from Makefile.am here | ||
76 | #configure_file(copy: true, | ||
77 | # input: 'test_gnunet_arm.py.in', | ||
78 | # output: 'test_gnunet_arm.py') | ||
79 | |||
80 | test('test_arm_api', testarmapi, workdir: meson.current_build_dir(), | ||
67 | suite: 'arm') | 81 | suite: 'arm') |
68 | # FIXME this test currently times out/fails. | 82 | test('test_exponential_backoff', testexpbo, workdir: meson.current_build_dir(), |
69 | #test('test_exponential_backoff', testexpbo, workdir: meson.current_source_dir()) | 83 | depends: mockservice, |
70 | test('test_gnunet_service', testgnunetservice, workdir: meson.current_source_dir(), | 84 | timeout: 60, suite: 'arm') |
85 | test('test_gnunet_service_arm', testgnunetservice, workdir: meson.current_build_dir(), | ||
71 | suite: 'arm') | 86 | suite: 'arm') |