Debian Codegraph @

testing/web-platform/tests/tools/ci/ci_resources_unittest.sh

raw
1 #!/bin/bash
2 set -ex
3
4 SCRIPT_DIR=$(cd $(dirname "$0") && pwd -P)
5 WPT_ROOT=$SCRIPT_DIR/../..
6 cd $WPT_ROOT
7
8 main() {
9 cd $WPT_ROOT
10 pip install --user -U tox
11 ./wpt install firefox browser --destination $HOME
12 ./wpt install firefox webdriver --destination $HOME/firefox
13 export PATH=$HOME/firefox:$PATH
14
15 cd $WPT_ROOT/resources/test
16 tox -- --binary=$HOME/browsers/nightly/firefox/firefox
17 }
18
19 main