]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - tools/testing/selftests/net/run_afpackettests
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / tools / testing / selftests / net / run_afpackettests
CommitLineData
77f65ebd 1#!/bin/sh
b2441318 2# SPDX-License-Identifier: GPL-2.0
77f65ebd
WB
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
23a95442
DB
18
19echo "--------------------"
20echo "running psock_tpacket test"
21echo "--------------------"
22./psock_tpacket
23if [ $? -ne 0 ]; then
24 echo "[FAIL]"
25else
26 echo "[PASS]"
27fi