[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: BUILD: add a couple of tests
From: |
gnunet |
Subject: |
[gnunet] branch master updated: BUILD: add a couple of tests |
Date: |
Thu, 21 Sep 2023 13:25:05 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new a4edce175 BUILD: add a couple of tests
a4edce175 is described below
commit a4edce1753a788677a94960a56c90367ce168467
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Sep 21 13:25:00 2023 +0200
BUILD: add a couple of tests
---
contrib/conf/gnunet/meson.build | 6 ++++++
contrib/conf/meson.build | 1 +
contrib/meson.build | 2 ++
meson.build | 3 ++-
src/arm/meson.build | 9 ++++++---
src/meson.build | 2 +-
src/util/meson.build | 40 ++++++++++++++++++++++++++++++++++++++++
7 files changed, 58 insertions(+), 5 deletions(-)
diff --git a/contrib/conf/gnunet/meson.build b/contrib/conf/gnunet/meson.build
new file mode 100644
index 000000000..0419784fb
--- /dev/null
+++ b/contrib/conf/gnunet/meson.build
@@ -0,0 +1,6 @@
+configure_file(copy: true,
+ input: 'no_forcestart.conf',
+ output: 'no_forcestart.conf')
+configure_file(copy: true,
+ input: 'no_autostart_above_core.conf',
+ output: 'no_autostart_above_core.conf')
diff --git a/contrib/conf/meson.build b/contrib/conf/meson.build
new file mode 100644
index 000000000..f0e4647df
--- /dev/null
+++ b/contrib/conf/meson.build
@@ -0,0 +1 @@
+subdir('gnunet')
diff --git a/contrib/meson.build b/contrib/meson.build
new file mode 100644
index 000000000..59fb8ef12
--- /dev/null
+++ b/contrib/meson.build
@@ -0,0 +1,2 @@
+subdir('conf')
+
diff --git a/meson.build b/meson.build
index 53d01a373..3732ccbac 100644
--- a/meson.build
+++ b/meson.build
@@ -22,8 +22,8 @@ pkgcfgdir = get_option('datadir')/'gnunet'/'config.d'
if get_option('monolith')
add_project_arguments('-DHAVE_GNUNET_MONOLITH', language: 'c')
endif
+cdata.set('enable_experimental', get_option('experimental'))
if get_option('experimental')
- cdata.set('enable_experimental', get_option('experimental'))
add_project_arguments('-DHAVE_EXPERIMENTAL', language: 'c')
endif
@@ -155,3 +155,4 @@ configuration_inc = include_directories('.')
subdir('src')
subdir('doc')
+subdir('contrib')
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
configure_file(copy: true,
input: 'test_arm_api_data.conf',
output: 'test_arm_api_data.conf')
- test('test_arm_api', testarmapi)
- test('test_exponential_backoff', testexpbo)
- test('test_gnunet_service', testgnunetservice)
+ test('test_arm_api', testarmapi, workdir: meson.current_source_dir(),
+ suite: 'arm')
+ # FIXME this test currently times out/fails.
+ #test('test_exponential_backoff', testexpbo, workdir:
meson.current_source_dir())
+ test('test_gnunet_service', testgnunetservice, workdir:
meson.current_source_dir(),
+ suite: 'arm')
else
foreach p : libgnunetarm_src + gnunetservicearm_src
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')
subdir('namestore')
subdir('peerinfo-tool')
subdir('cadet')
-#subdir('set')
+subdir('set')
subdir('seti')
subdir('setu')
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
dependencies: gnunetdeps,
include_directories: [incdir, configuration_inc])
libgnunetutil_dep = declare_dependency(link_with : libgnunetutil)
+ testcommonalloc = executable ('test_common_allocation',
+ ['test_common_allocation.c'],
+ dependencies: [libgnunetutil_dep, libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+ test('test_common_allocation', testcommonalloc,
+ workdir: meson.current_source_dir(),
+ suite: ['util', 'util-common'])
+ testcommonlog = executable ('test_common_logging',
+ ['test_common_logging.c'],
+ dependencies: [libgnunetutil_dep, libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+ test('test_common_logging', testcommonlog,
+ workdir: meson.current_source_dir(),
+ suite: ['util', 'util-common'])
+ testcommonendian = executable ('test_common_endian',
+ ['test_common_endian.c'],
+ dependencies: [libgnunetutil_dep, libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+ test('test_common_endian', testcommonendian,
+ workdir: meson.current_source_dir(),
+ suite: ['util', 'util-common'])
+ testconf = executable ('test_configuration',
+ ['test_configuration.c'],
+ dependencies: [libgnunetutil_dep, libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+ test('test_configuration', testconf,
+ workdir: meson.current_source_dir(),
+ suite: ['util', 'util-configuration'])
+ testcontainerbloom = executable ('test_container_bloomfilter',
+ ['test_container_bloomfilter.c'],
+ dependencies: [libgnunetutil_dep, libgnunetutil_dep],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+ test('test_container_bloomfilter', testcontainerbloom,
+ workdir: meson.current_source_dir(),
+ suite: ['util', 'util-container'])
else
foreach p : libgnunetutil_src
gnunet_src += 'util/' + p
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: BUILD: add a couple of tests,
gnunet <=