xref: /linux/tools/testing/selftests/net/run_afpackettests (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1#!/bin/sh
2
3if [ $(id -u) != 0 ]; then
4	echo $msg must be run as root >&2
5	exit 0
6fi
7
8echo "--------------------"
9echo "running psock_fanout test"
10echo "--------------------"
11./psock_fanout
12if [ $? -ne 0 ]; then
13	echo "[FAIL]"
14else
15	echo "[PASS]"
16fi
17
18echo "--------------------"
19echo "running psock_tpacket test"
20echo "--------------------"
21./psock_tpacket
22if [ $? -ne 0 ]; then
23	echo "[FAIL]"
24else
25	echo "[PASS]"
26fi
27