gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: - added dv script, but removed it from c


From: gnunet
Subject: [gnunet] branch master updated: - added dv script, but removed it from check_SCRIPTS, because it does not worg atm.
Date: Mon, 29 Nov 2021 13:51:55 +0100

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

t3sserakt pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 527ec708a - added dv script, but removed it from check_SCRIPTS, 
because it does not worg atm.
527ec708a is described below

commit 527ec708aace867948df47499482b13776de4611
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Mon Nov 29 13:51:49 2021 +0100

    - added dv script, but removed it from check_SCRIPTS, because it does not 
worg atm.
---
 src/transport/Makefile.am                      |  3 +--
 src/transport/test_transport_simple_send_dv.sh | 11 +++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 6c811ad7b..423602fea 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -776,8 +776,7 @@ check_SCRIPTS= \
   test_transport_simple_send_string.sh \
   test_transport_simple_send.sh \
   test_transport_simple_send_broadcast.sh \
-  test_transport_udp_backchannel.sh \
-  test_transport_simple_send_dv.sh
+  test_transport_udp_backchannel.sh 
 
 test_transport_start_with_config_SOURCES = \
  test_transport_start_with_config.c
diff --git a/src/transport/test_transport_simple_send_dv.sh 
b/src/transport/test_transport_simple_send_dv.sh
new file mode 100755
index 000000000..fa127cfa4
--- /dev/null
+++ b/src/transport/test_transport_simple_send_dv.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+if ! [ -d "/run/netns" ]; then
+    echo You have to create the directory /run/netns.
+fi
+if  [ "$(cat /proc/sys/kernel/unprivileged_userns_clone)" == 1 ]; then
+    # exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs 
/run/netns; valgrind --leak-check=full --track-origins=yes --trace-children=yes 
--trace-children-skip=/usr/bin/awk,/usr/bin/cut,/usr/bin/seq,/sbin/ip/sed/bash  
./test_transport_start_with_config test_transport_distance_vector_topo.conf"
+    exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs 
/run/netns; ./test_transport_start_with_config 
test_transport_distance_vector_topo.conf"
+else
+    echo -e "Error during test setup: The kernel parameter 
kernel.unprivileged_userns_clone has to be set to 1! One has to execute\n\n 
sysctl kernel.unprivileged_userns_clone=1\n"
+    exit 78
+fi

-- 
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]