srctree

Robin Linden parent 5787805b 92c67878
ci: Run all fuzz tests

The time they run for is still pretty low, but we can tweak that later.
.github/workflows/ci.yaml added: 19, removed: 5, total 14
@@ -106,11 +106,10 @@ jobs:
run: |
echo "<html><body><h1>Example</h1><p>This is an example page.</p></body></html>" >example.html
bazel run browser:tui file://$(pwd)/example.html ${{ matrix.bazel }}
# TODO(robinlinden): Run all fuzz tests for "some time" in CI.
- name: Fuzz test sanity check
- name: Fuzz test
if: ${{ matrix.fuzz }}
run: |
bazel run wasm:leb128_fuzz_test_run \
./bzl/run_fuzz_tests ... \
${{ matrix.bazel }} \
-- --timeout_secs=10
 
 
filename was Deleted added: 19, removed: 5, total 14
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
 
# Run all fuzz tests under a given pattern.
#
# Example usage:
# ./bzl/run_fuzz_tests wasm/... --config libfuzzer -c dbg -- --timeout_secs=3
 
set -euo pipefail
 
TARGETS=$(bazel query "filter(.*_fuzz_test_run$, $1)")
shift
 
for tgt in ${TARGETS}; do
bazel run "$tgt" "$@"
done