xref: /linux/tools/testing/selftests/net/test_bpf.sh (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
17069a97aSShuah Khan#!/bin/sh
2*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
37069a97aSShuah Khan# Runs bpf test using test_bpf kernel module
47069a97aSShuah Khan
57069a97aSShuah Khanif /sbin/modprobe -q test_bpf ; then
67069a97aSShuah Khan	/sbin/modprobe -q -r test_bpf;
77069a97aSShuah Khan	echo "test_bpf: ok";
87069a97aSShuah Khanelse
97069a97aSShuah Khan	echo "test_bpf: [FAIL]";
107069a97aSShuah Khan	exit 1;
117069a97aSShuah Khanfi
12