diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 11:59:21 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-13 11:59:21 -0400 |
| commit | 4541fec3104bef0c60633f9e180be94ea5ccc2b7 (patch) | |
| tree | 8a2bb66c4510bf122ca414de22af0a6f98bc36ab /tools/testing/selftests/Makefile | |
| parent | 39a8804455fb23f09157341d3ba7db6d7ae6ee76 (diff) | |
| parent | 2bfd4d1f8c2bee8b0b8832be0c38d3916713625f (diff) | |
Merge tag 'linux-kselftest-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan:
"This is a milestone update in a sense. Several new tests and install
and packaging support is added in this update.
This update adds install and packaging tools developed on top of
back-end shared logic enhancemnets to run and install tests. In
addition several timer tests are added.
- New timer tests from John Stultz
- rtc test from Prarit Bhargava
- Enhancements to un and install tests from Michael Ellerman
- Install and packaging tools from Shuah Khan
- Cross-compilation enablement from Tyler Baker
- A couple of bug fixes"
* tag 'linux-kselftest-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (42 commits)
ftracetest: Do not use usleep directly
selftest/mqueue: enable cross compilation
selftest/ipc: enable cross compilation
selftest/memfd: include default header install path
selftest/mount: enable cross compilation
selftest/memfd: enable cross compilation
kselftests: timers: Make set-timer-lat fail more gracefully for !CAP_WAKE_ALARM
selftests: Change memory on-off-test.sh name to be unique
selftests: change cpu on-off-test.sh name to be unique
selftests/mount: Make git ignore all binaries in mount test suite
kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat
ftracetest: Convert exit -1 to exit $FAIL
ftracetest: Cope properly with stack tracer not being enabled
tools, update rtctest.c to verify passage of time
Documentation, split up rtc.txt into documentation and test file
selftests: Add tool to generate kselftest tar archive
selftests: Add kselftest install tool
selftests: Set CC using CROSS_COMPILE once in lib.mk
selftests: Add install support for the powerpc tests
selftests/timers: Use shared logic to run and install tests
...
Diffstat (limited to 'tools/testing/selftests/Makefile')
| -rw-r--r-- | tools/testing/selftests/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 0db571340edb..d643d5242537 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile | |||
| @@ -55,7 +55,40 @@ clean_hotplug: | |||
| 55 | make -C $$TARGET clean; \ | 55 | make -C $$TARGET clean; \ |
| 56 | done; | 56 | done; |
| 57 | 57 | ||
| 58 | INSTALL_PATH ?= install | ||
| 59 | INSTALL_PATH := $(abspath $(INSTALL_PATH)) | ||
| 60 | ALL_SCRIPT := $(INSTALL_PATH)/run_kselftest.sh | ||
| 61 | |||
| 62 | install: | ||
| 63 | ifdef INSTALL_PATH | ||
| 64 | @# Ask all targets to install their files | ||
| 65 | mkdir -p $(INSTALL_PATH) | ||
| 66 | for TARGET in $(TARGETS); do \ | ||
| 67 | mkdir -p $(INSTALL_PATH)/$$TARGET ; \ | ||
| 68 | make -C $$TARGET INSTALL_PATH=$(INSTALL_PATH)/$$TARGET install; \ | ||
| 69 | done; | ||
| 70 | |||
| 71 | @# Ask all targets to emit their test scripts | ||
| 72 | echo "#!/bin/bash" > $(ALL_SCRIPT) | ||
| 73 | echo "cd \$$(dirname \$$0)" >> $(ALL_SCRIPT) | ||
| 74 | echo "ROOT=\$$PWD" >> $(ALL_SCRIPT) | ||
| 75 | |||
| 76 | for TARGET in $(TARGETS); do \ | ||
| 77 | echo "echo ; echo Running tests in $$TARGET" >> $(ALL_SCRIPT); \ | ||
| 78 | echo "echo ========================================" >> $(ALL_SCRIPT); \ | ||
| 79 | echo "cd $$TARGET" >> $(ALL_SCRIPT); \ | ||
| 80 | make -s --no-print-directory -C $$TARGET emit_tests >> $(ALL_SCRIPT); \ | ||
| 81 | echo "cd \$$ROOT" >> $(ALL_SCRIPT); \ | ||
| 82 | done; | ||
| 83 | |||
| 84 | chmod u+x $(ALL_SCRIPT) | ||
| 85 | else | ||
| 86 | $(error Error: set INSTALL_PATH to use install) | ||
| 87 | endif | ||
| 88 | |||
| 58 | clean: | 89 | clean: |
| 59 | for TARGET in $(TARGETS); do \ | 90 | for TARGET in $(TARGETS); do \ |
| 60 | make -C $$TARGET clean; \ | 91 | make -C $$TARGET clean; \ |
| 61 | done; | 92 | done; |
| 93 | |||
| 94 | .PHONY: install | ||
