diff options
author | Qiu Tingting <qiutt@fujitsu.com> | 2023-11-16 05:33:31 +0000 |
---|---|---|
committer | Qiu Tingting <qiutt@fujitsu.com> | 2023-11-16 05:33:31 +0000 |
commit | 4507f748f323fac0cc82c6516a02424b927e2d01 (patch) | |
tree | 922a212fceadea03a36207288e986932c49da644 /meta-agl-test/recipes-external/tar/tar_1.35.bbappend | |
parent | ce106265977e14fca59b6aa82c1da124cb420505 (diff) |
tar: fix ptest with upgrade 1.34 -> 1.35quillback_16.91.1quillback/16.91.116.91.1
Rename tar_1.34.bbappend -> tar_1.35.bbappend
Add 0004-disable-sparse05.patch to fix ptest-runner pipeline crash,
becuase case sparse05 will write files larger than 2 ^ 33 bytes.
Bug-AGL: SPEC-4753
Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
Change-Id: Ia8b301fb104c4699d95804d8f4074f4a5b58737a
Diffstat (limited to 'meta-agl-test/recipes-external/tar/tar_1.35.bbappend')
-rw-r--r-- | meta-agl-test/recipes-external/tar/tar_1.35.bbappend | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-agl-test/recipes-external/tar/tar_1.35.bbappend b/meta-agl-test/recipes-external/tar/tar_1.35.bbappend new file mode 100644 index 00000000..d00a61e0 --- /dev/null +++ b/meta-agl-test/recipes-external/tar/tar_1.35.bbappend @@ -0,0 +1,40 @@ +# 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 \ + file://0004-disable-sparse05.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 |