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;
|
||||
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -34,6 +34,13 @@ jobs:
|
||||
command: nextest
|
||||
args: run --locked --workspace --all-features
|
||||
|
||||
- name: Run fuzz tests
|
||||
run: |
|
||||
./.github/scripts/fuzz.sh reth-primitives
|
||||
./.github/scripts/fuzz.sh reth-db
|
||||
./.github/scripts/fuzz.sh reth-interfaces
|
||||
./.github/scripts/fuzz.sh reth-codecs
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user