B2G/Hacking: Difference between revisions

Jump to navigation Jump to search
283 bytes removed ,  15 August 2012
Line 218: Line 218:


== Reftests ==
== Reftests ==
Getting reftests running is still a WIP, but if you want to help out triaging or just want to run them on your own, follow these instructions. Reftests are currently only supported on the emulator.
Reftests are currently only supported on the emulator, though in theory they should run on other devices as well.


# Apply the latest patch from https://bugzilla.mozilla.org/show_bug.cgi?id=770490 to your gecko directory.
# Build the emulator with the changes: <pre>./config.sh emulator</pre><pre>./build.sh</pre>
# A few external packages are needed. First make sure you have pip (and preferably virtualenv), download http://people.mozilla.com/~ahalberstadt/runreftest-requirements.txt then run <pre>pip install -r runreftest-requirements.txt</pre>
# A few external packages are needed. First make sure you have pip (and preferably virtualenv), download http://people.mozilla.com/~ahalberstadt/runreftest-requirements.txt then run <pre>pip install -r runreftest-requirements.txt</pre>
# Either do: <pre>cd objdir-gecko/_tests/reftest</pre><pre>ln -s <path_to_gecko_dir> tests</pre><pre>python runreftestsb2g.py --b2gpath <path_to_b2g_repo> --adbpath <path_to_adb_binary> --xre-path <path_to_firefox_objdir>/dist/bin --emulator arm --emulator-res 800x1000 --remote-webserver 10.0.2.2 --ignore-windowsize <path_to_reftest_manifest></pre>
# Either do: <pre>cd objdir-gecko/_tests/reftest</pre><pre>ln -s <path_to_gecko_dir> tests</pre><pre>python runreftestsb2g.py --b2gpath <path_to_b2g_repo> --adbpath <path_to_adb_binary> --xre-path <path_to_firefox_objdir>/dist/bin --emulator arm --emulator-res 800x1000 --remote-webserver 10.0.2.2 --ignore-windowsize <path_to_reftest_manifest></pre>
Confirmed users
656

edits

Navigation menu