blob: 7b7c5d71a0060dfcb3a28f68a17d870624ecc275 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001From 281116b31981b0b9e174bda8abe00f4eaa33c2ae Mon Sep 17 00:00:00 2001
2From: 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
18index 36fc73fe..01fecd4d 100644
19--- a/tests/Makefile.include
20+++ b/tests/Makefile.include
21@@ -1184,4 +1184,12 @@ all: $(QEMU_IOTESTS_HELPERS-y)
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