[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: meson: add still working core tests
From: |
gnunet |
Subject: |
[gnunet] branch master updated: meson: add still working core tests |
Date: |
Sun, 15 Oct 2023 21:30:24 +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 307543dfb meson: add still working core tests
307543dfb is described below
commit 307543dfb1de94f09940c61e7dfc4d793ec2e597
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Oct 15 21:30:19 2023 +0200
meson: add still working core tests
---
src/core/meson.build | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
diff --git a/src/core/meson.build b/src/core/meson.build
index 06ba0272e..2e3e958af 100644
--- a/src/core/meson.build
+++ b/src/core/meson.build
@@ -32,6 +32,38 @@ libgnunetcore_dep = declare_dependency(link_with :
libgnunetcore)
pkg.generate(libgnunetcore, url: 'https://www.gnunet.org',
description : 'Provides API for (encrypted) P2P communication')
+libgnunetcoretesting = library('gnunetcoretesting',
+ ['core_api_cmd_connecting_peers.c'],
+ dependencies: [
+ libgnunetutil_dep,
+ libgnunettesting_dep,
+ libgnunetarm_dep,
+ libgnunettransportapplication_dep,
+ libgnunettransportcore_dep,
+ ],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ soversion: '0',
+ version: '0.0.0',
+ install_dir: get_option('libdir'))
+libgnunetcoretesting_dep = declare_dependency(link_with : libgnunetcoretesting)
+
+shared_module('gnunet_test_core_plugin_cmd_just_run',
+ ['test_core_plugin_cmd_just_run.c'],
+ dependencies: [libgnunetutil_dep,
+ libgnunetcoretesting_dep,
+ libgnunettransportcore_dep,
+ libgnunettransportapplication_dep,
+ libgnunettesting_dep,
+ libgnunetpeerstore_dep,
+ libgnunetstatistics_dep,
+ libgnunethello_dep,
+ libgnunetarm_dep
+ ],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
+
executable ('gnunet-core',
['gnunet-core.c'],
dependencies: [libgnunetcore_dep, libgnunetutil_dep],
@@ -48,3 +80,40 @@ executable ('gnunet-service-core',
include_directories: [incdir, configuration_inc],
install: true,
install_dir: get_option('libdir') / 'gnunet' / 'libexec')
+
+configure_file(input : 'test_core_defaults.conf',
+ output : 'test_core_defaults.conf',
+ copy: true)
+
+configure_file(input : 'test_core_api_send_to_self.conf',
+ output : 'test_core_api_send_to_self.conf',
+ copy: true)
+
+configure_file(input : 'test_core_api_peer1.conf',
+ output : 'test_core_api_peer1.conf',
+ copy: true)
+
+testcore_api_send_self = executable ('test_core_api_send_to_self',
+ ['test_core_api_send_to_self.c'],
+ dependencies: [
+ libgnunetcore_dep,
+ libgnunetutil_dep,
+ libgnunettesting_dep
+ ],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+
+testcore_api_start = executable ('test_core_api_start_only',
+ ['test_core_api_send_to_self.c'],
+ dependencies: [
+ libgnunetcore_dep,
+ libgnunetutil_dep,
+ libgnunettesting_dep
+ ],
+ include_directories: [incdir, configuration_inc],
+ install: false)
+
+test('test_core_api_send_to_self', testcore_api_send_self,
+ suite: 'core', workdir: meson.current_build_dir())
+test('test_core_api_start_only', testcore_api_start,
+ suite: 'core', workdir: meson.current_build_dir())
--
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: meson: add still working core tests,
gnunet <=