mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Cached tp5 zip downloading and unzipping
This commit is contained in:
parent
d5e412b3f1
commit
d941c5b916
1 changed files with 14 additions and 3 deletions
|
@ -10,10 +10,21 @@ set -o pipefail
|
||||||
|
|
||||||
TP5N_SOURCE="https://people.mozilla.org/~jmaher/taloszips/zips/tp5n.zip"
|
TP5N_SOURCE="https://people.mozilla.org/~jmaher/taloszips/zips/tp5n.zip"
|
||||||
TP5N_PATH="page_load_test/tp5n.zip"
|
TP5N_PATH="page_load_test/tp5n.zip"
|
||||||
if [[ ! -f "${TP5N_PATH}" ]]; then
|
|
||||||
wget "${TP5N_SOURCE}" -O "${TP5N_PATH}"
|
if [[ ! -f "$(dirname "${TP5N_PATH}")/tp5n/tp5n.manifest" ]]; then
|
||||||
|
if [[ ! -f "${TP5N_PATH}" ]]; then
|
||||||
|
echo "Downloading the test cases..."
|
||||||
|
wget "${TP5N_SOURCE}" -O "${TP5N_PATH}"
|
||||||
|
echo "done"
|
||||||
|
else
|
||||||
|
echo "Found existing test cases, skipping download."
|
||||||
|
fi
|
||||||
|
echo -n "Unzipping the test cases..."
|
||||||
|
unzip -q -o "${TP5N_PATH}" -d "$(dirname "${TP5N_PATH}")"
|
||||||
|
echo "done"
|
||||||
|
else
|
||||||
|
echo "Found existing test cases, skipping download and unzip."
|
||||||
fi
|
fi
|
||||||
unzip -o "${TP5N_PATH}" -d "$(dirname "${TP5N_PATH}")"
|
|
||||||
|
|
||||||
virtualenv venv --python="$(which python3)"
|
virtualenv venv --python="$(which python3)"
|
||||||
PS1="" source venv/bin/activate
|
PS1="" source venv/bin/activate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue