Merge pull request #73 from rust-bitcoin/minor-stuff

add fuzzer output to gitignore; remove ancient secp build instructions from Travis
This commit is contained in:
Matt Corallo 2018-04-16 18:33:26 -04:00 committed by GitHub
commit 33c33c9dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
29 changed files with 12 additions and 11 deletions

4
.gitignore vendored
View File

@ -1,6 +1,10 @@
target
Cargo.lock
#fuzz
fuzz/hfuzz_target
fuzz/hfuzz_workspace
#IntelliJ project files
.idea
*.iml

View File

@ -9,13 +9,6 @@ before_install:
- sudo apt-get -qq update
- sudo apt-get install -y binutils-dev libunwind8-dev
install:
- git clone https://github.com/bitcoin/secp256k1.git
- cd secp256k1
- ./autogen.sh && ./configure && make && sudo make install
- sudo ldconfig /usr/local/lib
- cd ..
script:
- cargo build --verbose
- cargo test --verbose

View File

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