aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/test_bpf.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-16 13:15:12 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-16 13:15:12 -0800
commit61de8e53640ceeda564a65170a46c1edc2b37e11 (patch)
treef5b28f510ba8b6515fbdf67a4d81eccdeae742f5 /tools/testing/selftests/net/test_bpf.sh
parentMerge tag 'trace-3.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (diff)
parentselftest: size: Add size test for Linux kernel (diff)
downloadlinux-dev-61de8e53640ceeda564a65170a46c1edc2b37e11.tar.xz
linux-dev-61de8e53640ceeda564a65170a46c1edc2b37e11.zip
Merge tag 'linux-kselftest-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest update from Shuah Khan: "kselftest updates for 3.19-rc1: - kcmp test include file cleanup - kcmp change to build on all architectures - A light weight kselftest framework that provides a set of interfaces for tests to use to report results. In addition, several tests are updated to use the framework. - A new runtime system size test that prints the amount of RAM that the currently running system is using" * tag 'linux-kselftest-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftest: size: Add size test for Linux kernel selftests/kcmp: Always try to build the test selftests/kcmp: Don't include kernel headers kcmp: Move kcmp.h into uapi selftests/timers: change test to use ksft framework selftests/kcmp: change test to use ksft framework selftests/ipc: change test to use ksft framework selftests/breakpoints: change test to use ksft framework selftests: add kselftest framework for uniform test reporting selftests/user: move test out of Makefile into a shell script selftests/net: move test out of Makefile into a shell script
Diffstat (limited to 'tools/testing/selftests/net/test_bpf.sh')
-rwxr-xr-xtools/testing/selftests/net/test_bpf.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/test_bpf.sh b/tools/testing/selftests/net/test_bpf.sh
new file mode 100755
index 000000000000..8b29796d46aa
--- /dev/null
+++ b/tools/testing/selftests/net/test_bpf.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Runs bpf test using test_bpf kernel module
+
+if /sbin/modprobe -q test_bpf ; then
+ /sbin/modprobe -q -r test_bpf;
+ echo "test_bpf: ok";
+else
+ echo "test_bpf: [FAIL]";
+ exit 1;
+fi