diff options
-rw-r--r-- | src/transport/Makefile.am | 3 | ||||
-rwxr-xr-x | 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= \ | |||
776 | test_transport_simple_send_string.sh \ | 776 | test_transport_simple_send_string.sh \ |
777 | test_transport_simple_send.sh \ | 777 | test_transport_simple_send.sh \ |
778 | test_transport_simple_send_broadcast.sh \ | 778 | test_transport_simple_send_broadcast.sh \ |
779 | test_transport_udp_backchannel.sh \ | 779 | test_transport_udp_backchannel.sh |
780 | test_transport_simple_send_dv.sh | ||
781 | 780 | ||
782 | test_transport_start_with_config_SOURCES = \ | 781 | test_transport_start_with_config_SOURCES = \ |
783 | test_transport_start_with_config.c | 782 | 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 @@ | |||
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_topo.conf" | ||
8 | else | ||
9 | 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" | ||
10 | exit 78 | ||
11 | fi | ||