fuzz: only use generic-fuzz targets on oss-fuzz
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 23 Jun 2022 12:55:05 +0000 (08:55 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jul 2022 09:03:36 +0000 (11:03 +0200)
The non-generic-fuzz targets often time-out, or run out of memory.
Additionally, they create unreproducible bug-reports. It is possible
that this is resulting in failing coverage-reports on OSS-Fuzz. In the
future, these test-cases should be fixed, or removed.

Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20220623125505.2137534-1-alxndr@bu.edu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/oss-fuzz/build.sh

index 98b56e05210c3d2189d4a2ae2cf3a9ca2a2d8c0a..aaf485cb552f7607887791cad35edb6ecd795bb7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
 #
 # OSS-Fuzz build script. See:
 # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#buildsh
@@ -105,7 +105,7 @@ do
     # to be configured. We have some generic-fuzz-{pc-q35, floppy, ...} targets
     # that are thin wrappers around this target that set the required
     # environment variables according to predefined configs.
-    if [ "$target" != "generic-fuzz" ]; then
+    if [[ $target == "generic-fuzz-"* ]]; then
         ln  $base_copy \
             "$DEST_DIR/qemu-fuzz-i386-target-$target"
     fi