mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Create ./mach test-perf command
in testing_commands.py, I linked the new command to test_perf.sh in test_perf.sh, it would prepare tp5n.zip and virtual environment then run test_all.sh
This commit is contained in:
parent
0dd005eacc
commit
fd204e0365
5 changed files with 43 additions and 5 deletions
26
etc/ci/performance/test_perf.sh
Executable file
26
etc/ci/performance/test_perf.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
TP5N_SOURCE="https://people.mozilla.org/~jmaher/taloszips/zips/tp5n.zip"
|
||||
TP5N_PATH="page_load_test/tp5n.zip"
|
||||
if [[ ! -f "${TP5N_PATH}" ]]; then
|
||||
wget "${TP5N_SOURCE}" -O "${TP5N_PATH}"
|
||||
fi
|
||||
unzip -o "${TP5N_PATH}" -d "$(dirname "${TP5N_PATH}")"
|
||||
|
||||
virtualenv venv --python="$(which python3)"
|
||||
PS1="" source venv/bin/activate
|
||||
# `PS1` must be defined before activating virtualenv
|
||||
pip install "treeherder-client>=3.0.0"
|
||||
|
||||
mkdir -p servo
|
||||
mkdir -p output
|
||||
./git_log_to_json.sh > servo/revision.json && \
|
||||
./test_all.sh --servo
|
Loading…
Add table
Add a link
Reference in a new issue