summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-30 09:35:00 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-30 09:35:00 +0200
commitc6cdedd416647bd28ee25d8d83f83a1233db2d5a (patch)
treecb4a1affe431d45da747b52f603ec417aa266455 /src/transport
parent34822f004386e6e727a8a8917f91bce367457b84 (diff)
-launch via script
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/Makefile.am6
-rw-r--r--src/transport/test_transport_simple_send.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 70687f7b5..61b3bab7c 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -697,7 +697,8 @@ TESTS = \
$(HTTP_API_TIMEOUT_TEST) \
$(HTTPS_API_TIMEOUT_TEST) \
$(WLAN_TIMEOUT_TEST) \
- $(BT_TIMEOUT_TEST)
+ $(BT_TIMEOUT_TEST) \
+ $(check_SCRIPTS)
if HAVE_GETOPT_BINARY
TESTS += \
test_transport_api_slow_ats
@@ -722,6 +723,9 @@ TESTS += \
endif
endif
+check_SCRIPTS= \
+ test_transport_simple_send.sh
+
test_transport_api_cmd_simple_send_SOURCES = \
test_transport_api_cmd_simple_send.c
test_transport_api_cmd_simple_send_LDADD = \
diff --git a/src/transport/test_transport_simple_send.sh b/src/transport/test_transport_simple_send.sh
new file mode 100644
index 000000000..25d5b6797
--- /dev/null
+++ b/src/transport/test_transport_simple_send.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_simple_send"