diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2021-02-04 17:07:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-05 08:16:32 +0000 |
commit | 03bf6b3ec0aaa24e9f81b3b0024c59f7cc77b410 (patch) | |
tree | 7eabda26432abde9b6d8136cf911498dab046d0b /meta/recipes-devtools/qemu/qemu.inc | |
parent | c05385c88746b8e969d79b6140f5916c4a8bac86 (diff) | |
download | poky-03bf6b3ec0aaa24e9f81b3b0024c59f7cc77b410.tar.gz |
qemu: make ptest rework
After qemu upgrades to 5.2.0 in commit [1], if also switches
to meson and the previous logic which introduces the testsuites
changes in [2] and results in below error when run ptest test:
# ./run-ptest
for f in ; do \
nf=$(echo $f | sed 's/tests\//\.\//g'); \
$nf; \
done
So refactor the ptest part code to make it work again.
[1] https://git.openembedded.org/openembedded-core/commit/?id=181c635567aafb9b4787d8d6d0bcd4a615ceae80
[2] https://git.qemu.org/?p=qemu.git;a=commitdiff;h=279588d4deea2694ebe9ceb29dfdc5c08a7c4e27
(From OE-Core rev: a5c1290e8a24b844f0ba62df270f976096394d87)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu.inc')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index c894b81b10..cb854914b2 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -6,7 +6,7 @@ a variety of guest operating systems" | |||
6 | HOMEPAGE = "http://qemu.org" | 6 | HOMEPAGE = "http://qemu.org" |
7 | LICENSE = "GPLv2 & LGPLv2.1" | 7 | LICENSE = "GPLv2 & LGPLv2.1" |
8 | 8 | ||
9 | RDEPENDS_${PN}-ptest = "bash make" | 9 | RDEPENDS_${PN}-ptest = "bash" |
10 | 10 | ||
11 | require qemu-targets.inc | 11 | require qemu-targets.inc |
12 | inherit pkgconfig ptest | 12 | inherit pkgconfig ptest |
@@ -18,7 +18,6 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ | |||
18 | file://powerpc_rom.bin \ | 18 | file://powerpc_rom.bin \ |
19 | file://run-ptest \ | 19 | file://run-ptest \ |
20 | file://0001-qemu-Add-missing-wacom-HID-descriptor.patch \ | 20 | file://0001-qemu-Add-missing-wacom-HID-descriptor.patch \ |
21 | file://0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch \ | ||
22 | file://0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch \ | 21 | file://0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch \ |
23 | file://0004-qemu-disable-Valgrind.patch \ | 22 | file://0004-qemu-disable-Valgrind.patch \ |
24 | file://0006-chardev-connect-socket-to-a-spawned-command.patch \ | 23 | file://0006-chardev-connect-socket-to-a-spawned-command.patch \ |
@@ -50,18 +49,11 @@ do_install_append() { | |||
50 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi | 49 | if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi |
51 | } | 50 | } |
52 | 51 | ||
53 | do_compile_ptest() { | ||
54 | make buildtest-TESTS | ||
55 | } | ||
56 | |||
57 | do_install_ptest() { | 52 | do_install_ptest() { |
58 | cp -rL ${B}/tests ${D}${PTEST_PATH} | 53 | cp -rL ${B}/tests ${D}${PTEST_PATH} |
59 | find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {} | 54 | find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcodp]" | xargs -i rm -rf {} |
60 | 55 | ||
61 | cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests | ||
62 | # Don't check the file genreated by configure | 56 | # Don't check the file genreated by configure |
63 | sed -i -e '/wildcard config-host.mak/d' \ | ||
64 | -e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include | ||
65 | sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \ | 57 | sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \ |
66 | ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env | 58 | ${D}/${PTEST_PATH}/tests/qemu-iotests/common.env |
67 | sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh | 59 | sed -i -e "1s,#!/usr/bin/bash,#!${base_bindir}/bash," ${D}${PTEST_PATH}/tests/data/acpi/disassemle-aml.sh |