aboutsummaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/Makefile.am14
-rw-r--r--src/arm/meson.build23
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
18libgnunetarm_la_SOURCES = \ 18libgnunetarm_la_SOURCES = \
19 arm_api.c arm_monitor_api.c arm.h 19 arm_api.c arm_monitor_api.c arm.h
20libgnunetarm_la_LIBADD = \ 20libgnunetarm_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)
23libgnunetarm_la_LDFLAGS = \ 23libgnunetarm_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
39gnunet_arm_LDADD = \ 39gnunet_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
44gnunet_service_arm_SOURCES = \ 44gnunet_service_arm_SOURCES = \
45 gnunet-service-arm.c 45 gnunet-service-arm.c
46gnunet_service_arm_LDADD = \ 46gnunet_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
50mockup_service_SOURCES = \ 50mockup_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
54mockup_service_LDFLAGS = \ 54mockup_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
75test_arm_api_LDADD = \ 75test_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
79test_exponential_backoff_SOURCES = \ 79test_exponential_backoff_SOURCES = \
80 test_exponential_backoff.c 80 test_exponential_backoff.c
81test_exponential_backoff_LDADD = \ 81test_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
85test_gnunet_service_arm_SOURCES = \ 85test_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
91SUFFIXES = .py.in .py 91SUFFIXES = .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
42executable ('gnunet-service-arm', 43executable ('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
50mockservice = executable ('mockup-service',
51 ['mockup-service.c'],
52 dependencies: [libgnunetarm_dep, libgnunetutil_dep],
53 include_directories: [incdir, configuration_inc],
54 install: false)
55
48testarmapi = executable ('test_arm_api', 56testarmapi = 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',
63configure_file(copy: true, 71configure_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')
66test('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
80test('test_arm_api', testarmapi, workdir: meson.current_build_dir(),
67 suite: 'arm') 81 suite: 'arm')
68# FIXME this test currently times out/fails. 82test('test_exponential_backoff', testexpbo, workdir: meson.current_build_dir(),
69#test('test_exponential_backoff', testexpbo, workdir: meson.current_source_dir()) 83 depends: mockservice,
70test('test_gnunet_service', testgnunetservice, workdir: meson.current_source_dir(), 84 timeout: 60, suite: 'arm')
85test('test_gnunet_service_arm', testgnunetservice, workdir: meson.current_build_dir(),
71 suite: 'arm') 86 suite: 'arm')