diff options
Diffstat (limited to 'recipes-devtools/qemu/qemu-qoriq/0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch')
-rw-r--r-- | recipes-devtools/qemu/qemu-qoriq/0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq/0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch b/recipes-devtools/qemu/qemu-qoriq/0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch new file mode 100644 index 00000000..7f7da510 --- /dev/null +++ b/recipes-devtools/qemu/qemu-qoriq/0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 8ee6281516bd9210e75e91d705da8916bab3bf51 Mon Sep 17 00:00:00 2001 | ||
2 | From: Juro Bystricky <juro.bystricky@intel.com> | ||
3 | Date: Thu, 31 Aug 2017 11:06:56 -0700 | ||
4 | Subject: [PATCH] Add subpackage -ptest which runs all unit test cases for | ||
5 | qemu. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
10 | |||
11 | Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> | ||
12 | |||
13 | --- | ||
14 | tests/Makefile.include | 8 ++++++++ | ||
15 | 1 file changed, 8 insertions(+) | ||
16 | |||
17 | diff --git a/tests/Makefile.include b/tests/Makefile.include | ||
18 | index 8566f5f1..52d0320b 100644 | ||
19 | --- a/tests/Makefile.include | ||
20 | +++ b/tests/Makefile.include | ||
21 | @@ -1210,4 +1210,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 | ||