blob: 0d43271c479fd3b75044938b59cd71c612894274 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From a9a669448ba6f1b295427e271d99f61736fc5189 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Juro Bystricky <juro.bystricky@intel.com>
3Date: Thu, 31 Aug 2017 11:06:56 -0700
Brad Bishopd5ae7d92018-06-14 09:52:03 -07004Subject: [PATCH] Add subpackage -ptest which runs all unit test cases for
5 qemu.
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006
7Upstream-Status: Pending
8
9Signed-off-by: Kai Kang <kai.kang@windriver.com>
10
11Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Brad Bishopd5ae7d92018-06-14 09:52:03 -070012---
13 tests/Makefile.include | 8 ++++++++
14 1 file changed, 8 insertions(+)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015
16diff --git a/tests/Makefile.include b/tests/Makefile.include
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017index 3b9a5e31a2..dfbcd728d7 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018--- a/tests/Makefile.include
19+++ b/tests/Makefile.include
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020@@ -972,4 +972,12 @@ all: $(QEMU_IOTESTS_HELPERS-y)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021 -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