3 # A very simple check script to confirm we still provide binaries
4 # that look like the targets oss-fuzz wants.
6 # A much stronger check is availble in oss-fuzz via
7 # infra/helper.py check_build samba
10 # oss-fuzz provides an OUT variable, so for clarity this script
11 # uses the same. See build_samba.sh
14 # build_samba.sh will have put a non-zero number of fuzzers here. If
15 # there are none, this will fail as it becomes literally fuzz_*
16 for bin
in $OUT/fuzz_
*
18 # Confirm that the chrpath was reset to lib/ in the same directory
20 chrpath
-l $bin |
grep 'RUNPATH=$ORIGIN/lib'
22 # Confirm that we link to at least some libraries in this
23 # directory (shows that the libraries were found and copied).
24 ldd
$bin |
grep "$OUT/lib"