mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Added --local option to test_all.sh.
This commit is contained in:
parent
2857dbabbe
commit
f81e32e334
1 changed files with 25 additions and 12 deletions
|
@ -8,19 +8,29 @@ set -o errexit
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
case "${1}" in
|
while (( "$#" ))
|
||||||
|
do
|
||||||
|
case "$1" in
|
||||||
--servo)
|
--servo)
|
||||||
engine="--engine servo"
|
engine="--engine servo"
|
||||||
;;
|
;;
|
||||||
--gecko)
|
--gecko)
|
||||||
engine="--engine gecko"
|
engine="--engine gecko"
|
||||||
;;
|
;;
|
||||||
|
--local)
|
||||||
|
local=1
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
# This branch should never be reached with set -o nounset
|
echo "Unknown option $1."
|
||||||
echo "You didn't specify the engine to run."
|
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -z "${engine:-}" ];
|
||||||
|
then echo "You didn't specify the engine to run: either --servo or --gecko."; exit;
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Starting the local server"
|
echo "Starting the local server"
|
||||||
python3 -m http.server > /dev/null 2>&1 &
|
python3 -m http.server > /dev/null 2>&1 &
|
||||||
|
@ -33,15 +43,18 @@ MANIFEST="page_load_test/tp5n/20160509.manifest" # A manifest that excludes
|
||||||
PERF_FILE="output/perf-$(date --iso-8601=seconds).json"
|
PERF_FILE="output/perf-$(date --iso-8601=seconds).json"
|
||||||
|
|
||||||
echo "Running tests"
|
echo "Running tests"
|
||||||
python3 runner.py "${engine}" --runs 3 "${MANIFEST}" "${PERF_FILE}"
|
python3 runner.py ${engine} --runs 3 "${MANIFEST}" "${PERF_FILE}"
|
||||||
|
|
||||||
|
if [ -z "${local:-}" ];
|
||||||
|
then
|
||||||
echo "Submitting to Perfherder"
|
echo "Submitting to Perfherder"
|
||||||
# Perfherder SSL check will fail if time is not accurate,
|
# Perfherder SSL check will fail if time is not accurate,
|
||||||
# sync time before you submit
|
# sync time before you submit
|
||||||
# TODO: we are using Servo's revision hash for Gecko's result to make both
|
# TODO: we are using Servo's revision hash for Gecko's result to make both
|
||||||
# results appear on the same date. Use the correct result when Perfherder
|
# results appear on the same date. Use the correct result when Perfherder
|
||||||
# allows us to change the date.
|
# allows us to change the date.
|
||||||
python3 submit_to_perfherder.py "${engine}" "${PERF_FILE}" servo/revision.json
|
python3 submit_to_perfherder.py "${output:-}" "${engine}" "${PERF_FILE}" servo/revision.json
|
||||||
|
fi
|
||||||
|
|
||||||
# Kill the http server
|
echo "Stopping the local server"
|
||||||
trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT
|
trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue