2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 # You can obtain one at http://mozilla.org/MPL/2.0/.
10 echo "No python found"
14 if [ -z "${MARIONETTE_HOME}" ]
16 echo "No MARIONETTE_HOME found"
20 if [ -z "${XPCSHELLTEST_HOME}" ]
22 echo "No XPCSHELLTEST_HOME found"
26 echo "Detected Marionette home in $MARIONETTE_HOME"
28 # If a GECKO_OBJDIR environemnt variable exists, we will create the Python
29 # virtual envirnoment there. Otherwise we create it in the PWD.
30 VENV_DIR
="marionette_venv"
31 if [ -z $GECKO_OBJDIR ]
33 VENV_DIR
="$MARIONETTE_HOME/$VENV_DIR"
35 VENV_DIR
="$GECKO_OBJDIR/$VENV_DIR"
38 # Check if environment exists, if not, create a virtualenv:
41 echo "Using virtual environment in $VENV_DIR"
45 echo "Creating a virtual environment in $VENV_DIR"
46 curl https
://raw.github.com
/pypa
/virtualenv
/develop
/virtualenv.py |
${PYTHON} - $VENV_DIR
50 git clone git
://github.com
/mozilla
/mozbase.git
52 python setup_development.py
55 # update the marionette_client
57 python setup.py develop
61 # pop off the python parameter
63 python runtestsb2g.py $@