mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
uufuzz: add examples and them in the CI
This commit is contained in:
parent
fb6afecf4c
commit
76755009da
6 changed files with 667 additions and 0 deletions
34
.github/workflows/fuzzing.yml
vendored
34
.github/workflows/fuzzing.yml
vendored
|
|
@ -17,6 +17,40 @@ concurrency:
|
|||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
uufuzz-examples:
|
||||
name: Build and test uufuzz examples
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: "uufuzz-cache-key"
|
||||
cache-directories: "fuzz/target"
|
||||
- name: Build uufuzz library
|
||||
run: |
|
||||
cd fuzz/uufuzz
|
||||
cargo build --release
|
||||
- name: Run uufuzz tests
|
||||
run: |
|
||||
cd fuzz/uufuzz
|
||||
cargo test --lib
|
||||
- name: Build and run uufuzz examples
|
||||
run: |
|
||||
cd fuzz/uufuzz
|
||||
echo "Building all examples..."
|
||||
cargo build --examples --release
|
||||
|
||||
# Run all examples except integration_testing (which has FD issues in CI)
|
||||
for example in examples/*.rs; do
|
||||
example_name=$(basename "$example" .rs)
|
||||
if [ "$example_name" != "integration_testing" ]; then
|
||||
cargo run --example "$example_name" --release
|
||||
fi
|
||||
done
|
||||
|
||||
fuzz-build:
|
||||
name: Build the fuzzers
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue