1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 3 4 # Kselftest framework requirement - SKIP code is 4. 5 ksft_skip=4 6 7 if [ $(id -u) != 0 ]; then 8 echo $msg must be run as root >&2 9 exit $ksft_skip 10 fi 11 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]" 22 fi 23 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]" 34 fi 35 else 36 echo "[SKIP] CONFIG_KALLSYMS not enabled" 37 fi 38 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]" 48 fi 49 exit $ret
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.