mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
25 lines
913 B
Bash
Executable file
25 lines
913 B
Bash
Executable file
# 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 -e
|
|
|
|
wpt_root=$(dirname $0)
|
|
|
|
PYTHON=$(which python2 2> /dev/null || echo python)
|
|
VIRTUALENV=$(which virtualenv2 2> /dev/null || echo virtualenv)
|
|
|
|
test -d $wpt_root/_virtualenv || $VIRTUALENV $wpt_root/_virtualenv -p $PYTHON
|
|
test -d $wpt_root/metadata || mkdir -p $wpt_root/metadata
|
|
test -d $wpt_root/prefs || mkdir -p $wpt_root/prefs
|
|
source $wpt_root/_virtualenv/bin/activate
|
|
if [[ $* == *--update-manifest* ]]; then
|
|
(python -c "import html5lib" &>/dev/null) || pip install html5lib
|
|
fi
|
|
(python -c "import wptrunner" &>/dev/null) || pip install 'wptrunner==1.7'
|
|
|
|
python $wpt_root/run.py \
|
|
--config $wpt_root/config.ini \
|
|
--binary $wpt_root/../../components/servo/target/servo \
|
|
--log-mach - \
|
|
"$@"
|