Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / testing / selftests / net / run_afpackettests
blob21fe149e3de1ea5abaaeee983944929086222751
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 if [ $(id -u) != 0 ]; then
5 echo $msg must be run as root >&2
6 exit 0
7 fi
9 echo "--------------------"
10 echo "running psock_fanout test"
11 echo "--------------------"
12 ./psock_fanout
13 if [ $? -ne 0 ]; then
14 echo "[FAIL]"
15 else
16 echo "[PASS]"
19 echo "--------------------"
20 echo "running psock_tpacket test"
21 echo "--------------------"
22 ./psock_tpacket
23 if [ $? -ne 0 ]; then
24 echo "[FAIL]"
25 else
26 echo "[PASS]"