mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-02 18:02:23 +00:00
16 lines
443 B
Bash
16 lines
443 B
Bash
#!/bin/bash
|
|
|
|
# https://stackoverflow.com/a/246128/3549270
|
|
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
|
|
cp -r "../../../crates/ruff/resources/test" .
|
|
cd -
|
|
cargo fuzz cmin -s none ruff_fix_validity
|
|
|
|
echo "Done! You are ready to fuzz."
|