aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/add-ptest-in-makefile.patch
blob: 2ce3478e4af2c5ea47bcc115d219f3b666886ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Upstream-Status: Pending

Add subpackage -ptest which runs all unit test cases for qemu.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 tests/Makefile.include | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/Makefile.include b/tests/Makefile.include
index 14be491..0fce37a 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -776,3 +776,11 @@ all: $(QEMU_IOTESTS_HELPERS-y)
 
 -include $(wildcard tests/*.d)
 -include $(wildcard tests/libqos/*.d)
+
+buildtest-TESTS: $(check-unit-y)
+
+runtest-TESTS:
+	for f in $(check-unit-y); do \
+		nf=$$(echo $$f | sed 's/tests\//\.\//g'); \
+		$$nf; \
+	done
-- 
2.9.0