aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_simple_send_performance.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_simple_send_performance.sh')
-rwxr-xr-xsrc/transport/test_transport_simple_send_performance.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/test_transport_simple_send_performance.sh b/src/transport/test_transport_simple_send_performance.sh
new file mode 100755
index 000000000..12798c2f0
--- /dev/null
+++ b/src/transport/test_transport_simple_send_performance.sh
@@ -0,0 +1,11 @@
1#!/bin/bash
2if ! [ -d "/run/netns" ]; then
3 echo You have to create the directory /run/netns.
4fi
5if [ -f /proc/sys/kernel/unprivileged_userns_clone ]; then
6 if [ "$(cat /proc/sys/kernel/unprivileged_userns_clone)" != 1 ]; then
7 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"
8 exit 78
9 fi
10fi
11exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_simple_send_performance_topo.conf"