mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(db): derive Compact codec (#177)
This commit is contained in:
16
.github/scripts/fuzz.sh
vendored
Executable file
16
.github/scripts/fuzz.sh
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Runs fuzz tests using `cargo test-fuzz`. These should only be run after a `cargo test` has been executed once: https://github.com/trailofbits/test-fuzz#usage
|
||||
|
||||
PACKAGE=$1
|
||||
TEST_TIME=${2:-5}
|
||||
|
||||
# Gets the list of tests present in the package.
|
||||
TESTS=$(cargo test-fuzz --list -p $PACKAGE | head -n -3 | tail -n+9 | cat - <(echo \"--list\"]) | cat - | jq -r ".[]")
|
||||
|
||||
for test in $TESTS
|
||||
do
|
||||
set -x
|
||||
cargo test-fuzz --no-ui -p "$PACKAGE" $test -- -V $TEST_TIME
|
||||
set +x
|
||||
done;
|
||||
Reference in New Issue
Block a user