oss-fuzz: Always run the check, even on the oss-fuzz platform
authorAndrew Bartlett <abartlet@samba.org>
Thu, 22 Oct 2020 18:49:47 +0000 (07:49 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 22 Oct 2020 23:08:31 +0000 (23:08 +0000)
commita57702db1dee0aaf3bfea5f9e00d31963df0fe24
tree7f6b69b61904297ecfac376b56a199f9b2deace7
parentb5f8073431c3c518108c2477aa566694d79454a3
oss-fuzz: Always run the check, even on the oss-fuzz platform

It is much harder to determine why we get messages like
    Step #6: Error occured while running fuzz_reg_parse:
    Step #6: /workspace/out/coverage/fuzz_reg_parse: error while loading shared libraries: libavahi-common.so.3: cannot open shared object file: No such file or directory
instead this detects the failure to use RPATH (which is
strictly required instead of the modern RUNPATH)
otherwise.

We do this by creating a new build_samba.sh after renaming
build_samba.sh to do_build.sh because this is what oss-fuzz
runs, meaning we don't need to coordinate a MR there as well.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/fuzzing/oss-fuzz/build_samba.sh
lib/fuzzing/oss-fuzz/do_build.sh [new file with mode: 0755]
script/autobuild.py