Skip to content

Commit

Permalink
change base corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Jun 5, 2023
1 parent 145bc37 commit a21aedd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fuzz/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
artifacts/
corpus/ruff_parse_simple
corpus/ruff_fix_validity
1 change: 0 additions & 1 deletion fuzz/corpus/ruff_fix_validity

This file was deleted.

1 change: 1 addition & 0 deletions fuzz/corpus/ruff_parse_simple
6 changes: 3 additions & 3 deletions fuzz/init-fuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ if ! cargo fuzz --help >&/dev/null; then
cargo install --git https://github.com/rust-fuzz/cargo-fuzz.git
fi

if [ ! -d corpus/ruff_parse_simple ]; then
mkdir -p corpus/ruff_parse_simple
if [ ! -d corpus/ruff_fix_validity ]; then
mkdir -p corpus/ruff_fix_validity
read -p "Would you like to build a corpus from a python source code dataset? (this will take a long time!) [Y/n] " -n 1 -r
echo
cd corpus/ruff_parse_simple
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
Expand Down
2 changes: 1 addition & 1 deletion fuzz/reinit-fuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

cd "$SCRIPT_DIR"

cd corpus/ruff_parse_simple
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
Expand Down

0 comments on commit a21aedd

Please sign in to comment.