[infra] Make `targets_list` detect JVM/Python targets (#5775)

* [infra] Make `targets_list` detect JVM/Python targets

`targets_list` should not detect `jazzer_driver` and `jazzer_driver_asan` as fuzz targets, but should consider shell scripts that contain `LLVMFuzzerTestOneInput`.

@inferno-chromium This should fix https://github.com/google/oss-fuzz/pull/5770#issuecomment-841851786.

* Fix
This commit is contained in:
Fabian Meumertzheim 2021-05-16 20:37:55 +02:00 committed by GitHub
parent 3895320c7f
commit 88f76bc641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
for binary in $(find $OUT/ -executable -type f); do
[[ "$binary" != *.so ]] || continue
file "$binary" | grep ELF > /dev/null 2>&1 || continue
[[ $(basename "$binary") != jazzer_driver* ]] || continue
file "$binary" | grep -e ELF -e "shell script" > /dev/null 2>&1 || continue
grep "LLVMFuzzerTestOneInput" "$binary" > /dev/null 2>&1 || continue
basename "$binary"