]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libarchive: skip fuzz tests in ptest run
authorSiva Balasubramanian <sivakumar.bs@gmail.com>
Fri, 3 Jul 2026 07:00:42 +0000 (12:30 +0530)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Jul 2026 16:15:09 +0000 (17:15 +0100)
The libarchive fuzz tests (test_fuzz_ar, test_fuzz_cab, test_fuzz_cpio,
test_fuzz_iso9660, ...) run 1000 randomised iterations per archive format
and are intended for dedicated fuzzing infrastructure rather than routine
ptest execution. On the time and memory constrained autobuilder QEMU
targets they regularly time out, e.g.:

  158: test_fuzz_iso9660    Timeout! System state:

Upstream provides the SKIP_TEST_FUZZ environment variable to skip these
tests. Export it from run-ptest so the fuzz tests are skipped rather than
run, while the rest of the test suite continues to execute normally.

[YOCTO #16340]

Signed-off-by: Siva Balasubramanian <sivakumar.bs@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/libarchive/libarchive/run-ptest

index 6a6eb0748b602b1c711e7eba70e4fb5c9c308dc2..d6b4c3f9343caa285950d5932b27ac76da54269f 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
 
+# The fuzz tests run 1000 randomised iterations per archive format and are
+# meant for dedicated fuzzing infrastructure, not routine ptest runs. They
+# regularly time out in the time/memory constrained autobuilder QEMU targets
+# (e.g. test_fuzz_iso9660). Skip them via the upstream escape hatch.
+export SKIP_TEST_FUZZ=1
+
 for t in libarchive_test bsdtar_test bsdcpio_test bsdcat_test bsdunzip_test; do
     ./$t
     if [ $? -eq 0 ]; then