ctdb-recoverd: Flatten update_flags_on_all_nodes()
[Samba.git] / lib / fuzzing / oss-fuzz / check_build.sh
blobcc69cf26418e4cde3b791a8b42b8148654a2f6d1
1 #!/bin/sh -eux
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
12 OUT=$1
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
19 # as the binary
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"
25 done