summaryrefslogtreecommitdiff
path: root/test/compose/slirp4netns_opts/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/compose/slirp4netns_opts/setup.sh')
-rw-r--r--test/compose/slirp4netns_opts/setup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/compose/slirp4netns_opts/setup.sh b/test/compose/slirp4netns_opts/setup.sh
new file mode 100644
index 000000000..35bbf7c70
--- /dev/null
+++ b/test/compose/slirp4netns_opts/setup.sh
@@ -0,0 +1,8 @@
+# -*- bash -*-
+
+# create tempfile to store nc output
+OUTFILE=$(mktemp)
+# listen on a port, the container will try to connect to it
+nc -l 5001 > $OUTFILE &
+
+nc_pid=$!