diff options
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/selftests/jumplabel/test_jump_label.sh | 16 | ||||
-rw-r--r-- | tools/testing/selftests/static_keys/Makefile (renamed from tools/testing/selftests/jumplabel/Makefile) | 4 | ||||
-rw-r--r-- | tools/testing/selftests/static_keys/test_static_keys.sh | 16 |
3 files changed, 18 insertions, 18 deletions
diff --git a/tools/testing/selftests/jumplabel/test_jump_label.sh b/tools/testing/selftests/jumplabel/test_jump_label.sh deleted file mode 100644 index 3457e8a64e77..000000000000 --- a/tools/testing/selftests/jumplabel/test_jump_label.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# Runs jump label kernel module tests - -if /sbin/modprobe -q test_jump_label_base; then - if /sbin/modprobe -q test_jump_label; then - echo "jump_label: ok" - /sbin/modprobe -q -r test_jump_label - /sbin/modprobe -q -r test_jump_label_base - else - echo "jump_label: [FAIL]" - /sbin/modprobe -q -r test_jump_label_base - fi -else - echo "jump_label: [FAIL]" - exit 1 -fi diff --git a/tools/testing/selftests/jumplabel/Makefile b/tools/testing/selftests/static_keys/Makefile index 7526aa59e005..9cdadf37f114 100644 --- a/tools/testing/selftests/jumplabel/Makefile +++ b/tools/testing/selftests/static_keys/Makefile @@ -1,8 +1,8 @@ -# Makefile for jump label selftests +# Makefile for static keys selftests # No binaries, but make sure arg-less "make" doesn't trigger "run_tests" all: -TEST_PROGS := test_jump_label.sh +TEST_PROGS := test_static_keys.sh include ../lib.mk diff --git a/tools/testing/selftests/static_keys/test_static_keys.sh b/tools/testing/selftests/static_keys/test_static_keys.sh new file mode 100644 index 000000000000..1261e3fa1e3a --- /dev/null +++ b/tools/testing/selftests/static_keys/test_static_keys.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Runs static keys kernel module tests + +if /sbin/modprobe -q test_static_key_base; then + if /sbin/modprobe -q test_static_keys; then + echo "static_key: ok" + /sbin/modprobe -q -r test_static_keys + /sbin/modprobe -q -r test_static_key_base + else + echo "static_keys: [FAIL]" + /sbin/modprobe -q -r test_static_key_base + fi +else + echo "static_key: [FAIL]" + exit 1 +fi |