Mobile/Fennec Reftests: Difference between revisions

Jump to navigation Jump to search
Line 1: Line 1:
==Getting the Tests==
==Getting the Tests==
An overview of what [[https://developer.mozilla.org/En/Mozilla_automated_testing#Reftest reftests]] are.
Edit your mozconfig to contain the following lines:


Get the source and build according to the Fennec [[Mobile/Build/Fennec|instructions]].
<pre>
ac_add_options --enable-tests
</pre>


The tests are included in the source tree (mozilla-central) inside reftest or crashtest directories.  The tests have a master include file ([[http://mxr.mozilla.org/mozilla-central/source/layout/reftests/reftest.list layout/reftests/reftest.list]], [[http://mxr.mozilla.org/mozilla-central/source/testing/crashtest/crashtests.list testing/crashtest/crashtests.list]]) which include all other tests throughout the source tree.
Get the source and build according to [[Mobile/Build/Fennec|instructions]].


Since we don't have the source tree on the mobile device, we need to extract all the related tests and .list files from the source tree and put them on the device.  This has to be done while preserving directories since relative paths are used.  We have developed a [[http://people.mozilla.com/~jmaher/fennec/reftest_extract.py python script]] which will create two tarballs (reftests_.tar, crashtests_.tar).  Make sure to edit the script before running to ensure the topsrc variable is set to the mozilla-central repository.
An overview of what [[https://developer.mozilla.org/En/Mozilla_automated_testing#Reftest reftests]] are.
 
The reftests also require the chrome component reftest.jar.  This is already included in the xulrunner/chrome directory when you install fennec on the mobile device, but we will need to copy it as outlined below.


==Porting tests to N800==
==Porting tests to N800==
Confirmed users
3,376

edits

Navigation menu