Commit Graph

64 Commits

Author SHA1 Message Date
Andrew Halberstadt
47ccfb9842 Bug 1206073 - [xpcshell] Fix default value for testingModulesDir when running from mach, r=jgraham 2015-09-18 10:00:40 -04:00
James Graham
2e444ca098 Bug 1193257 - Make xpcshell harness command line arguments path filters for tests, r=ahal 2015-09-17 10:51:02 +01:00
James Graham
1e629f9bf0 Bug 1193224 - Remove vestigial --tests-root-dir option from xpcshell tests, r=ahal 2015-09-17 10:51:00 +01:00
Geoff Brown
bfa1ed512b Bug 1202790 - Improve argument handling for android 'mach xpcshell-test'; r=chmanchester 2015-09-09 07:12:56 -06:00
Geoff Brown
8c4381b5df Bug 1164596 - Add mach android-emulator command; r=ahal 2015-09-01 15:07:53 -06:00
Vaibhav Agrawal
228761e931 Bug 1197541 - Add --dump-tests option to mochitest and xpcshell for all tests that will be run. r=ahal 2015-08-21 17:16:11 -07:00
Julien Pagès
6e0fa8b546 Bug 1091285 - move dumpScreen in a new mozscreenshot package. r=jgriffin
This also completely remove build/automationutils.py.
2015-07-29 17:50:16 +02:00
Gregory Szorc
bf1e7d6808 Bug 1176642 - Defer import of urllib2; r=chmanchester
This prevents 8 module imports from occurring at mach startup time.

As part of this, I discovered a redundant import of "sys" and eliminated
it.
2015-06-25 12:12:15 -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
aa30a01aa0 Bug 487494 - Pipe xpcshell's output through a stack fixer.;r=ted 2015-06-11 11:21:13 -07:00
James Graham
ced8b826cd Bug 1171849 Let consumers override mozlog default formatter options, r=chmanchester 2015-06-05 17:48:06 +01:00
Chris Manchester
358a9eea75 Bug 1160164 - Run "all the tests" when invoking xpcshell's mach command with no arguments instead of passing "all" to the test resolver.;r=ahal DONTBUILD 2015-04-30 11:30:10 -07:00
Andrew Halberstadt
baf7554392 Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester
Add a `tags` attribute to a test or DEFAULT section in a manifest:

[test_foo]
tags = foo

Then run all tests with a given tag by passing in `--tag foo` to a supported test harness. So far mochitest, xpcshell and marionette are supported.
2015-03-19 16:15:33 -04:00
Ryan VanderMeulen
beab04f3c0 Backed out changesets acbab9e22691 and 3c34fd480729 (bug 987360) for Android/B2G xpcshell bustage.
CLOSED TREE
2015-03-27 13:12:19 -04:00
Andrew Halberstadt
90da2d6c5b Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester
Add a `tags` attribute to a test or DEFAULT section in a manifest:

[test_foo]
tags = foo

Then run all tests with a given tag by passing in `--tag foo` to a supported test harness. So far mochitest, xpcshell and marionette are supported.
2015-03-19 16:15:33 -04:00
Szu-Yu Chen [:aknow]
a0626af616 Bug 1133649 - Add an always true condition for xpcshell-test. r=gps 2015-03-05 18:00:23 +08:00
Joshua Cranmer
6226c9ae4d Bug 934170: Make mach xpcshell-test work for comm-central, r=ted 2015-01-30 09:54:00 -06:00
Geoff Brown
d521fad0f0 Bug 1119583 - Use Droid instead of devicemanager for xpcshell mach; r=ahal 2015-01-12 14:33:43 -07:00
Mark Hammond
a0302a0353 Bug 809561 - Integrate xpcshell test harness with chrome remote debugging. r=past/chmanchester 2014-11-29 10:40:58 +11:00
Chris Manchester
417bb77650 Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
Marco Bonardo
c3e11da5f0 Bug 969633 - xpcshell reruns "tests that failed when run in parallel" when only a single test was executed, r=gps 2014-10-07 16:30:30 +02:00
Andrew Halberstadt
11b824f09b Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Alessio Placitelli
7885462da5 Bug 928397 - Enable xpcshell-test debugging on Windows platforms and default debugger detection. r=ted.mielczarek 2014-07-02 13:52:00 +02:00
Chris Manchester
32c303ba7f Bug 1056952 - Expose xpcshell's verbose option to xpcshell's mach_commands.py. r=ahal 2014-08-21 16:34:55 -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
Alessio Placitelli
da5bbd070b Bug 1028090 - Enable xpcshell-test debugging on Windows platforms. r=jmaher 2014-07-28 12:04:00 -04: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
Wes Kocher
eadbb03685 Merge m-c to fx-team 2014-06-19 18:33:19 -07:00
Gregory Szorc
5827eb1638 Bug 920193 - mach xpcshell-test can now receive test objects; r=AutomatedTester
A subsequent patch will have another mach command dispatch into
`xpcshell-test`. To avoid redundant resolution of test paths, we now
support passing resolved test objects into the mach command.
2014-06-18 11:17:50 -07:00
Andrew Halberstadt
df364bfcf8 Bug 997244 - Move emulator.py out of marionette and into mozrunner, r=wlach,mdas,jgriffin 2014-06-19 14:17:26 -04:00
Vicamo Yang
23091844af Bug 996443: carry emulator arch automatically for mach commands. r=ahal 2014-05-01 00:57:39 +08:00
Gregory Szorc
4a13011778 Bug 987414 - Pass multiple test arguments to mach testing commands; r=ahal
Previously, mach xpcshell-test and mochitest-* were limited to a single
test "path" argument. This patch enables multiple arguments to be passed
in.

TestResolver in the build system has gained the ability to process
multiple paths in a single invocation. The mach commands have been
modified to utilize this new feature.

Only mach code paths that pass manifestdestiny.TestManifest instances
into the test runner can accept multiple arguments. This is because
there is no other way to pass a custom set of tests into the test
runner. If multiple test arguments are used but not supported, a warning
is emitted.
2014-03-24 16:19:57 -07:00
Andrew Halberstadt
aaa4ae416e Bug 932362 - Create mach target for running b2g xpcshell tests, r=jgriffin 2014-03-11 10:08:25 -04:00
Gregory Szorc
5e96f47a94 Bug 970302 - Ensure a TestManifest is always used when running xpcshell tests; r=ted 2014-02-10 13:11:23 -08:00
Gregory Szorc
4bd9c5a69c Bug 852959 - Remove old code paths for running xpcshell tests from directories; r=ted
Manifests are now the mechanism used to specify how to run xpcshell
tests. This patch removes old code paths that allowed directories to be
specified.

runxpcshelltests.py still contains references to "testdirs." These
should likely be removed as well. This patch doesn't touch them out of
fear it may have consequences on automation.
2014-01-27 10:14:09 -08:00
Mark Hammond
b0a40a899d Bug 968581 - enable xpcshell verbose log output if only 1 test is in the manifest. r=gps 2014-02-06 13:51:00 +11:00
Gregory Szorc
3563c036de Bug 920849 - Part 2: Discover xpcshell tests through metadata, not filesystem; r=ted 2013-10-22 16:54:40 -07:00
Geoff Brown
60ca7d92b1 Bug 945975 - Add mach support for Android xpcshell tests; r=ted 2013-12-13 21:20:39 -07:00
Yoshi Huang
1cc898d21b Bug 921388 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 ... when running xpcshell-tests. r=gps 2013-10-17 11:59:53 +08:00
Gregory Szorc
f5c5dde751 Bug 920184 - Have mach xpcshell-test and mochitest-* update test files automatically; r=ted 2013-10-01 18:36:44 +02:00
Chris Manchester
29c28f5fc7 Bug 500388 - Don't buffer xpcshell process output, use a callback to consume output as it is available. r=ted 2013-09-12 19:48:43 -04:00
Chris Manchester
65d5e7a282 Bug 908340 - Omit test start messages from mach xpcshell output; r=gps 2013-08-22 18:54:26 -07:00
Chris Manchester
d2fa920ce0 Bug 729098 - Ability to track and rerun failed xpcshell tests; r=gps 2013-08-21 09:26:46 -07:00
Ms2ger
f0438ba659 No bug - Fix indentation in xpcshell's mach handler; r=ted 2013-08-22 08:34:58 +02:00
Mihnea Dobrescu-Balaur
0d4adcb8f7 Bug 905782 - Make the XPCShell harness treat running a single file as a sequential run. r=ted 2013-08-20 16:07:33 -07:00
Jim Blandy
fc04e4ab23 Bug 905437: Make it possible for 'mach xpcshell-test' to run xpcshell under GDB. r=ted
At the moment, the --debug argument accepted by mach xpcshell-test is
dropped. I don't know if just bringing the old harness's command-line
arguments forward to 'mach xpcshell-test' is the most mach-ish way to do
things, but it does let me get things started.
2013-08-19 16:07:40 -07:00
Mihnea Dobrescu-Balaur
38d610c0a5 Bug 905835 - Fix whitespace in mach parxpc warning. r=gps 2013-08-15 15:22:35 -07:00
Mihnea Dobrescu-Balaur
68128578bb Bug 887054 - Part 2: Add parallel warning and support for --sequential to mach xpcshell-test. r=gps 2013-08-14 10:17:11 -07:00
Josh Matthews
d571cbbb8c Bug 597064 - Add timeout logic to xpcshell test runner. r=ted 2012-12-20 03:43:19 -05:00
Gregory Szorc
58dd420bfe Bug 856392 - Categorize mach commands; r=jhammel
DONTBUILD (NPOTB)
2013-05-08 17:56:30 -07:00