drm/atomic-helper: document drm_atomic_helper_check() restrictions
[drm/drm-misc.git] / tools / testing / selftests / net / run_afpackettests
bloba59cb6a3c4f53f0150c4a02f6059f3483ce1f3a7
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest framework requirement - SKIP code is 4.
5 ksft_skip=4
7 if [ $(id -u) != 0 ]; then
8 echo $msg must be run as root >&2
9 exit $ksft_skip
12 ret=0
13 echo "--------------------"
14 echo "running psock_fanout test"
15 echo "--------------------"
16 ./in_netns.sh ./psock_fanout
17 if [ $? -ne 0 ]; then
18 echo "[FAIL]"
19 ret=1
20 else
21 echo "[PASS]"
24 echo "--------------------"
25 echo "running psock_tpacket test"
26 echo "--------------------"
27 if [ -f /proc/kallsyms ]; then
28 ./in_netns.sh ./psock_tpacket
29 if [ $? -ne 0 ]; then
30 echo "[FAIL]"
31 ret=1
32 else
33 echo "[PASS]"
35 else
36 echo "[SKIP] CONFIG_KALLSYMS not enabled"
39 echo "--------------------"
40 echo "running txring_overwrite test"
41 echo "--------------------"
42 ./in_netns.sh ./txring_overwrite
43 if [ $? -ne 0 ]; then
44 echo "[FAIL]"
45 ret=1
46 else
47 echo "[PASS]"
49 exit $ret