diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-07-09 22:15:05 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-07-09 22:15:05 +0200 |
| commit | 7b83a222ee52c579d127ec40701c57b5576ddf71 (patch) | |
| tree | decb8b1d7a2405f0ba7f11b61a20dada666683d3 /scripts | |
| parent | a012d260db4ad9a234a2ef29e8c0f7f6ef5f6a4e (diff) | |
| download | tools.nes-7b83a222ee52c579d127ec40701c57b5576ddf71.tar.gz tools.nes-7b83a222ee52c579d127ec40701c57b5576ddf71.zip | |
scripts: separate fuzzy testing into its own file
This way we can simply run fuzzy testing multiple times from the shell
without having to run the full tests too.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/full-test.sh | 10 | ||||
| -rwxr-xr-x | scripts/fuzz.sh | 12 |
2 files changed, 13 insertions, 9 deletions
diff --git a/scripts/full-test.sh b/scripts/full-test.sh index 742b1e3..906cc1f 100755 --- a/scripts/full-test.sh +++ b/scripts/full-test.sh @@ -9,12 +9,4 @@ cargo clippy --all-targets --all-features cargo test --all-targets --all-features -- --nocapture ./scripts/test-e2e.sh - -pushd lib/xixanta -cargo +nightly fuzz run fuzz_target_parser -- -max_total_time=180 -cargo +nightly fuzz run fuzz_target_assembler -- -max_total_time=180 -popd - -pushd lib/header -cargo +nightly fuzz run fuzz_target_header -- -max_total_time=180 -popd +./scripts/fuzz.sh diff --git a/scripts/fuzz.sh b/scripts/fuzz.sh new file mode 100755 index 0000000..59d52a2 --- /dev/null +++ b/scripts/fuzz.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +set -ex + +pushd lib/xixanta +cargo +nightly fuzz run fuzz_target_parser -- -max_total_time=180 +cargo +nightly fuzz run fuzz_target_assembler -- -max_total_time=180 +popd + +pushd lib/header +cargo +nightly fuzz run fuzz_target_header -- -max_total_time=180 +popd |
