diff options
Diffstat (limited to 'recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch')
| -rw-r--r-- | recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch b/recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch new file mode 100644 index 000000000..a99f72098 --- /dev/null +++ b/recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Add subpackage -ptest which runs all unit test cases for qemu. | ||
| 4 | |||
| 5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
| 6 | --- | ||
| 7 | tests/Makefile | 10 ++++++++++ | ||
| 8 | 1 file changed, 10 insertions(+) | ||
| 9 | |||
| 10 | diff --git a/tests/Makefile b/tests/Makefile | ||
| 11 | index 88f7105..3f40b4b 100644 | ||
| 12 | --- a/tests/Makefile | ||
| 13 | +++ b/tests/Makefile | ||
| 14 | @@ -405,3 +405,12 @@ all: $(QEMU_IOTESTS_HELPERS-y) | ||
| 15 | |||
| 16 | -include $(wildcard tests/*.d) | ||
| 17 | -include $(wildcard tests/libqos/*.d) | ||
| 18 | + | ||
| 19 | +buildtest-TESTS: $(check-unit-y) | ||
| 20 | + | ||
| 21 | +runtest-TESTS: | ||
| 22 | + for f in $(check-unit-y); do \ | ||
| 23 | + nf=$$(echo $$f | sed 's/tests\//\.\//g'); \ | ||
| 24 | + $$nf; \ | ||
| 25 | + done | ||
| 26 | + | ||
| 27 | -- | ||
| 28 | 1.7.9.5 | ||
| 29 | |||
