diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-21 13:25:00 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-09-21 13:25:00 +0200 |
commit | a4edce1753a788677a94960a56c90367ce168467 (patch) | |
tree | bc13e1c9e503a90a281e2167a0827d8fc9774373 /src | |
parent | bfea9efebb84443b8c17ff76cf78d3d167a8099c (diff) | |
download | gnunet-a4edce1753a788677a94960a56c90367ce168467.tar.gz gnunet-a4edce1753a788677a94960a56c90367ce168467.zip |
BUILD: add a couple of tests
Diffstat (limited to 'src')
-rw-r--r-- | src/arm/meson.build | 9 | ||||
-rw-r--r-- | src/meson.build | 2 | ||||
-rw-r--r-- | src/util/meson.build | 40 |
3 files changed, 47 insertions, 4 deletions
diff --git a/src/arm/meson.build b/src/arm/meson.build index ec7740a91..025ec94b1 100644 --- a/src/arm/meson.build +++ b/src/arm/meson.build | |||
@@ -54,9 +54,12 @@ if get_option('monolith') == false | |||
54 | configure_file(copy: true, | 54 | configure_file(copy: true, |
55 | input: 'test_arm_api_data.conf', | 55 | input: 'test_arm_api_data.conf', |
56 | output: 'test_arm_api_data.conf') | 56 | output: 'test_arm_api_data.conf') |
57 | test('test_arm_api', testarmapi) | 57 | test('test_arm_api', testarmapi, workdir: meson.current_source_dir(), |
58 | test('test_exponential_backoff', testexpbo) | 58 | suite: 'arm') |
59 | test('test_gnunet_service', testgnunetservice) | 59 | # FIXME this test currently times out/fails. |
60 | #test('test_exponential_backoff', testexpbo, workdir: meson.current_source_dir()) | ||
61 | test('test_gnunet_service', testgnunetservice, workdir: meson.current_source_dir(), | ||
62 | suite: 'arm') | ||
60 | else | 63 | else |
61 | foreach p : libgnunetarm_src + gnunetservicearm_src | 64 | foreach p : libgnunetarm_src + gnunetservicearm_src |
62 | gnunet_src += 'arm/' + p | 65 | gnunet_src += 'arm/' + p |
diff --git a/src/meson.build b/src/meson.build index 5ab5b7063..560c24917 100644 --- a/src/meson.build +++ b/src/meson.build | |||
@@ -52,7 +52,7 @@ subdir('namecache') | |||
52 | subdir('namestore') | 52 | subdir('namestore') |
53 | subdir('peerinfo-tool') | 53 | subdir('peerinfo-tool') |
54 | subdir('cadet') | 54 | subdir('cadet') |
55 | #subdir('set') | 55 | subdir('set') |
56 | subdir('seti') | 56 | subdir('seti') |
57 | subdir('setu') | 57 | subdir('setu') |
58 | subdir('consensus') | 58 | subdir('consensus') |
diff --git a/src/util/meson.build b/src/util/meson.build index fdb4e295f..525c43324 100644 --- a/src/util/meson.build +++ b/src/util/meson.build | |||
@@ -75,6 +75,46 @@ if get_option('monolith') == false | |||
75 | dependencies: gnunetdeps, | 75 | dependencies: gnunetdeps, |
76 | include_directories: [incdir, configuration_inc]) | 76 | include_directories: [incdir, configuration_inc]) |
77 | libgnunetutil_dep = declare_dependency(link_with : libgnunetutil) | 77 | libgnunetutil_dep = declare_dependency(link_with : libgnunetutil) |
78 | testcommonalloc = executable ('test_common_allocation', | ||
79 | ['test_common_allocation.c'], | ||
80 | dependencies: [libgnunetutil_dep, libgnunetutil_dep], | ||
81 | include_directories: [incdir, configuration_inc], | ||
82 | install: false) | ||
83 | test('test_common_allocation', testcommonalloc, | ||
84 | workdir: meson.current_source_dir(), | ||
85 | suite: ['util', 'util-common']) | ||
86 | testcommonlog = executable ('test_common_logging', | ||
87 | ['test_common_logging.c'], | ||
88 | dependencies: [libgnunetutil_dep, libgnunetutil_dep], | ||
89 | include_directories: [incdir, configuration_inc], | ||
90 | install: false) | ||
91 | test('test_common_logging', testcommonlog, | ||
92 | workdir: meson.current_source_dir(), | ||
93 | suite: ['util', 'util-common']) | ||
94 | testcommonendian = executable ('test_common_endian', | ||
95 | ['test_common_endian.c'], | ||
96 | dependencies: [libgnunetutil_dep, libgnunetutil_dep], | ||
97 | include_directories: [incdir, configuration_inc], | ||
98 | install: false) | ||
99 | test('test_common_endian', testcommonendian, | ||
100 | workdir: meson.current_source_dir(), | ||
101 | suite: ['util', 'util-common']) | ||
102 | testconf = executable ('test_configuration', | ||
103 | ['test_configuration.c'], | ||
104 | dependencies: [libgnunetutil_dep, libgnunetutil_dep], | ||
105 | include_directories: [incdir, configuration_inc], | ||
106 | install: false) | ||
107 | test('test_configuration', testconf, | ||
108 | workdir: meson.current_source_dir(), | ||
109 | suite: ['util', 'util-configuration']) | ||
110 | testcontainerbloom = executable ('test_container_bloomfilter', | ||
111 | ['test_container_bloomfilter.c'], | ||
112 | dependencies: [libgnunetutil_dep, libgnunetutil_dep], | ||
113 | include_directories: [incdir, configuration_inc], | ||
114 | install: false) | ||
115 | test('test_container_bloomfilter', testcontainerbloom, | ||
116 | workdir: meson.current_source_dir(), | ||
117 | suite: ['util', 'util-container']) | ||
78 | else | 118 | else |
79 | foreach p : libgnunetutil_src | 119 | foreach p : libgnunetutil_src |
80 | gnunet_src += 'util/' + p | 120 | gnunet_src += 'util/' + p |