Commit Graph

27 Commits

Author SHA1 Message Date
Andrew Halberstadt
8cffe8fa6b Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.
2015-07-16 10:38:40 -04:00
Nicolas B. Pierron
c6b64ed88b Bug 1178772 - Add check_macroassembler_style.py: Verify that each MacroAssembler declaration maps to all its definitions. r=h4writer 2015-07-09 14:35:29 +02:00
Gregory Szorc
8c6af140a3 Bug 1176642 - Defer import of autotry and pprint; r=chmanchester
This was the only mach_commands.py file importing these modules. Defer
import so mach doesn't work so hard during startup.
2015-06-25 12:11:34 -07:00
Gregory Szorc
4f2fb895aa Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.

All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.
2015-06-21 17:39:09 -07:00
Chris Manchester
d5895c0f35 Bug 1173622 - Add a thorough docstring and clean up comments on the |mach try| command.;r=ahal 2015-06-13 22:22:44 -07:00
Gregory Szorc
a98ec62ada Bug 1173633 - Print docstrings of mach command handlers in help output; r=ahal
`mach help <command>` currently only displays a brief description of the
command along with its arguments. Sometimes more detailed help text is
needed.

With this commit, the docstrings of mach command handlers will appear in
the output of `mach help <command>` if they are defined.

I've implemented basic docstrings for the three flavors of mach commands
(normal command, main subcommand, subcommand) to demonstate things work.

My hope is others will start to fill in docstrings once this feature
lands so the output for `mach help` can serve as a better learning guide
for new contributors.
2015-06-11 08:32:02 -07:00
Chris Manchester
bd96d46ee4 Bug 1149670 - Add a mach command to find tests in specified directories and prepare a commit to push them to try.;r=ahal 2015-05-28 15:57:21 -07:00
James Graham
a5d71a83c6 Bug 1169410 Add support for web-platform-tests to |mach test| r=gps 2015-05-28 20:27:23 +01:00
Andrew Halberstadt
4f234406f0 Bug 1169799 - Update |mach test| suites to reflect new |mach mochitest| command, r=chmanchester 2015-05-29 17:05:34 -04:00
Eric Rahm
38987a6acc Bug 1164121 - Add |mach| command to run jsapi-tests. r=sfink
Provides a |mach jsapi-tests <optional_test_name>| command.
2015-05-15 15:41:50 -07:00
Tooru Fujisawa
2bcdfe6ac1 Bug 1161410 - Part 2: Use --jitflags instead of --tbpl and --tbpl-debug. r=sfink 2015-05-08 00:28:55 +09:00
Alexandre Poirot
ba761dc695 Bug 1147031 - Write mach command for luciddream. r=jgriffin 2015-04-09 11:46:00 -04:00
Ryan VanderMeulen
634a5a9321 Backed out changeset a209d4d37f8f (bug 1147031) for Luciddream bustage. 2015-04-07 11:48:46 -04:00
Alexandre Poirot
3cd4d298bd Bug 1147031 - Write mach command for luciddream. r=jgriffin 2015-04-02 10:55:00 -04:00
J. Ryan Stinnett
e532af229d Bug 1068676 - Make mach test understand subsuites. r=jmaher 2015-02-06 14:36:59 -06:00
Dan Minor
5d172c6737 Bug 1087567 - Add proper manifest for cppunit tests; r=ted
--HG--
extra : rebase_source : 622e454f491462d9d2c4125d1309a28854a92b0b
2014-10-28 09:38:21 -04:00
Chris Manchester
42c1c4e220 Bug 1034272 - Convert cppunittests to structured logging.;r=ted 2014-07-10 09:33:39 -04:00
Sylvestre Ledru
ac9d156829 Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher
--HG--
extra : rebase_source : 29019a02711ffce5c148787517051855259b6446
2014-08-09 15:37:29 +02:00
Ting-Yu Lin
00d2bb924f Bug 982560 - Fix mach fails to find tests in subdirectory. r=gps
Make the test paths relative to topsrcdir before passing them to
TestResolver. Also do not passing cwd to TestResolver since it will
filter out tests that do not live under the directory where the mach
command is executed.

Verification steps:
Execute a mach test command from any subdirectory. For example:
$ cd testing/tps/
$ ../../mach xpcshell-test ../../services/fxaccounts/tests/xpcshell/
$ ../../mach test ../../services/fxaccounts/tests/xpcshell/
2014-07-01 23:21:00 +02:00
Gregory Szorc
a7c2656cb5 Bug 920193 - Teach mach test how to run individual test files; r=AutomatedTester
With this change, mach test can now resolve filename arguments to tests
and can dispatch to the appropriate mach commands.

If the arguments contain tests belonging to multiple test
suites/flavors, each relevant test in invoked.

--HG--
extra : rebase_source : dae9e0a094acc587bb7ecb769789c062c7aeb34f
2014-06-18 11:21:12 -07:00
Gregory Szorc
4999a49478 Bug 938712 - Dispatch mach test mochitest suites via mach mochitest; r=AutomatedTester
`mach test` now dispatches through `mach mochitest --flavor` where
supported. As part of testing this patch, it was discovered that `mach
test` may have been broken for quite some time, as it was still
referring to "test_file" arguments instead of "test_paths." This has
been corrected.

--HG--
extra : rebase_source : 4a704df0a67bdda575785cb9f27f050f178dc505
2014-06-17 16:03:49 -07:00
Dan Minor
52f533ac9d Bug 992887 - Rename mach jittest to mach check-spidermonkey and add jstest support; r=mshal 2014-04-29 10:22:50 -04:00
Michael Ratcliffe
e7dad953b0 Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Dan Minor
a69c12157d Bug 988849 - Add mach target for jit tests; r=gps 2014-03-27 10:16:14 -04:00
Dan Minor
e764d14027 Bug 949538 - Add mach target for cpp unittests; r=gps 2014-01-02 10:19:35 -05:00
Nicholas Nethercote
df8b482aa5 Bug 631842 (part 2) - Implement |mach valgrind-test|. r=gps. 2013-12-18 17:36:08 -08:00
Gregory Szorc
85cad798a7 Bug 860839 - Initial implementation of |mach test|; r=jhammel
The future of running tests is this command. It is a unified command for
running tests. Currently, it only supports running test suites from
their full test suite name or TBPL abbreviation. Support will be added
in the future for running individual tests or mixing and matching tests
of different flavors.
2013-09-09 12:37:38 -07:00