Commit Graph

102 Commits

Author SHA1 Message Date
James Graham
631562e7fb Bug 1193264 - Add support for saving and reusing try strings in mach try, r=chmanchester
Adds --save and --preset arguments that can be used to store and reuse
frequently used try strings.
2015-09-25 10:45:20 +01:00
James Graham
1373330a8c Bug 1193215 - Support for passing test directories through mach try, r=chmanchester
This adds support for web-platform-tests to mach try. It changes the implementation
so that instead of passing paths to manifests, the user passes arbitary paths in the
source tree, and tests under that path are run, with test discovery mainly left to
the harness.
2015-09-25 10:45:17 +01:00
Carsten "Tomcat" Book
be8db97200 Backed out 4 changesets (bug 1193264, bug 1193215, bug 1188483, bug 1204120) for test bustage and bustage on a CLOSED TREE
Backed out changeset a9a4292b2df3 (bug 1188483)
Backed out changeset 9748ff0d2836 (bug 1204120)
Backed out changeset a0b952bb6620 (bug 1193264)
Backed out changeset 63c61416c2f7 (bug 1193215)
2015-09-24 13:58:20 +02:00
James Graham
fd5fa790a5 Bug 1204120 - Allow passing talos arguments to |mach try|.
This has the side effect that passing -t none doesn't result
in bare -t being passed (because "none" is interpreted as a
test path).
2015-09-24 11:58:04 +01:00
James Graham
cb1309891d Bug 1193264 - Add support for saving and reusing try strings in mach try
Adds --save and --preset arguments that can be used to store and reuse
frequently used try strings.
2015-09-24 11:58:04 +01:00
James Graham
ed128fe1cc Bug 1193215 - Support for passing test directories through mach try.
This adds support for web-platform-tests to mach try. It changes the implementation
so that instead of passing paths to manifests, the user passes arbitary paths in the
source tree, and tests under that path are run, with test discovery mainly left to
the harness.
2015-09-24 11:58:03 +01:00
James Graham
4cc532bd15 Bug 1193223 - Add reftest support to mach test, r=chmanchester 2015-09-17 10:50:57 +01:00
Geoff Brown
eddda2f5de Bug 1090276 - Support mach cppunittest on Android; r=dminor 2015-09-14 08:40:35 -06:00
Nigel Babu
1e052456be Backed out 7 changesets (bug 1181516, bug 1198257, bug 1193257, bug 1194166, bug 1193223, bug 1193224, bug 1181520) for JS Refest bustage on Android
Backed out changeset e768739ec812 (bug 1194166)
Backed out changeset a8393be51468 (bug 1193257)
Backed out changeset 1484fe1a38e6 (bug 1193224)
Backed out changeset 24f4ad5c55cc (bug 1198257)
Backed out changeset 985f984a97ad (bug 1193223)
Backed out changeset 6137013d4933 (bug 1181516)
Backed out changeset 0456de3eb5e3 (bug 1181520)

ON A CLOSED TREE
2015-09-14 15:16:34 +05:30
James Graham
eb6a9ae1d2 Bug 1193223 - Add reftest support to mach test, r=chmanchester 2015-09-14 09:46:57 +01:00
Carsten "Tomcat" Book
2b181b0d92 Backed out 7 changesets (bug 1181516, bug 1198257, bug 1193257, bug 1194166, bug 1193223, bug 1193224, bug 1181520) for test bustages on Android on a CLOSED TREE
Backed out changeset efe681ac063f (bug 1194166)
Backed out changeset bfcbce193ccf (bug 1193257)
Backed out changeset bb035419fd9c (bug 1193224)
Backed out changeset eb2d48b71c37 (bug 1198257)
Backed out changeset 0d6532c1e99e (bug 1193223)
Backed out changeset da3dd2f650d0 (bug 1181516)
Backed out changeset 29c33bbaac01 (bug 1181520)
2015-09-11 14:18:09 +02:00
James Graham
3f6179b33e Bug 1193223 - Add reftest support to mach test, r=chmanchester 2015-09-11 12:30:12 +01:00
Chris Manchester
081241275c Bug 1202213 - Always print the calculated syntax from mach try when --no-push is present. r=ahal 2015-09-10 10:20:59 -07:00
Vaibhav Agrawal
29f5b1e1f5 Bug 999450 - Make find-test-chunk automatically detect test flavor and subsuite via TestResolver. r=chmanchester 2015-09-02 13:18:08 -07:00
Vaibhav Agrawal
7f59cd73ca Bug 999450 - Adding --platform to make find-test-chunk detect chunk for a test for another platform. r=chmanchester 2015-09-03 21:32:53 -07:00
Vaibhav Agrawal
20c25fdce1 Bug 999450 - Adding --debug to make find-test-chunk detect chunk for a test for a debug build. r=chmanchester 2015-08-31 22:52:07 -07:00
Vaibhav Agrawal
221fedf3d8 Bug 999450 - Adding --e10s option to make find-test-chunk detect chunk for a test on e10s platform. r=chmanchester 2015-09-01 21:19:21 -07:00
Vaibhav Agrawal
e120c8d362 Bug 999450 - Make find-test-chunk detect if a test is disabled on a platform. r=chmanchester 2015-09-01 21:10:23 -07:00
Vaibhav Agrawal
f103ea8e3b Bug 999450 - Add find-test-chunk command in mach to discover the chunk for a mochitest on a platform. r=chmanchester 2015-08-26 16:51:15 -07:00
Chris Manchester
1a37e2d6cc Bug 1197829 - Don't invoke the build system if paths or tags aren't passed to mach try. r=ahal 2015-08-26 12:48:28 -07:00
Julien Pagès
9393cdafbf Bug 1194789 - Disable mochitest-ipcplugins and remove mochitest-ipcplugins code. r=jgriffin 2015-08-17 20:34:25 +02:00
Jonathan Griffin
c8edf4f6e5 Bug 1190474 - Allow test-specific timeouts to be specified in cppunittest.ini, r=chmanchester 2015-08-12 16:25:56 -07:00
Sebastian Hengst
eb1e0b7375 Backout bedff4a78d9a (bug 1190474) for B2G ICS Emulator Cpp unittests permafail. r=backout 2015-08-13 09:08:45 +02:00
Jonathan Griffin
64f39c8e9c Bug 1190474 - Allow test-specific timeouts to be specified in cppunittest.ini, r=chmanchester 2015-08-12 16:25:56 -07:00
Chris Manchester
c9fc596dc9 Bug 1183232 - Allow selecting tests and suites with just a tag from mach try. r=ahal,gps 2015-08-06 10:19:31 -07:00
Andrew Halberstadt
5c1241cd79 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
4e705e56d0 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
fdd12ffbfa 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
d993a444fa 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
1c219144ca 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
b8437eff88 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
c83f0e3577 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
9b1aa6595f Bug 1169410 Add support for web-platform-tests to |mach test| r=gps 2015-05-28 20:27:23 +01:00
Andrew Halberstadt
754253aa5f Bug 1169799 - Update |mach test| suites to reflect new |mach mochitest| command, r=chmanchester 2015-05-29 17:05:34 -04:00
Eric Rahm
96b9c3a6c5 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
09b1925da7 Bug 1161410 - Part 2: Use --jitflags instead of --tbpl and --tbpl-debug. r=sfink 2015-05-08 00:28:55 +09:00
Alexandre Poirot
352f8c3424 Bug 1147031 - Write mach command for luciddream. r=jgriffin 2015-04-09 11:46:00 -04:00
Ryan VanderMeulen
f08fd7d276 Backed out changeset a209d4d37f8f (bug 1147031) for Luciddream bustage. 2015-04-07 11:48:46 -04:00
Alexandre Poirot
78d40df833 Bug 1147031 - Write mach command for luciddream. r=jgriffin 2015-04-02 10:55:00 -04:00
J. Ryan Stinnett
4905b1d2b2 Bug 1068676 - Make mach test understand subsuites. r=jmaher 2015-02-06 14:36:59 -06:00
Dan Minor
460fdebe82 Bug 1087567 - Add proper manifest for cppunit tests; r=ted 2014-10-28 09:38:21 -04:00
Chris Manchester
ed5ff541e2 Bug 1034272 - Convert cppunittests to structured logging.;r=ted 2014-07-10 09:33:39 -04:00
Sylvestre Ledru
0650e71d3a Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher 2014-08-09 15:37:29 +02:00
Ting-Yu Lin
bdc15321bf 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
871f45e598 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.
2014-06-18 11:21:12 -07:00
Gregory Szorc
4245c1997c 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.
2014-06-17 16:03:49 -07:00
Dan Minor
47a015a7fa 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
4cc10271fe Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Dan Minor
5dcb805e54 Bug 988849 - Add mach target for jit tests; r=gps 2014-03-27 10:16:14 -04:00
Dan Minor
b632c9b64d Bug 949538 - Add mach target for cpp unittests; r=gps 2014-01-02 10:19:35 -05:00