mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-16 01:25:11 +00:00

<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary - Adds timeouts to fuzzer cmin stages in the case of an infinite loop - Adds executable flag to reinit-fuzzer.sh because it was annoying me ## Test Plan Not needed.
14 lines
424 B
Bash
Executable file
14 lines
424 B
Bash
Executable file
#!/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
|
|
curl -L 'https://github.com/python/cpython/archive/refs/tags/v3.12.0b2.tar.gz' | tar xz
|
|
cp -r "../../../crates/ruff_linter/resources/test" .
|
|
cd -
|
|
cargo fuzz cmin -s none ruff_fix_validity -- -timeout=5
|
|
|
|
echo "Done! You are ready to fuzz."
|