Fix travis-fuzz upgrade handling

This commit is contained in:
Matt Corallo 2018-04-02 18:44:02 -04:00 committed by Andrew Poelstra
parent 0c10cb127e
commit 49d7538452
1 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
cargo install honggfuzz set -e
set +e cargo install --force honggfuzz
for TARGET in fuzz_targets/*; do for TARGET in fuzz_targets/*; do
FILENAME=$(basename $TARGET) FILENAME=$(basename $TARGET)
FILE="${FILENAME%.*}" FILE="${FILENAME%.*}"
HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" HFUZZ_RUN_ARGS="-N1000000 --exit_upon_crash -v" cargo hfuzz run $FILE HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" HFUZZ_RUN_ARGS="-N1000000 --exit_upon_crash -v" cargo hfuzz run $FILE
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT
for CASE in hfuzz_workspace/$FILE/SIG*; do for CASE in hfuzz_workspace/$FILE/SIG*; do
cat $CASE | xxd -p cat $CASE | xxd -p