mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
fuzzing: add a variable to state if we know it fails or not
This commit is contained in:
parent
58087df02a
commit
90b61a8c5c
1 changed files with 14 additions and 16 deletions
30
.github/workflows/fuzzing.yml
vendored
30
.github/workflows/fuzzing.yml
vendored
|
@ -37,16 +37,13 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
test-target:
|
test-target:
|
||||||
[
|
- { name: fuzz_test, should_pass: true }
|
||||||
fuzz_date,
|
# https://github.com/uutils/coreutils/issues/5311
|
||||||
fuzz_test,
|
- { name: fuzz_date, should_pass: false }
|
||||||
fuzz_expr,
|
- { name: fuzz_expr, should_pass: true }
|
||||||
fuzz_parse_glob,
|
- { name: fuzz_parse_glob, should_pass: true }
|
||||||
fuzz_parse_size,
|
- { name: fuzz_parse_size, should_pass: true }
|
||||||
fuzz_parse_time,
|
- { name: fuzz_parse_time, should_pass: true }
|
||||||
# adding more fuzz tests here.
|
|
||||||
# e.g. fuzz_test_a,
|
|
||||||
]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
|
@ -59,16 +56,17 @@ jobs:
|
||||||
- name: Restore Cached Corpus
|
- name: Restore Cached Corpus
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
key: corpus-cache-${{ matrix.test-target }}
|
key: corpus-cache-${{ matrix.test-target.name }}
|
||||||
path: |
|
path: |
|
||||||
fuzz/corpus/${{ matrix.test-target }}
|
fuzz/corpus/${{ matrix.test-target.name }}
|
||||||
- name: Run ${{ matrix.test-target }} for XX seconds
|
- name: Run ${{ matrix.test-target.name }} for XX seconds
|
||||||
shell: bash
|
shell: bash
|
||||||
|
continue-on-error: ${{ !matrix.test-target.name.should_pass }}
|
||||||
run: |
|
run: |
|
||||||
cargo +nightly fuzz run ${{ matrix.test-target }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
|
cargo +nightly fuzz run ${{ matrix.test-target.name }} -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
|
||||||
- name: Save Corpus Cache
|
- name: Save Corpus Cache
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
key: corpus-cache-${{ matrix.test-target }}
|
key: corpus-cache-${{ matrix.test-target.name }}
|
||||||
path: |
|
path: |
|
||||||
fuzz/corpus/${{ matrix.test-target }}
|
fuzz/corpus/${{ matrix.test-target.name }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue