diff options
author | David S. Miller <davem@davemloft.net> | 2013-03-20 23:07:56 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 23:07:56 +0400 |
commit | a6f68034de8a5784dfeabb337506254c80b4c8c6 (patch) | |
tree | edb2cce97a947d80676d34fb89c2a0a218bc77f3 /tools/testing/selftests/net/run_afpackettests | |
parent | 4c1d8d0617a39c8325a7c2fd80ac14bf40fd8cc6 (diff) | |
download | linux-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_afpackettests | 16 |
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 |