Skip to content

Commit

Permalink
Use cpython with fuzzer corpus (#5183)
Browse files Browse the repository at this point in the history
Following #5055, add cpython as a member of the fuzzer corpus
unconditionally.
  • Loading branch information
addisoncrump committed Jun 20, 2023
1 parent e520a3a commit 2c0ec97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions fuzz/init-fuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if [ ! -d corpus/ruff_fix_validity ]; then
if [[ $REPLY =~ ^[Yy]$ ]]; then
curl -L 'https://zenodo.org/record/3628784/files/python-corpus.tar.gz?download=1' | tar xz
fi
curl -L 'https://github.com/python/cpython/archive/refs/tags/v3.12.0b2.tar.gz' | tar xz
cp -r "../../../crates/ruff/resources/test" .
cd -
cargo fuzz cmin -s none ruff_fix_validity
Expand Down
4 changes: 1 addition & 3 deletions fuzz/reinit-fuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"

cd corpus/ruff_fix_validity
if [[ $REPLY =~ ^[Yy]$ ]]; then
curl -L 'https://zenodo.org/record/3628784/files/python-corpus.tar.gz?download=1' | tar xz
fi
curl -L 'https://github.com/python/cpython/archive/refs/tags/v3.12.0b2.tar.gz' | tar xz
cp -r "../../../crates/ruff/resources/test" .
cd -
cargo fuzz cmin -s none ruff_fix_validity
Expand Down

0 comments on commit 2c0ec97

Please sign in to comment.