diff options
author | Kees Cook <keescook@chromium.org> | 2014-07-14 14:38:12 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-17 18:44:19 -0700 |
commit | 0a8adf584759cbcbce5d88d419db01a8d0373abf (patch) | |
tree | 30f1901d7c12756f558d259d89299c505697b41c /tools/testing/selftests/firmware/Makefile | |
parent | b1425189d0f928babb62bdc0609a4cd4d341654d (diff) | |
download | op-kernel-dev-0a8adf584759cbcbce5d88d419db01a8d0373abf.zip op-kernel-dev-0a8adf584759cbcbce5d88d419db01a8d0373abf.tar.gz |
test: add firmware_class loader test
This provides a simple interface to trigger the firmware_class loader
to test built-in, filesystem, and user helper modes. Additionally adds
tests via the new interface to the selftests tree.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/firmware/Makefile')
-rw-r--r-- | tools/testing/selftests/firmware/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/testing/selftests/firmware/Makefile b/tools/testing/selftests/firmware/Makefile new file mode 100644 index 0000000..e23cce0 --- /dev/null +++ b/tools/testing/selftests/firmware/Makefile @@ -0,0 +1,27 @@ +# Makefile for firmware loading selftests + +# No binaries, but make sure arg-less "make" doesn't trigger "run_tests" +all: + +fw_filesystem: + @if /bin/sh ./fw_filesystem.sh ; then \ + echo "fw_filesystem: ok"; \ + else \ + echo "fw_filesystem: [FAIL]"; \ + exit 1; \ + fi + +fw_userhelper: + @if /bin/sh ./fw_userhelper.sh ; then \ + echo "fw_userhelper: ok"; \ + else \ + echo "fw_userhelper: [FAIL]"; \ + exit 1; \ + fi + +run_tests: all fw_filesystem fw_userhelper + +# Nothing to clean up. +clean: + +.PHONY: all clean run_tests fw_filesystem fw_userhelper |