gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: -netjail test start point


From: gnunet
Subject: [gnunet] branch master updated: -netjail test start point
Date: Sun, 19 May 2024 22:44:27 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 5da6af0e9 -netjail test start point
5da6af0e9 is described below

commit 5da6af0e99cc3eeacd61865d04258eb515b7457e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun May 19 22:44:23 2024 +0200

    -netjail test start point
---
 scripts/netjail/netjail_test_master.sh | 2 +-
 src/lib/testing/Makefile.am            | 9 ++++++++-
 src/lib/testing/test_netjail_api.sh    | 2 ++
 src/lib/testing/test_netjail_topo.conf | 1 +
 4 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/scripts/netjail/netjail_test_master.sh 
b/scripts/netjail/netjail_test_master.sh
old mode 100644
new mode 100755
index 4209a235f..9487f3106
--- a/scripts/netjail/netjail_test_master.sh
+++ b/scripts/netjail/netjail_test_master.sh
@@ -15,4 +15,4 @@ else
     echo -e "Error during test setup: The kernel lacks the parameter 
'kernel.unprivileged_userns_clone'\n"
     exit 77
 fi
-exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; 
$@"
+exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; 
$*"
diff --git a/src/lib/testing/Makefile.am b/src/lib/testing/Makefile.am
index fa4be886d..913d5dd68 100644
--- a/src/lib/testing/Makefile.am
+++ b/src/lib/testing/Makefile.am
@@ -63,8 +63,12 @@ gnunet_testing_netjail_launcher_LDADD = $(XLIB) \
 check_PROGRAMS = \
   test_testing_api
 
+check_SCRIPTS = \
+  test_netjail_api.sh
+
 TESTS = \
-  $(check_PROGRAMS)
+  $(check_PROGRAMS) \
+  $(check_SCRIPTS)
 
 test_testing_api_SOURCES = \
   test_testing_api.c
@@ -72,3 +76,6 @@ test_testing_api_LDADD = \
   libgnunettesting.la \
   -lgnunetutil \
   $(XLIB)
+
+EXTRA_DIST = \
+  test_netjail_topo.conf
diff --git a/src/lib/testing/test_netjail_api.sh 
b/src/lib/testing/test_netjail_api.sh
new file mode 100755
index 000000000..49e3d3fff
--- /dev/null
+++ b/src/lib/testing/test_netjail_api.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec ../../../scripts/netjail/netjail_test_master.sh 
gnunet-testing-netjail-launcher test_netjail_topo.conf
diff --git a/src/lib/testing/test_netjail_topo.conf 
b/src/lib/testing/test_netjail_topo.conf
new file mode 100644
index 000000000..ab7768987
--- /dev/null
+++ b/src/lib/testing/test_netjail_topo.conf
@@ -0,0 +1 @@
+M

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]