summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net-afpacket/run_afpackettests
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/net-afpacket/run_afpackettests')
-rw-r--r--tools/testing/selftests/net-afpacket/run_afpackettests16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/testing/selftests/net-afpacket/run_afpackettests b/tools/testing/selftests/net-afpacket/run_afpackettests
new file mode 100644
index 000000000000..7907824c6355
--- /dev/null
+++ b/tools/testing/selftests/net-afpacket/run_afpackettests
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+if [ $(id -u) != 0 ]; then
+ echo $msg must be run as root >&2
+ exit 0
+fi
+
+echo "--------------------"
+echo "running psock_fanout test"
+echo "--------------------"
+./psock_fanout
+if [ $? -ne 0 ]; then
+ echo "[FAIL]"
+else
+ echo "[PASS]"
+fi