Confirmed users
3,376
edits
| Line 173: | Line 173: | ||
There as some [[Mobile/Fennec_Unittests/Remote_Testing/Examples|examples]] of running remote tests. | There as some [[Mobile/Fennec_Unittests/Remote_Testing/Examples|examples]] of running remote tests. | ||
=== from a build environment === | |||
This requires a host build to run xpcshell + httpd.js as a webserver (for all but talos). What I normally do is install a build of Fennec on my Android board, then from a desktop build environment (note these have to be the same version so the extensions installed from the desktop build will run on the device), I do this: | |||
*mochitest | |||
<pre> | |||
cd $(objdir)/_tests/testing/mochitest | |||
python runtestsremote.py --deviceIP=<your.device.ip.addr> --xre-path=../../../dist/bin --app=org.mozilla.fennec --test-path=gfx | |||
# add a '--dm_trans=adb' if you are connected to your device locally and don't have a SUT agent installed | |||
</pre> | |||
*reftest | |||
<pre> | |||
cd $(objdir)/_tests/testing/reftest | |||
python remotereftest.py --deviceIP=<your.device.ip.addr> --xre-path=../../../dist/bin --app=org.mozilla.fennec tests/layout/reftest/reftest-sanity/reftest.list | |||
# add a '--dm_trans=adb' if you are connected to your device locally and don't have a SUT agent installed | |||
</pre> | |||
*talos | |||
<pre> | |||
hg clone http://hg.mozilla.org/build/talos | |||
#configure apache to point the web root at the talos directory (http://localhost/getInfo.html should resolve) | |||
cd talos | |||
python remotePerfConfigurator.py -e org.mozilla.fennec --remoteDevice <your.device.ip.addr> --webServer <your.apache.ip.addr> --resultsServer ' ' --resultsLink ' ' --activeTests tpan --output tpan.yml | |||
python run_tests.py -d -n tpan.yml | |||
# NOTE: we don't have --dm_trans=adb support in talos yet | |||
</pre> | |||