1a6f68034SDavid S. Miller#!/bin/sh 2b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 3a6f68034SDavid S. Miller 4a6f68034SDavid S. Millerif [ $(id -u) != 0 ]; then 5a6f68034SDavid S. Miller echo $msg must be run as root >&2 6a6f68034SDavid S. Miller exit 0 7a6f68034SDavid S. Millerfi 8a6f68034SDavid S. Miller 98c03557cSPo-Hsu Linret=0 10a6f68034SDavid S. Millerecho "--------------------" 11a6f68034SDavid S. Millerecho "running psock_fanout test" 12a6f68034SDavid S. Millerecho "--------------------" 13cc30c93fSWillem de Bruijn./in_netns.sh ./psock_fanout 14a6f68034SDavid S. Millerif [ $? -ne 0 ]; then 15a6f68034SDavid S. Miller echo "[FAIL]" 168c03557cSPo-Hsu Lin ret=1 17a6f68034SDavid S. Millerelse 18a6f68034SDavid S. Miller echo "[PASS]" 19a6f68034SDavid S. Millerfi 2023a95442SDaniel Borkmann 2123a95442SDaniel Borkmannecho "--------------------" 2223a95442SDaniel Borkmannecho "running psock_tpacket test" 2323a95442SDaniel Borkmannecho "--------------------" 24cc30c93fSWillem de Bruijn./in_netns.sh ./psock_tpacket 2523a95442SDaniel Borkmannif [ $? -ne 0 ]; then 2623a95442SDaniel Borkmann echo "[FAIL]" 278c03557cSPo-Hsu Lin ret=1 2823a95442SDaniel Borkmannelse 2923a95442SDaniel Borkmann echo "[PASS]" 3023a95442SDaniel Borkmannfi 31358be656SWillem de Bruijn 32358be656SWillem de Bruijnecho "--------------------" 33358be656SWillem de Bruijnecho "running txring_overwrite test" 34358be656SWillem de Bruijnecho "--------------------" 35358be656SWillem de Bruijn./in_netns.sh ./txring_overwrite 36358be656SWillem de Bruijnif [ $? -ne 0 ]; then 37358be656SWillem de Bruijn echo "[FAIL]" 388c03557cSPo-Hsu Lin ret=1 39358be656SWillem de Bruijnelse 40358be656SWillem de Bruijn echo "[PASS]" 41358be656SWillem de Bruijnfi 428c03557cSPo-Hsu Linexit $ret 43