mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
24
tests/wpt/run.sh
Executable file
24
tests/wpt/run.sh
Executable file
|
@ -0,0 +1,24 @@
|
|||
# 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
|
||||
|
||||
servo_root=$(pwd)
|
||||
|
||||
PYTHON=$(which python2.7 2> /dev/null || echo python)
|
||||
|
||||
test -d _virtualenv || virtualenv _virtualenv -p $PYTHON
|
||||
test -d $servo_root/tests/wpt/metadata || mkdir -p $servo_root/tests/wpt/metadata
|
||||
test -d $servo_root/tests/wpt/prefs || mkdir -p $servo_root/tests/wpt/prefs
|
||||
source _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.0'
|
||||
|
||||
python $servo_root/tests/wpt/run.py \
|
||||
--config $servo_root/tests/wpt/config.ini \
|
||||
--binary target/servo \
|
||||
--log-mach - \
|
||||
"$@"
|
Loading…
Add table
Add a link
Reference in a new issue