blob: 2ccddd53cf257bc09158b87501bb6f1479ebf62a [file] [log] [blame]
Brad Bishopc68388fc2019-08-26 01:33:31 -04001From 67751f3a23e3db3012f391b3b3b73a4484488ce9 Mon Sep 17 00:00:00 2001
Brad Bishopc342db32019-05-15 21:57:59 -04002From: Juro Bystricky <juro.bystricky@intel.com>
3Date: Thu, 31 Aug 2017 11:06:56 -0700
4Subject: [PATCH] Add subpackage -ptest which runs all unit test cases for
5 qemu.
6
7Upstream-Status: Pending
8
9Signed-off-by: Kai Kang <kai.kang@windriver.com>
10
11Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
12
13---
14 tests/Makefile.include | 8 ++++++++
15 1 file changed, 8 insertions(+)
16
17diff --git a/tests/Makefile.include b/tests/Makefile.include
Brad Bishopc68388fc2019-08-26 01:33:31 -040018index fd7fdb86..83b7f409 100644
Brad Bishopc342db32019-05-15 21:57:59 -040019--- a/tests/Makefile.include
20+++ b/tests/Makefile.include
Brad Bishopc68388fc2019-08-26 01:33:31 -040021@@ -1183,4 +1183,12 @@ all: $(QEMU_IOTESTS_HELPERS-y)
Brad Bishopc342db32019-05-15 21:57:59 -040022 -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