]> git.ipfire.org Git - thirdparty/kernel/linux.git/blob - tools/testing/selftests/net/run_afpackettests
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / tools / testing / selftests / net / run_afpackettests
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3
4 if [ $(id -u) != 0 ]; then
5 echo $msg must be run as root >&2
6 exit 0
7 fi
8
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]"
17 fi
18
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]"
27 fi