diff options
author | Arthur She <arthur.she@linaro.org> | 2014-10-05 09:47:25 -0700 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-10-15 11:16:58 +0000 |
commit | 04d06939bf4501d870bc85b4883c9a8909bfb847 (patch) | |
tree | a5a7742629b871769c1b8ea7380514254beade22 /common/scripts/kselftest-net.sh | |
parent | 162ae95f869984b1a5cc13fee402261d27913b90 (diff) |
kselftest: Add in kernel selftests
Add cpu-hotplug, efivarfs, memory-hotplug, mqueue, net, ptrace, vm
tests for both openembedded and ubuntu
Change-Id: Ia0b77e6e287b66b07db295a6c9efcf56027cb969
Diffstat (limited to 'common/scripts/kselftest-net.sh')
-rwxr-xr-x | common/scripts/kselftest-net.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/common/scripts/kselftest-net.sh b/common/scripts/kselftest-net.sh new file mode 100755 index 0000000..a19696a --- /dev/null +++ b/common/scripts/kselftest-net.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +cd $(dirname $0) +BASEDIR=$(pwd) +LAVA_ROOT="${BASEDIR}/../.." +TEST_DIR="${LAVA_ROOT}/kselftest/net" +TESTS="socket psock_fanout psock_tpacket" + +cd ${TEST_DIR} + +if /sbin/modprobe test_bpf; then + /sbin/rmmod test_bpf; + echo "test_bpf: pass"; +else + echo "test_bpf: fail"; +fi + +for t in $TESTS +do + echo + echo "Running $t"; + ./$t; + [ $? -ne 0 ] && echo "$t: fail" || echo "$t: pass"; +done + |