Commit Graph

1089 Commits

Author SHA1 Message Date
Mike Hommey
7d7da0696a Bug 1080375 - STATIC_LIBRARY_NAME doesn't need an explicit FORCE_STATIC_LIB. r=mshal 2014-10-10 17:09:10 +09:00
Nicholas Nethercote
d7c38b7c9d Bug 1079657 (follow-up) - Remove --mode=stress option from |mach run|. r=me.
DONTBUILD because this is NPOTB.

--HG--
extra : rebase_source : f2295ccffe59b0af6627169e96f98a8a755570e8
2014-10-08 18:20:07 -07:00
Mike Hommey
ae5ccc4eb3 Bug 1071568 - Only pass down templates to the sandbox context when calling moz.build templates. r=mshal
It's not entirely clear passing down all the metadata makes sense. On the
other hand, when creating the template execution sandbox, passing down
exports does assign the value for the exported variable in that execution
context. When that context is merged with the caller sandbox context, the
exported variable is reassigned, even if the value is not modified. Then,
if the caller sandbox itself reassigns the exported variable, it fails
because calling a template already did it once, unexpectedly.

Not passing down exported variables makes the template execution sandbox
never set those exported variables, so that they are not merged back. The
caller sandbox can then properly reassign the exported variable.
2014-10-09 10:14:26 +09:00
Nicholas Nethercote
0aa94ebfad Bug 1074656 - Merge |mach debug| and |mach dmd| into |mach run|. r=gps.
--HG--
extra : rebase_source : a9da86cadae7fdbb0fe9e3931fb1163f4239527c
2014-10-08 15:12:02 -07:00
Nicholas Nethercote
dc4d4c7634 Bug 1077272 - Allow argument groups in mach commands. r=gps.
--HG--
extra : rebase_source : 478b305eedac6d30af748d80da408042aba48c14
2014-10-08 15:11:50 -07:00
Eric Rahm
84d5f007cc Bug 806819 - Part 1: Remove FORCE_PR_LOG unified build restriction. r=gps 2014-10-08 13:17:27 -07:00
Gregory Szorc
9e13fd77b3 Bug 1071012 - Extract Sphinx variables via AST reading; r=glandium
The in-tree Sphinx docs have been broken since bug 1041941 because
processing moz.build files outside their context doesn't work.
Specifically, templates aren't loaded (because this information usually
comes from a parent moz.build file). A new execution mode is needed.

I tried to implement a proper execution mode. However, I kept running
into walls. While we should strive for a proper execution mode, this can
be a follow-up, tracked in bug 1058359.

This patch implements extraction of Sphinx variables from ast walking.
It is extremely low-level and definitely a one-off. But it solves the
problem at hand: |mach build-docs| will work after this patch is
applied.

--HG--
extra : rebase_source : abd0a91a3efb24d3adfa19f4cd281ce5fd6d0915
extra : amend_source : c1b4f79224bab55e65a8c2b0f3103475281416c1
2014-10-07 10:36:27 -07:00
Bill McCloskey
c8f8625356 Bug 930243 - Add a processType flag to chrome manifest directives (r=froydnj) 2014-10-07 11:46:24 -07:00
Mark Hammond
fe842cb233 Bug 1074507 - Avoid pre-filtering tests so we can have e10s-only tests. r=ted 2014-10-01 17:06:00 -04:00
Wes Kocher
e2d4dc066f Merge m-c to inbound a=merge CLOSED TREE 2014-10-06 20:59:17 -07:00
Wes Kocher
5000218064 Backed out 5 changesets (bug 806819) for WinXP test failures on a CLOSED TREE
Backed out changeset 009ae35b0c67 (bug 806819)
Backed out changeset 5a57f87f5061 (bug 806819)
Backed out changeset f06cd735b5b3 (bug 806819)
Backed out changeset e25a2a8d4af4 (bug 806819)
Backed out changeset 70a167982c3f (bug 806819)
2014-10-06 16:32:50 -07:00
Mike Hommey
66e8daff0b Bug 1076649 - Remove the '+' prefixing from mach commands with allow_all_arguments=True. r=gps
The reason to use '+' prefixing was to distinguish between options to the
mach command itself, and options that are passed down to whatever the
command does (like mach run passing down args to the built application).
That makes things unnecessarily awkward, and quite non-standard.

Instead, use standard '-' prefixing, and pass all the unknown arguments
down. If there is overlap between the known arguments and arguments supported
by the underlying tool (like -remote when using mach run), it is possible to
use '--' to mark all following arguments as being targetted at the underlying
tool.

For instance:
    mach run -- -remote something
would run
    firefox -remote something
while
    mach run -remote something
would run
    firefox something

As allow_all_arguments is redundant with the presence of a argparse.REMAINDER
CommandArgument, allow_all_arguments is removed. The only mach command with a
argparse.REMAINDER CommandArgument without allow_all_arguments was "mach dmd",
and it did so because it didn't want to use '+' prefixes.
2014-10-07 07:36:27 +09:00
Nick Alexander
2291c26274 Bug 1077381 - Follow-up: Try to fix Windows bustage. r=me
a=bustage on a CLOSED TREE

--HG--
extra : amend_source : c39a128f271f44e263d77f342665594ba161f933
2014-10-06 12:38:12 -07:00
Nick Alexander
cc7a7ac9f7 Bug 1077381 - Encode generate_browsersearch verbose output as utf-8. r=gps
We need codecs for the print function and unicode_literals to let the
format() string stay undecorated.
2014-10-06 11:32:24 -07:00
Eric Rahm
0be05cf138 Bug 806819 - Part 1: Remove FORCE_PR_LOG unified build restriction. r=gps
--HG--
extra : rebase_source : 004c828c1fd157fc0f13fd6a2ca85c264a34d60c
2014-10-06 13:06:55 -07:00
Nicholas Nethercote
9a9541ba80 Bug 1066680 (follow-up) - Unbreak |mach dmd|. r=me.
--HG--
extra : rebase_source : 3cfb38ea47653551c596487e3c51994797a1c733
2014-10-05 20:13:09 -07:00
Nicholas Nethercote
623282e324 Bug 1044709 - DMD: emit JSON output and use Python for post-processing. r=mccr8.
--HG--
extra : rebase_source : ddc94d9be1ee0acc6dda30540defd5f40db0adcb
2014-09-02 20:34:58 -07:00
Ryan VanderMeulen
93b3ed4688 Merge fx-team to m-c. a=merge 2014-10-02 13:00:31 -04:00
Andrew Halberstadt
9f3c98120c Bug 1054809 - Add ability to open support files in gtests, r=ted
In moz.build:
TEST_HARNESS_FILES.gtest += ['foo']     # fopen('foo')
TEST_HARNESS_FILES.gtest.bar += ['foo'] # fopen('bar/foo')
2014-10-02 09:01:34 -04:00
Nick Alexander
96007a7198 Bug 1065306 - Post: Handle utf-8 files in DotProperties. r=gps 2014-10-01 23:23:30 -07:00
Nick Alexander
edd5d585a0 Bug 1065306 - Part 4: Write localized res/raw-*/browsersearch.json. r=mshal 2014-10-01 23:23:29 -07:00
Nick Alexander
8cc9c4d4b9 Bug 1065306 - Part 3: Extract DotProperties helper. r=lucasr,mshal
The only substantive change here is to stop stripping the
'browser.suggestedsites.' prefix from each line when reading
region.properties.
2014-10-01 23:23:28 -07:00
Panos Astithas
817fa6fbbf Bug 1066680 - mach run should provide an option to start without a profile. r=gps 2014-09-12 18:45:53 +03:00
Stephen Pohl
d16e3504d5 Mac v2 signing - Bug 1060562 - Update xpcshell-tests for the new v2 bundle structure on OSX. r=jmaher 2014-09-29 11:51:29 -07:00
Nick Alexander
39c38e469e Bug 1069648 - Add instrumentation manifests to moz.build. r=ted
These manifests are special in that they don't package their test files
into the test package.  Each test listed in an instrumentation manifest
serves as an identifier rather than a file.

--HG--
extra : rebase_source : 0321528a2dc380e57b824746efbcf61d295204a9
2014-09-26 11:44:58 -07:00
Nick Alexander
42955e09d6 Bug 1070057 - Make TestResolver.resolve_tests filter by subsuite. r=ted
--HG--
extra : rebase_source : e04c903d40d5996ca28136bc9941dc74cd31ac9b
2014-09-26 11:44:57 -07:00
Mike Hommey
7803095a44 Bug 1063437 - Remove MozbuildSandbox.normalize_path. r=gps 2014-10-02 09:14:08 +09:00
Mike Hommey
268c858d71 Bug 1063437 - Use SourcePath smart type for sandbox includes. r=gps 2014-10-02 09:14:08 +09:00
Mike Hommey
18c5018c3a Bug 1063432 - Do type coercion on sandbox function arguments. r=gps 2014-10-02 09:14:08 +09:00
Mike Hommey
0e6e978770 Bug 1063414 - Make DIRS relative to the file they were added from. r=gps 2014-10-02 09:14:07 +09:00
Mike Hommey
fd4b93a403 Bug 1063414 - Move sandbox execution stack to context.Context. r=gps 2014-10-02 09:14:07 +09:00
Mike Hommey
b3c300ae1a Bug 1063414 - Add infrastructure to follow what the current file being processed is in a Context. r=gps 2014-10-02 09:14:07 +09:00
Mike Hommey
29152c00d7 Bug 1062221 - Change how DIRS and TEST_DIRS are handled. r=gps
Up to now, DIRS and TEST_DIRS were dumb values. This change makes them
a list of ContextDerivedValues, and handles the fact that some types of
paths are relative to the current source directory and others to the
topsrcdir.

This also makes us one step closer to fixing bug 991983.
2014-10-02 09:14:07 +09:00
Mike Hommey
5f3bfd0ece Bug 1062221 - Replace add_tier_dir with DIRS. r=gps 2014-10-02 09:14:07 +09:00
Mike Hommey
b3bcf32644 Bug 1062221 - Add a TypedList type and refactor mozbuild.util lists. r=gps 2014-10-02 09:14:06 +09:00
Nicholas Nethercote
721101f931 Bug 1072778 (part 2) - Use '-' instead of '_' in |mach dmd| flags. r=erahm.
DONTBUILD because |mach dmd| is NPOTB.
2014-09-25 17:20:12 -07:00
Nicholas Nethercote
455bf4e845 Bug 1072778 (part 1) - Make |mach dmd| work on Linux. r=erahm.
--HG--
extra : rebase_source : 72b0f570dfacc694fc00fd2ec571c57747c8fe38
2014-09-25 17:19:53 -07:00
Mike Hommey
00aa07cf6a Bug 837846 - Respect MOZ_MAKE_FLAGS when running make commands from mach. r=mshal 2014-09-26 07:35:28 +09:00
Ryan VanderMeulen
72911fffa8 Merge m-c to inbound. a=merge
CLOSED TREE
2014-09-24 16:08:33 -04:00
Carsten "Tomcat" Book
cc75d569ff Backed out changeset aa8972afcbe5 (bug 1065306) 2014-09-24 08:30:34 +02:00
Carsten "Tomcat" Book
5fa0200b03 Backed out changeset c4ecd64d8b95 (bug 1065306) 2014-09-24 08:30:30 +02:00
Nick Alexander
12f1828554 Bug 1065306 - Part 4: Write localized res/raw-*/browsersearch.json. r=mshal 2014-09-23 09:52:47 -07:00
Nick Alexander
d85cd52054 Bug 1065306 - Part 3: Extract DotProperties helper. r=lucasr,mshal
The only substantive change here is to stop stripping the
'browser.suggestedsites.' prefix from each line when reading
region.properties.
2014-09-23 09:52:46 -07:00
Wes Kocher
b5b95eeb9e Merge m-c to inbound a=merge 2014-09-23 16:48:23 -07:00
Mike Hommey
a2b639f114 Bug 837846 - Fix MOZ_MAKE_FLAGS handling for client.mk. r=mshal
After bug 762358 mk_add_options MOZ_MAKE_FLAGS was simply ignored in client.mk
processing. At the same time, mach environment was expecting a list of options
while the mozconfig reader returned a single string, so straighten this up at
the same time.
2014-09-24 07:56:58 +09:00
Wes Kocher
9b6ecb79ab Merge m-c to inbound a=merge 2014-09-22 20:05:22 -07:00
Dave Townsend
e9343c0810 Bug 1035512: Add a new common JS testing harness based on the mochitest test runner. r=gps, ted, erikvold, jmaher 2014-09-22 11:08:06 -07:00
Eric Rahm
e1a9fab72a Bug 1058851 - Add ability to launch with DMD enabled with |mach dmd|. r=njn, r=mshal
--HG--
extra : rebase_source : cef900604d004ea4847d979aeac4c2b5e7e0869d
2014-08-26 15:25:18 -07:00
Nick Alexander
c78265ca7e Bug 1069569 - Complain about missing test files for all suites. r=mshal
--HG--
extra : rebase_source : 55d571b413d6080f8fdb1e56b419c078d66f31e7
2014-09-19 11:19:37 -07:00
Ted Mielczarek
dd3a2f8bb8 bug 1052744 - Add mozbuild.makeutil.write_dep_makefile. r=gps 2014-08-26 11:55:47 -04:00