mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +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:
|
fuzz:
|
||||||
name: Run the Fuzzer
|
name: Run the Fuzzer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
RUN_FOR: 60
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
@ -148,12 +150,36 @@ jobs:
|
||||||
rustup default nightly
|
rustup default nightly
|
||||||
- name: Install `cargo-fuzz`
|
- name: Install `cargo-fuzz`
|
||||||
run: cargo 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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
## Run it
|
## Run it
|
||||||
cd src/uu/date
|
cd fuzz
|
||||||
cargo +nightly fuzz run fuzz_target_1 -- -max_total_time=60 -detect_leaks=0
|
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:
|
style_lint:
|
||||||
name: Style/lint
|
name: Style/lint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue