Confirmed users
3,376
edits
(New page: ==Getting the Tests== Edit your mozconfig to contain the following lines: <pre> ac_add_options --enable-tests ac_add_options --enable-mochitest </pre> Get the source and build according ...) |
No edit summary |
||
| Line 1: | Line 1: | ||
==Getting the Tests== | ==Getting the Tests== | ||
An overview of what [[https://developer.mozilla.org/En/Mozilla_automated_testing reftests]] are. | |||
The tests are included in the source tree (mozilla-central) inside reftest or crashtest directories. The tests have a master include file (layout/reftest/reftests.list, testing/crashtest/crashtests.list) which include all other tests throughout the source tree. | |||
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) if you edit it to point at your mozilla-central source directory. | |||
Get the source and build according to [[Mobile/Build/Fennec|instructions]]. | Get the source and build according to [[Mobile/Build/Fennec|instructions]]. | ||
| Line 32: | Line 31: | ||
python runtests.py --appname=<fennec executable> | python runtests.py --appname=<fennec executable> | ||
</pre> | </pre> | ||