Skip to content

Commit

Permalink
Ensure we have a corpus directory before running the fuzzer to handle…
Browse files Browse the repository at this point in the history
… old branches r=me
  • Loading branch information
Tim Taubert committed Jan 13, 2017
1 parent 5b3547a commit 95cfdc5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions automation/taskcluster/scripts/fuzz.sh
Expand Up @@ -2,16 +2,20 @@

source $(dirname "$0")/tools.sh

type="$1"
shift

# Fetch artifact if needed.
fetch_dist

# Clone corpus.
./nss/fuzz/clone_corpus.sh

# Ensure we have a directory.
mkdir -p nss/fuzz/corpus/$type

# Fetch objdir name.
objdir=$(cat dist/latest)

# Run nssfuzz.
type="$1"
shift
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:dist/$objdir/lib dist/$objdir/bin/nssfuzz-"$type" "$@"

0 comments on commit 95cfdc5

Please sign in to comment.