run the oss fuzz initial seed corpus in CI (#378)

This makes sure the seed corpus keeps being healthy.
This commit is contained in:
Paul Dreik 2019-11-23 22:49:41 +01:00 committed by GitHub
parent 3658ff650d
commit c5504ef50b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 4 deletions

View File

@ -18,15 +18,16 @@ jobs:
steps:
- name: Install packages necessary for building
run: |
sudo apt-get install --quiet ninja-build valgrind
sudo apt-get install --quiet ninja-build valgrind zip unzip
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 8
- uses: actions/checkout@v1
# with:
# remove this once integrated
# ref: paul/fuzz_experiment
- name: Create and prepare the initial seed corpus
run: |
fuzz/build_corpus.sh
mv corpus.zip seed_corpus.zip
- name: Download the corpus from the last run
run: |
wget --quiet https://dl.bintray.com/pauldreik/simdjson-fuzz-corpus/corpus/corpus.tar
@ -39,6 +40,15 @@ jobs:
clang++ --version
- name: Build all the variants
run: fuzz/build_fuzzer_variants.sh
- name: Verify that the oss-fuzz seed corpus passes without problems
run: |
mkdir seedcorpus
unzip -d seedcorpus seed_corpus.zip
for buildvariant in noavx withavx; do
for fuzzer in $allfuzzers; do
build-ossfuzz-$buildvariant/fuzz/fuzz_$fuzzer seedcorpus -max_total_time=1
done
done
- name: Run the fastest fuzzer to explore fast
run: |
for fuzzer in $allfuzzers; do