diff options
| author | Ting Liu <ting.liu@nxp.com> | 2016-01-09 14:43:33 +0800 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 15:03:23 -0300 |
| commit | 695eaac89524a731f55594381497edd035c9139d (patch) | |
| tree | 1c06cefed499c8254bd10af977ccd42b74db0210 | |
| parent | 25f3befd73c7a82b0e69503e67c1fa6613c5f798 (diff) | |
| download | meta-freescale-695eaac89524a731f55594381497edd035c9139d.tar.gz | |
qemu_qoriq: import ptest patches from poky
Signed-off-by: Ting Liu <ting.liu@nxp.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
| -rw-r--r-- | recipes-devtools/qemu/qemu-qoriq/add-ptest-in-makefile.patch | 29 | ||||
| -rw-r--r-- | recipes-devtools/qemu/qemu-qoriq/run-ptest | 8 | ||||
| -rw-r--r-- | recipes-devtools/qemu/qemu-qoriq_git.bb | 8 |
3 files changed, 45 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 | |||
diff --git a/recipes-devtools/qemu/qemu-qoriq/run-ptest b/recipes-devtools/qemu/qemu-qoriq/run-ptest new file mode 100644 index 000000000..f4b8e97e1 --- /dev/null +++ b/recipes-devtools/qemu/qemu-qoriq/run-ptest | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | #This script is used to run qemu test suites | ||
| 4 | ptestdir=$(pwd) | ||
| 5 | cd tests | ||
| 6 | |||
| 7 | export SRC_PATH=$ptestdir | ||
| 8 | make -k runtest-TESTS | sed '/: OK/ s/^/PASS: /g' | ||
diff --git a/recipes-devtools/qemu/qemu-qoriq_git.bb b/recipes-devtools/qemu/qemu-qoriq_git.bb index e799cf2fe..26f159670 100644 --- a/recipes-devtools/qemu/qemu-qoriq_git.bb +++ b/recipes-devtools/qemu/qemu-qoriq_git.bb | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 2 | |||
| 1 | require recipes-devtools/qemu/qemu.inc | 3 | require recipes-devtools/qemu/qemu.inc |
| 2 | 4 | ||
| 3 | DESCRIPTION = "This recipe requires poky's qemu.inc which includes the FSL \ | 5 | DESCRIPTION = "This recipe requires poky's qemu.inc which includes the FSL \ |
| @@ -26,6 +28,12 @@ RDEPENDS_${PN}_append = " gnutls" | |||
| 26 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git;branch=sdk-v1.9.x" | 28 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git;branch=sdk-v1.9.x" |
| 27 | SRCREV = "8362a298c4feef33c84d7db2d111af18bd29ef86" | 29 | SRCREV = "8362a298c4feef33c84d7db2d111af18bd29ef86" |
| 28 | 30 | ||
| 31 | # add ptest patches | ||
| 32 | SRC_URI_append = "\ | ||
| 33 | file://add-ptest-in-makefile.patch \ | ||
| 34 | file://run-ptest \ | ||
| 35 | " | ||
| 36 | |||
| 29 | S = "${WORKDIR}/git" | 37 | S = "${WORKDIR}/git" |
| 30 | 38 | ||
| 31 | QEMU_TARGETS_qoriq-ppc = "ppc" | 39 | QEMU_TARGETS_qoriq-ppc = "ppc" |
