mirror of
https://github.com/uutils/coreutils
synced 2024-12-12 22:32:53 +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:
|
||||
matrix:
|
||||
test-target:
|
||||
[
|
||||
fuzz_date,
|
||||
fuzz_test,
|
||||
fuzz_expr,
|
||||
fuzz_parse_glob,
|
||||
fuzz_parse_size,
|
||||
fuzz_parse_time,
|
||||
# adding more fuzz tests here.
|
||||
# e.g. fuzz_test_a,
|
||||
]
|
||||
- { name: fuzz_test, should_pass: true }
|
||||
# https://github.com/uutils/coreutils/issues/5311
|
||||
- { name: fuzz_date, should_pass: false }
|
||||
- { name: fuzz_expr, should_pass: true }
|
||||
- { name: fuzz_parse_glob, should_pass: true }
|
||||
- { name: fuzz_parse_size, should_pass: true }
|
||||
- { name: fuzz_parse_time, should_pass: true }
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@nightly
|
||||
|
@ -59,16 +56,17 @@ jobs:
|
|||
- name: Restore Cached Corpus
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
key: corpus-cache-${{ matrix.test-target }}
|
||||
key: corpus-cache-${{ matrix.test-target.name }}
|
||||
path: |
|
||||
fuzz/corpus/${{ matrix.test-target }}
|
||||
- name: Run ${{ matrix.test-target }} for XX seconds
|
||||
fuzz/corpus/${{ matrix.test-target.name }}
|
||||
- name: Run ${{ matrix.test-target.name }} for XX seconds
|
||||
shell: bash
|
||||
continue-on-error: ${{ !matrix.test-target.name.should_pass }}
|
||||
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
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
key: corpus-cache-${{ matrix.test-target }}
|
||||
key: corpus-cache-${{ matrix.test-target.name }}
|
||||
path: |
|
||||
fuzz/corpus/${{ matrix.test-target }}
|
||||
fuzz/corpus/${{ matrix.test-target.name }}
|
||||
|
|
Loading…
Reference in a new issue