selftests/net: move test out of Makefile into a shell script
Currently bpf test run from the Makefile. Move it out of the Makefile to be run from a shell script to allow the test to be run as stand-alone test, in addition to allowing the test run from a make target. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Acked-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
10
tools/testing/selftests/net/test_bpf.sh
Executable file
10
tools/testing/selftests/net/test_bpf.sh
Executable file
@@ -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
|
Reference in New Issue
Block a user