Skip to content

Commit

Permalink
Fix script to complain when neither build nor fuzzer name is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed Jan 25, 2024
1 parent ec2541b commit 4445f93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/fuzz.bash
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ while [[ $# -gt 0 ]]; do
esac
done

if [[ "$run_build" == "false" && -z "$test_group" ]]; then
echo you must specify either --build flag or fuzzer-name
printusage
fi

if $run_build; then
for build_group in system_tests arbstate; do
go test -c ${nitropath}/${build_group} -fuzz Fuzz -o "$binpath"/${build_group}.fuzz
Expand Down

0 comments on commit 4445f93

Please sign in to comment.