brintos

brintos / linux-shallow public Read only

0
0
Text · 866 B · a59cb6a Raw
50 lines · plain
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03 4# Kselftest framework requirement - SKIP code is 4.5ksft_skip=46 7if [ $(id -u) != 0 ]; then8	echo $msg must be run as root >&29	exit $ksft_skip10fi11 12ret=013echo "--------------------"14echo "running psock_fanout test"15echo "--------------------"16./in_netns.sh ./psock_fanout17if [ $? -ne 0 ]; then18	echo "[FAIL]"19	ret=120else21	echo "[PASS]"22fi23 24echo "--------------------"25echo "running psock_tpacket test"26echo "--------------------"27if [ -f /proc/kallsyms ]; then28	./in_netns.sh ./psock_tpacket29	if [ $? -ne 0 ]; then30		echo "[FAIL]"31		ret=132	else33		echo "[PASS]"34	fi35else36	echo "[SKIP] CONFIG_KALLSYMS not enabled"37fi38 39echo "--------------------"40echo "running txring_overwrite test"41echo "--------------------"42./in_netns.sh ./txring_overwrite43if [ $? -ne 0 ]; then44	echo "[FAIL]"45	ret=146else47	echo "[PASS]"48fi49exit $ret50