summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/run_afpackettests
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2013-03-20 23:07:56 +0400
committerDavid S. Miller <davem@davemloft.net>2013-03-20 23:07:56 +0400
commita6f68034de8a5784dfeabb337506254c80b4c8c6 (patch)
treeedb2cce97a947d80676d34fb89c2a0a218bc77f3 /tools/testing/selftests/net/run_afpackettests
parent4c1d8d0617a39c8325a7c2fd80ac14bf40fd8cc6 (diff)
downloadlinux-a6f68034de8a5784dfeabb337506254c80b4c8c6.tar.xz
net: Move selftests to common net/ subdirectory.
Suggested-by: Daniel Baluta <daniel.baluta@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/run_afpackettests')
-rw-r--r--tools/testing/selftests/net/run_afpackettests16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/run_afpackettests b/tools/testing/selftests/net/run_afpackettests
new file mode 100644
index 000000000000..7907824c6355
--- /dev/null
+++ b/tools/testing/selftests/net/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