summaryrefslogtreecommitdiff
path: root/evergreen/jstestfuzz_run.sh
blob: 9e6f94ee65b2fad5e82295359a0e38303e8b9571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
. "$DIR/prelude.sh"

set -evo pipefail

cd src/jstestfuzz

in_patch_build_flag=""
if [[ "${is_patch}" = "true" ]]; then
  case "${npm_command}" in
  agg-fuzzer | query-fuzzer)
    in_patch_build_flag="--inPatchBuild"
    ;;
  esac
fi

./src/scripts/npm_run.sh ${npm_command} -- ${jstestfuzz_vars} ${in_patch_build_flag} --branch ${branch_name}