PHP-Parser/test_old/run-php-src.sh
Nikita Popov 84813dc1e4 Avoid repeatedly downloading archive in run-php-src.sh
When doing local testing, chances are that the archive is already
present.
2022-07-23 22:17:33 +02:00

9 lines
328 B
Bash
Executable File

VERSION=$1
if [[ ! -f php-$VERSION.tar.gz ]]; then
wget -q https://github.com/php/php-src/archive/php-$VERSION.tar.gz
fi
rm -rf ./data/php-src
mkdir -p ./data/php-src
tar -xzf ./php-$VERSION.tar.gz -C ./data/php-src --strip-components=1
php test_old/run.php --verbose --no-progress --php-version=$VERSION PHP ./data/php-src