gecko-dev/config/tests
Gregory Szorc 6d01f694ab Bug 1132771 - Support and test for reading without a config object; r=glandium
We want the ability to read data from any moz.build file without needing
a full build configuration (running configure). This will enable tools
to consume metadata by merely having a copy of the source code and
nothing more.

This commit creates the EmptyConfig object. It is a config object that -
as its name implies - is empty. It will be used for reading moz.build
files in "no config" mode.

Many moz.build files make assumptions that variables in CONFIG are
defined and that they are strings. We create the EmptyValue type that
behaves like an empty unicode string. Since moz.build files also do some
type checking, we carve an exemption for EmptyValue, just like we do for
None.

We add a test to verify that reading moz.build files in "no config" mode
works. This required some minor changes to existing moz.build files to
make them work in the new execution mode.

--HG--
extra : rebase_source : f701417f83dfa4e196e39182f8d0a6fea46c6fbb
extra : source : af07351bf2d6e85293ae3edf0fe4ae6cbc0ce246
2015-02-26 10:21:52 -08:00
..
makefiles/autodeps Bug 1099430, mozilla-central parts: Eliminate the duplication of the build system in comm-central, r=glandium. 2014-11-29 19:45:31 -06:00
ref-simple bug 361583, add testcases for jar.mn, r=ted.mielczarek 2008-06-13 16:41:43 +02:00
src-simple Bug 774572 - Part 2: Define JAR_MANIFESTS in moz.build files; r=glandium 2013-12-10 16:18:11 +09:00
chrome.manifest.flat Bug 533592, part 1 - Remove uses of and support for xpcnativewrappers=no/yes in manifests. (The default has been yes for some time and we will now only have that behavior.) r=mrbkap. 2010-05-27 12:33:54 -07:00
test.manifest.flat Bug 533592, part 1 - Remove uses of and support for xpcnativewrappers=no/yes in manifests. (The default has been yes for some time and we will now only have that behavior.) r=mrbkap. 2010-05-27 12:33:54 -07:00
test.manifest.jar Bug 533592, part 1 - Remove uses of and support for xpcnativewrappers=no/yes in manifests. (The default has been yes for some time and we will now only have that behavior.) r=mrbkap. 2010-05-27 12:33:54 -07:00
test.manifest.symlink Bug 533592, part 1 - Remove uses of and support for xpcnativewrappers=no/yes in manifests. (The default has been yes for some time and we will now only have that behavior.) r=mrbkap. 2010-05-27 12:33:54 -07:00
test_mozbuild_reading.py Bug 1132771 - Support and test for reading without a config object; r=glandium 2015-02-26 10:21:52 -08:00
unit-expandlibs.py Bug 1077151 - Always use expandlibs descriptors when they exist. r=mshal 2014-10-04 10:33:00 +09:00
unit-mozunit.py Bug 937803 - os.path.exists should work with MockedOpen; r=glandium 2013-11-12 12:30:34 -08:00
unit-nsinstall.py Bug 812179 - Removed hacks for Python < 2.6 from config/ [r=ted] 2013-02-27 22:30:56 +05:30
unit-printprereleasesuffix.py Bug 776035 - Make mozunit even easier to use, and use it in config/tests python unit tests. r=ted 2012-07-25 07:44:08 +02:00
unitMozZipFile.py Bug 812179 - Removed hacks for Python < 2.6 from config/ [r=ted] 2013-02-27 22:30:56 +05:30