summaryrefslogblamecommitdiffstats
path: root/tools/testing/selftests/net/run_afpackettests
blob: 2dc95fda7ef76e7b723fb91d9a68f44bcb6a2897 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
         
                                  








                                         
                            




                     



                                 
                             




                     









                                    
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

if [ $(id -u) != 0 ]; then
	echo $msg must be run as root >&2
	exit 0
fi

echo "--------------------"
echo "running psock_fanout test"
echo "--------------------"
./in_netns.sh ./psock_fanout
if [ $? -ne 0 ]; then
	echo "[FAIL]"
else
	echo "[PASS]"
fi

echo "--------------------"
echo "running psock_tpacket test"
echo "--------------------"
./in_netns.sh ./psock_tpacket
if [ $? -ne 0 ]; then
	echo "[FAIL]"
else
	echo "[PASS]"
fi

echo "--------------------"
echo "running txring_overwrite test"
echo "--------------------"
./in_netns.sh ./txring_overwrite
if [ $? -ne 0 ]; then
	echo "[FAIL]"
else
	echo "[PASS]"
fi