andreasgal/gaia — pull request #1153 by malini (2012-04-05 15:11:34+00:00)
Title: add 'make marionette' command

This command is similar to the 'make test' command in b2g.

By default, it will assume you are already running a b2g instance with marionette. It will check if you have python 2.7, create a virtualenv with all the right packages, and run all the tests in gaia's tests/ directory. You will need to set the MC_DIR environment variable to point to your mozilla-central directory. This is so the make command can find the marionette client package, which is now in m-c.

If python 2.7 is not the default python on your system, you can set the PYTHON_27 variable to point to some python2.7 bin on your system, and we'll take care of the rest.

If you want to run tests other than those in gaia/tests, you can set TEST_DIRS to be any test ini, file or directory, and those will be run instead.

If you'd like the command to launch an instance of b2g on your behalf, you can set the path to the b2g executable in the B2G_BIN variable. We will then launch that executable before running the tests.

You can also change the host and port with MARIONETTE_HOST and MARIONETTE_PORT variables.