blob: 668fc4680c441c3c69ccf217c299249e11c26a73 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From aac8834bfd5b79e724f2593895847b50968a1223 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 Bishop19323692019-04-05 15:28:33 -040012
Brad Bishopd5ae7d92018-06-14 09:52:03 -070013---
14 tests/Makefile.include | 8 ++++++++
15 1 file changed, 8 insertions(+)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016
17diff --git a/tests/Makefile.include b/tests/Makefile.include
Brad Bishop19323692019-04-05 15:28:33 -040018index fb0b449c..afedabd4 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019--- a/tests/Makefile.include
20+++ b/tests/Makefile.include
Brad Bishop19323692019-04-05 15:28:33 -040021@@ -967,4 +967,12 @@ all: $(QEMU_IOTESTS_HELPERS-y)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022 -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