Files
HiSTBLinuxV100R005C00SPC060/source/kernel/linux-4.4.y/tools/testing/selftests/net/run_afpackettests
T
2024-08-12 23:07:35 +08:00

27 lines
416 B
Bash
Executable File

#!/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
echo "--------------------"
echo "running psock_tpacket test"
echo "--------------------"
./psock_tpacket
if [ $? -ne 0 ]; then
echo "[FAIL]"
else
echo "[PASS]"
fi