diff options
author | Qiu Tingting <qiutt@fujitsu.com> | 2023-09-28 07:22:26 +0000 |
---|---|---|
committer | Qiu Tingting <qiutt@fujitsu.com> | 2023-09-28 07:22:26 +0000 |
commit | 39319e3a3bdfcc6c6da47035bf04b4255aec09e5 (patch) | |
tree | cc4c0e060e71e08d7eb8e16ad87e7f5625164802 /meta-agl-test/recipes-external/tar/tar_1.34.bbappend | |
parent | 5478e04bfe18d8fbb9404ca659bc86f1c49e52cb (diff) |
tar: Add ptest support
Add ptest support for tar.
It contains two parts.
One part is a backport for
http://cgit.openembedded.org/openembedded-core/commit/?h=master-next&id=878e154181e5e8d18e3605f0989bebf4aec1c6e1
It should be deleted after yocto version up.
Another part is changing formate of the result of "ptest-runner tar"
Because some cases have same name, adding a case number can better
locate incorrect case.
A sample:
PASS: tar version --> PASS: 1: tar version
SPEC-4753
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
Change-Id: I878bdf1693f0e71c1ba33642cd4ff70977e125f9
Diffstat (limited to 'meta-agl-test/recipes-external/tar/tar_1.34.bbappend')
-rw-r--r-- | meta-agl-test/recipes-external/tar/tar_1.34.bbappend | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-external/tar/tar_1.34.bbappend b/meta-agl-test/recipes-external/tar/tar_1.34.bbappend new file mode 100644 index 00000000..0fcd8290 --- /dev/null +++ b/meta-agl-test/recipes-external/tar/tar_1.34.bbappend @@ -0,0 +1,44 @@ +# Add ptest support + +# backport of yocto begin +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +# add for ptest support +SRC_URI += " \ + file://run-ptest \ + file://0001-tests-fix-TESTSUITE_AT.patch \ + file://0002-tests-check-for-recently-fixed-bug.patch \ + file://0003-Exclude-VCS-directory-with-writing-from-an-archive.patch \ +" + +inherit ptest + +do_compile_ptest() { + oe_runmake -C ${B}/gnu/ check + oe_runmake -C ${B}/lib/ check + oe_runmake -C ${B}/rmt/ check + oe_runmake -C ${B}/src/ check + rm -rf ${S}/tests/testsuite + oe_runmake -C ${B}/tests/ testsuite + oe_runmake -C ${B}/tests/ genfile checkseekhole ckmtime +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests/ + install --mode=755 ${B}/tests/atconfig ${D}${PTEST_PATH}/tests/ + sed -i "/abs_/d" ${D}${PTEST_PATH}/tests/atconfig + echo "abs_builddir=${PTEST_PATH}/tests/" >> ${D}${PTEST_PATH}/tests/atconfig + install --mode=755 ${B}/tests/atlocal ${D}${PTEST_PATH}/tests/ + sed -i "/PATH=/d" ${D}${PTEST_PATH}/tests/atlocal + install --mode=755 ${B}/tests/genfile ${D}${PTEST_PATH}/tests/ + install --mode=755 ${B}/tests/checkseekhole ${D}${PTEST_PATH}/tests/ + install --mode=755 ${B}/tests/ckmtime ${D}${PTEST_PATH}/tests/ + install --mode=755 ${S}/tests/testsuite ${D}${PTEST_PATH}/tests/ + sed -i "s#@PTEST_PATH@#${PTEST_PATH}#g" ${D}${PTEST_PATH}/run-ptest +} +# backport of yocto end + +# add for agl-test-framework +do_install_ptest:append() { + sed -i "s/\$at_am_msg: \$at_desc/\$at_am_msg: \$at_desc_line/g" ${D}${PTEST_PATH}/tests/testsuite +} |