Mobile/Fennec/Android: Difference between revisions

Line 449: Line 449:
* The test root directory cannot be on /sdcard -- it must be /data/local so that +x permissions can be set on xpcshell.
* The test root directory cannot be on /sdcard -- it must be /data/local so that +x permissions can be set on xpcshell.
* Setup can take a long time! It goes much faster if unzip is available on the remote device; if your device does not have unzip, try installing busybox.
* Setup can take a long time! It goes much faster if unzip is available on the remote device; if your device does not have unzip, try installing busybox.
=== "cpp" Unit Tests ===
* Coming soon: see bug 811411
To run a single compiled code test:
  cd <objdir-droid>
  export TEST_PATH=<test>
  make cppunittests-remote
For example, TEST_PATH=TestTimers.
Advanced features:
As with xpcshell tests, you can skip setup if needed:
  export EXTRA_TEST_ARGS="--noSetup"
This will avoid copying any files to the device -- be sure that all necessary files are on the device before using this!
You can change the environment variables seen by the unit test:
  export EXTRA_TEST_ARGS="--addEnv MYVAR=value"
  export EXTRA_TEST_ARGS="--addEnv MYVAR1=value1 --addEnv MYVAR2=value2"
  export EXTRA_TEST_ARGS="--addEnv HOME="
Notes:
* Either adb or sut device manager may be used


=== browser-chrome ===
=== browser-chrome ===
Confirmed users
1,759

edits