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