Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From aac8834bfd5b79e724f2593895847b50968a1223 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 | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 12 | |
Brad Bishop | d5ae7d9 | 2018-06-14 09:52:03 -0700 | [diff] [blame] | 13 | --- |
| 14 | tests/Makefile.include | 8 ++++++++ |
| 15 | 1 file changed, 8 insertions(+) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
| 17 | diff --git a/tests/Makefile.include b/tests/Makefile.include |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 18 | index fb0b449c..afedabd4 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | --- a/tests/Makefile.include |
| 20 | +++ b/tests/Makefile.include |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 21 | @@ -967,4 +967,12 @@ all: $(QEMU_IOTESTS_HELPERS-y) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | -include $(wildcard tests/*.d) |
| 23 | -include $(wildcard tests/libqos/*.d) |
| 24 | |
| 25 | +buildtest-TESTS: $(check-unit-y) |
| 26 | + |
| 27 | +runtest-TESTS: |
| 28 | + for f in $(check-unit-y); do \ |
| 29 | + nf=$$(echo $$f | sed 's/tests\//\.\//g'); \ |
| 30 | + $$nf; \ |
| 31 | + done |
| 32 | + |
| 33 | endif |