Hi Alex, Thanks for the review. cli-tests now run as the ptest user, GNU grep and less are added to RDEPENDS, and the QEMU image is given 4GB RAM and with these changes, 40 out of 41 cli-tests pass. The only remaining failure is compression/levels.sh, where zstd --max attempts to allocate ~8.5GB (kernel logs: __vm_enough_memory: bytes: 8597475328) on 64-bit systems. This exceeds what we can reasonably provide in a QEMU ptest environment. Would it be acceptable to exclude this single test, or do you have another suggestion?
Best Regards, Pratik ________________________________________ From: Alexander Kanavin <[email protected]> Sent: Thursday, August 27, 2026 12:09 PM To: Pratik Farkase Cc: [email protected]; [email protected] Subject: Re: [OE-core][PATCH v3] zstd: add ptest support On Wed, 26 Aug 2026 at 10:27, Pratik Farkase via lists.openembedded.org <[email protected]> wrote: > + # Remove tests incompatible with ptest environment: > + # levels.sh: --ultra/--max levels require >8GB RAM > + rm -f ${D}${PTEST_PATH}/tests/cli-tests/compression/levels.sh > + # window-resize.sh: 1GB window size requires >4GB RAM > + rm -f ${D}${PTEST_PATH}/tests/cli-tests/compression/window-resize.sh Earlier versions of the patch adjusted RAM allocation for the image, and this one removes the tests instead. Why was this changed? Adjusting RAM is better, and it's standard procedure for ptests. > + # compress-file-to-dir-without-write-perm.sh: ptest runs as root, > + # which bypasses filesystem permission checks > + rm -f > ${D}${PTEST_PATH}/tests/cli-tests/file-stat/compress-file-to-dir-without-write-perm.sh This as well should not be done: rather run ptests as a regular user, for example look at meta/recipes-extended/cpio/files/run-ptest. > + # cltools/: zstdgrep requires GNU grep --label option not available > + # in BusyBox grep > + rm -rf ${D}${PTEST_PATH}/tests/cli-tests/cltools This can addressed by adding GNU grep to ptest's package RDEPENDS. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#244477): https://lists.openembedded.org/g/openembedded-core/message/244477 Mute This Topic: https://lists.openembedded.org/mt/120933962/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
