Changes to tests build system integration (mostly xpcshell for now)

Gregory Szorc gps at mozilla.com
Tue Sep 24 19:23:34 UTC 2013


Just landed in inbound and bound to stick sooner or later are some 
changes to how tests are integrated with the build system.

* The per-directory xpcshell make targets have been removed. Use mach 
(preferred) or TEST_PATH=... make xpcshell-tests top-level make target.

* xpcshell.ini files are now required to annotate their "support" files 
so the build system knows what needs to be installed. i.e. files added 
to xpcshell test directories are no longer automatically packaged by 
default.

* Support for test manifests for all the flavors of mochitests have been 
added to moz.build files. This means we should not be defining 
mochitests in Makefile.in any more. Instead, create {browser-chrome.ini, 
mochitest.ini, chrome.ini, a11y.ini} files (like xpcshell.ini files) and 
reference said files in moz.build files via A11Y_MANIFESTS, 
BROWSER_CHROME_MANIFESTS, MOCHITEST_MANIFESTS, and 
MOCHITEST_CHROME_MANIFESTS. Bug 920185 has been filed to track this 
effort. **Moving files over and reducing the total number of Makefile.in 
and moz.build files will make the tree build faster.**

* Test manifests now support some additional features. Run |mach 
build-docs| or see 
http://build-docs.paas.allizom.org/test_manifests.html for the canonical 
documentation.



More information about the firefox-dev mailing list