Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From a9a669448ba6f1b295427e271d99f61736fc5189 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Juro Bystricky <juro.bystricky@intel.com> |
| 3 | Date: Thu, 31 Aug 2017 11:06:56 -0700 |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 4 | Subject: [PATCH] Add subpackage -ptest which runs all unit test cases for |
| 5 | qemu. |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 6 | |
| 7 | Upstream-Status: Pending |
| 8 | |
| 9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 10 | |
| 11 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 12 | --- |
| 13 | tests/Makefile.include | 8 ++++++++ |
| 14 | 1 file changed, 8 insertions(+) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | |
| 16 | diff --git a/tests/Makefile.include b/tests/Makefile.include |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | index 3b9a5e31a2..dfbcd728d7 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | --- a/tests/Makefile.include |
| 19 | +++ b/tests/Makefile.include |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | @@ -972,4 +972,12 @@ all: $(QEMU_IOTESTS_HELPERS-y) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | -include $(wildcard tests/*.d) |
| 22 | -include $(wildcard tests/libqos/*.d) |
| 23 | |
| 24 | +buildtest-TESTS: $(check-unit-y) |
| 25 | + |
| 26 | +runtest-TESTS: |
| 27 | + for f in $(check-unit-y); do \ |
| 28 | + nf=$$(echo $$f | sed 's/tests\//\.\//g'); \ |
| 29 | + $$nf; \ |
| 30 | + done |
| 31 | + |
| 32 | endif |