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./psock_fanout
13if [ $? -ne 0 ]; then
14	echo "[FAIL]"
15else
16	echo "[PASS]"
17fi
18
19echo "--------------------"
20echo "running psock_tpacket test"
21echo "--------------------"
22./psock_tpacket
23if [ $? -ne 0 ]; then
24	echo "[FAIL]"
25else
26	echo "[PASS]"
27fi
28