run all the fuzzer in the CI for XX seconds

This commit is contained in:
Sylvestre Ledru 2023-03-07 23:26:32 +01:00
parent ef0b177e18
commit 9dcd3192d2

View file

@ -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