Commit 7069a97a authored by Shuah Khan's avatar Shuah Khan

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: default avatarShuah Khan <shuahkh@osg.samsung.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0df1f248
...@@ -14,12 +14,6 @@ all: $(NET_PROGS) ...@@ -14,12 +14,6 @@ all: $(NET_PROGS)
run_tests: all run_tests: all
@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]" @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
@if /sbin/modprobe test_bpf ; then \ ./test_bpf.sh
/sbin/rmmod test_bpf; \
echo "test_bpf: ok"; \
else \
echo "test_bpf: [FAIL]"; \
exit 1; \
fi
clean: clean:
$(RM) $(NET_PROGS) $(RM) $(NET_PROGS)
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment