lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 24 Dec 2014 09:27:40 -0700 From: Shuah Khan <shuahkh@....samsung.com> To: mmarek@...e.cz, gregkh@...uxfoundation.org, akpm@...ux-foundation.org, rostedt@...dmis.org, mingo@...hat.com, davem@...emloft.net, keescook@...omium.org, tranmanphong@...il.com, mpe@...erman.id.au, cov@...eaurora.org, dh.herrmann@...il.com, hughd@...gle.com, bobby.prani@...il.com, serge.hallyn@...ntu.com, ebiederm@...ssion.com, tim.bird@...ymobile.com, josh@...htriplett.org, koct9i@...il.com Cc: Shuah Khan <shuahkh@....samsung.com>, linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org, linux-api@...r.kernel.org, netdev@...r.kernel.org Subject: [PATCH v3 04/20] selftests/firmware: add install target to enable test install Add a new make target to enable installing test. This target installs test in the kselftest install location and add to the kselftest script to run the test. Install target can be run only from top level kernel source directory. Signed-off-by: Shuah Khan <shuahkh@....samsung.com> --- tools/testing/selftests/firmware/Makefile | 43 +++++++++++++++++++------------ 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/tools/testing/selftests/firmware/Makefile b/tools/testing/selftests/firmware/Makefile index e23cce0..7ac1cf3 100644 --- a/tools/testing/selftests/firmware/Makefile +++ b/tools/testing/selftests/firmware/Makefile @@ -1,25 +1,34 @@ # Makefile for firmware loading selftests # No binaries, but make sure arg-less "make" doesn't trigger "run_tests" + +__fw_filesystem: +fw_filesystem = if /bin/sh ./fw_filesystem.sh ; then +fw_filesystem += echo fw_filesystem: ok; +fw_filesystem += else echo fw_filesystem: [FAIL]; +fw_filesystem += fi + +__fw_userhelper: +fw_userhelper = if /bin/sh ./fw_userhelper.sh ; then +fw_userhelper += echo fw_userhelper: ok; +fw_userhelper += else +fw_userhelper += echo fw_userhelper: [FAIL]; +fw_userhelper += fi + 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 +install: +ifdef INSTALL_KSFT_PATH + install ./fw_filesystem.sh ./fw_userhelper.sh $(INSTALL_KSFT_PATH) + @echo "$(fw_filesystem)" >> $(KSELFTEST) + @echo "$(fw_userhelper)" >> $(KSELFTEST) +else + @echo Run make kselftest_install in top level source directory +endif + +run_tests: + @$(fw_filesystem) + @$(fw_userhelper) # Nothing to clean up. clean: -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists