aboutsummaryrefslogtreecommitdiff
path: root/tests/udpsource.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/udpsource.sh')
-rwxr-xr-xtests/udpsource.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/udpsource.sh b/tests/udpsource.sh
new file mode 100755
index 0000000..f48cd55
--- /dev/null
+++ b/tests/udpsource.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+P=$1
+PORT=$((P))
+if [ ${PORT} -lt 1 ]; then
+ echo "usage: $0 <port>" 1>&2
+ exit 1
+fi
+
+yes abcdefghijklmnopqrstuvwxyz | nc -u localhost ${PORT} > /dev/null