Skip to contentSkip to conversation

libarchive: skip fuzz tests in ptest run

PATCH New Siva Balasubramanian 1 participant 1 message Jul 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libarchive: skip fuzz tests in ptest run

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]

---
 meta/recipes-extended/libarchive/libarchive/run-ptest | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-extended/libarchive/libarchive/run-ptest +6 -0
index 6a6eb0748b..d6b4c3f934 100755
@@ -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
Signature · 1 line
2.34.1