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:
commit
33c33c9dde
|
@ -1,6 +1,10 @@
|
|||
target
|
||||
Cargo.lock
|
||||
|
||||
#fuzz
|
||||
fuzz/hfuzz_target
|
||||
fuzz/hfuzz_workspace
|
||||
|
||||
#IntelliJ project files
|
||||
.idea
|
||||
*.iml
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
#!/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 [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
|
||||
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
|
||||
cat $CASE | xxd -p
|
||||
|
|
Loading…
Reference in New Issue