oss-fuzz: Always run the check, even on the oss-fuzz platform
[samba.git] / lib / fuzzing / oss-fuzz / build_samba.sh
1 #!/bin/sh
2 #
3 # This is not a general-purpose build script, but instead one specific
4 # to the Google oss-fuzz compile environment.
5 #
6 # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#Requirements
7 #
8 # https://github.com/google/oss-fuzz/blob/master/infra/base-images/base-builder/README.md#provided-environment-variables
9 #
10 # This file is run by
11 # https://github.com/google/oss-fuzz/blob/master/projects/samba/build.sh
12 # which does nothing else.
13 #
14 # Additional arguments are passed to configure, to allow this to be
15 # tested in autobuild.py
16 #
17
18 # Ensure we give good trace info, fail right away and fail with unset
19 # variables
20 set -e
21 set -x
22 set -u
23
24 $(dirname $0)/do_build.sh $@
25 $(dirname $0)/check_build.sh $OUT