mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 14:52:41 +00:00
run all the fuzzer in the CI for XX seconds
This commit is contained in:
parent
ef0b177e18
commit
9dcd3192d2
1 changed files with 29 additions and 3 deletions
32
.github/workflows/CICD.yml
vendored
32
.github/workflows/CICD.yml
vendored
|
@ -139,6 +139,8 @@ jobs:
|
|||
fuzz:
|
||||
name: Run the Fuzzer
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUN_FOR: 60
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
@ -148,12 +150,36 @@ jobs:
|
|||
rustup default nightly
|
||||
- name: Install `cargo-fuzz`
|
||||
run: cargo install cargo-fuzz
|
||||
- name: Run the fuzzer on date for 60 seconds
|
||||
- name: Run fuzz_date for XX seconds
|
||||
# TODO: fix the issues
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
run: |
|
||||
## Run it
|
||||
cd src/uu/date
|
||||
cargo +nightly fuzz run fuzz_target_1 -- -max_total_time=60 -detect_leaks=0
|
||||
cd fuzz
|
||||
cargo +nightly fuzz run fuzz_date -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
|
||||
- name: Run fuzz_parse_glob for XX seconds
|
||||
# TODO: fix the issues
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
run: |
|
||||
## Run it
|
||||
cd fuzz
|
||||
cargo +nightly fuzz run fuzz_parse_glob -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
|
||||
- name: Run fuzz_parse_size for XX seconds
|
||||
shell: bash
|
||||
run: |
|
||||
## Run it
|
||||
cd fuzz
|
||||
cargo +nightly fuzz run fuzz_parse_size -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
|
||||
- name: Run fuzz_parse_time for XX seconds
|
||||
# TODO: fix the issues
|
||||
continue-on-error: true
|
||||
shell: bash
|
||||
run: |
|
||||
## Run it
|
||||
cd fuzz
|
||||
cargo +nightly fuzz run fuzz_parse_time -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
|
||||
|
||||
style_lint:
|
||||
name: Style/lint
|
||||
|
|
Loading…
Reference in a new issue