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>
#!/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