Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add fuzzer tests #143

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@ stages:
parameters:
codecov_token: $(CODECOV_TOKEN_SECRET)
single_threaded: true
- stage: fuzz
displayName: fuzzing tests
dependsOn: test
jobs:
- job: fuzz
displayName: cargo +nightly fuzz
pool:
vmImage: ubuntu-16.04
steps:
- template: azure/install-rust.yml@templates
parameters:
rust: nightly
- checkout: self
submodules: recursive
- script: cargo install cargo-fuzz
displayName: Install cargo fuzz
- script: cargo fuzz run perf -- -max_total_time=30
displayName: Fuzz perf collapser
- script: cargo fuzz run dtrace -- -max_total_time=30
displayName: Fuzz DTrace collapser
- script: cargo fuzz run sample -- -max_total_time=30
displayName: Fuzz sample collapser
- script: cargo fuzz run guess -- -max_total_time=30
displayName: Fuzz guessing collapser
- publish: $(System.DefaultWorkingDirectory)/fuzz/artifacts/
condition: failed()
artifact: fuzz

resources:
repositories:
Expand Down
4 changes: 4 additions & 0 deletions fuzz/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

target
corpus
artifacts
Loading