|
@@ -1,5 +1,7 @@
|
|
|
#!/usr/bin/env bash
|
|
#!/usr/bin/env bash
|
|
|
# 15-minute fuzz for each required target. Exit 0 only if every target PASS.
|
|
# 15-minute fuzz for each required target. Exit 0 only if every target PASS.
|
|
|
|
|
+# -fuzz names are anchored; Go treats -fuzz as a regexp (FuzzAssemble also
|
|
|
|
|
+# matches FuzzAssembleProto).
|
|
|
set -euo pipefail
|
|
set -euo pipefail
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
cd "$ROOT"
|
|
cd "$ROOT"
|
|
@@ -17,12 +19,13 @@ run_one() {
|
|
|
fail=1
|
|
fail=1
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
-run_one fuzz-parser go test ./internal/protocol -fuzz=FuzzParser -fuzztime="${SEC}s"
|
|
|
|
|
-run_one fuzz-profile go test ./internal/profile -fuzz=FuzzLoadStrict -fuzztime="${SEC}s"
|
|
|
|
|
-run_one fuzz-config go test ./internal/config -fuzz=FuzzLoadYAML -fuzztime="${SEC}s"
|
|
|
|
|
-run_one fuzz-assemble go test ./internal/safety -fuzz=FuzzAssemble -fuzztime="${SEC}s"
|
|
|
|
|
-run_one fuzz-telemetry go test ./internal/telemetry -fuzz=FuzzResumeIDs -fuzztime="${SEC}s"
|
|
|
|
|
-run_one fuzz-capture go test ./internal/capture -fuzz=FuzzReadRecords -fuzztime="${SEC}s"
|
|
|
|
|
-run_one fuzz-replay go test ./internal/backend -fuzz=FuzzReplayOpen -fuzztime="${SEC}s"
|
|
|
|
|
|
|
+run_one fuzz-parser go test ./internal/protocol -fuzz='^FuzzParser$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-profile go test ./internal/profile -fuzz='^FuzzLoadStrict$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-config go test ./internal/config -fuzz='^FuzzLoadYAML$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-assemble go test ./internal/safety -fuzz='^FuzzAssemble$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-assemble-proto go test ./internal/safety -fuzz='^FuzzAssembleProto$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-telemetry go test ./internal/telemetry -fuzz='^FuzzResumeIDs$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-capture go test ./internal/capture -fuzz='^FuzzReadRecords$' -fuzztime="${SEC}s"
|
|
|
|
|
+run_one fuzz-replay go test ./internal/backend -fuzz='^FuzzReplayOpen$' -fuzztime="${SEC}s"
|
|
|
run_one fuzz-sdk-descriptor env HTH_FUZZ_SECONDS="${SEC}" python3.12 -m pytest -q sdk/python/tests/test_descriptor_fuzz.py
|
|
run_one fuzz-sdk-descriptor env HTH_FUZZ_SECONDS="${SEC}" python3.12 -m pytest -q sdk/python/tests/test_descriptor_fuzz.py
|
|
|
exit "${fail}"
|
|
exit "${fail}"
|