1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0
3
4if [ $(id -u) != 0 ]; then
5	echo $msg must be run as root >&2
6	exit 0
7fi
8
9echo "--------------------"
10echo "running psock_fanout test"
11echo "--------------------"
12./in_netns.sh ./psock_fanout
13if [ $? -ne 0 ]; then
14	echo "[FAIL]"
15else
16	echo "[PASS]"
17fi
18
19echo "--------------------"
20echo "running psock_tpacket test"
21echo "--------------------"
22./in_netns.sh ./psock_tpacket
23if [ $? -ne 0 ]; then
24	echo "[FAIL]"
25else
26	echo "[PASS]"
27fi
28
29echo "--------------------"
30echo "running txring_overwrite test"
31echo "--------------------"
32./in_netns.sh ./txring_overwrite
33if [ $? -ne 0 ]; then
34	echo "[FAIL]"
35else
36	echo "[PASS]"
37fi
38