Commit Graph

34 Commits

Author SHA1 Message Date
Vicamo Yang
8354f79a2e Bug 996443: carry emulator arch automatically for mach commands. r=ahal 2014-05-01 00:57:39 +08:00
Gregory Szorc
92832d5da6 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.

--HG--
extra : rebase_source : 1ce1328a969f654e7b43a7a0bdd15ed86f5ceb21
2014-03-24 16:19:57 -07:00
Andrew Halberstadt
fd8d3d9682 Bug 932362 - Create mach target for running b2g xpcshell tests, r=jgriffin 2014-03-11 10:08:25 -04:00
Gregory Szorc
fde7b9fd6d Bug 970302 - Ensure a TestManifest is always used when running xpcshell tests; r=ted
--HG--
extra : rebase_source : 30a296e66d25d5e4759b2ad3a420f94a5543a090
extra : amend_source : ac405c60d907f1bae3f376aa4525d8f93f53cc18
2014-02-10 13:11:23 -08:00
Gregory Szorc
91de1ff8b5 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.

--HG--
extra : rebase_source : 8cbfe6dc759dc0a311669c4fcba08ff7a60edc4a
extra : amend_source : 890377d9ba33d52c84e0736b0812231f3005b253
2014-01-27 10:14:09 -08:00
Mark Hammond
5ad17b68ef Bug 968581 - enable xpcshell verbose log output if only 1 test is in the manifest. r=gps
--HG--
extra : rebase_source : b521c42f3eca5dc8742b1689b4ec89edc1012d03
2014-02-06 13:51:00 +11:00
Gregory Szorc
55dbf3e3b5 Bug 920849 - Part 2: Discover xpcshell tests through metadata, not filesystem; r=ted
--HG--
extra : rebase_source : bbe52abe704072c11a3313d356ceedb2d0d31b6b
2013-10-22 16:54:40 -07:00
Geoff Brown
969a5d7bb8 Bug 945975 - Add mach support for Android xpcshell tests; r=ted 2013-12-13 21:20:39 -07:00
Yoshi Huang
ba5831cad0 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
4913cbaefb Bug 920184 - Have mach xpcshell-test and mochitest-* update test files automatically; r=ted 2013-10-01 18:36:44 +02:00
Chris Manchester
669d7a9199 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
aabfa18a87 Bug 908340 - Omit test start messages from mach xpcshell output; r=gps
--HG--
extra : rebase_source : 093f7a16df7de2b89868f0c255c3884b03cd70eb
2013-08-22 18:54:26 -07:00
Chris Manchester
4548d6c23c Bug 729098 - Ability to track and rerun failed xpcshell tests; r=gps
--HG--
extra : rebase_source : da458ded1a6574a230e127331ac4c5b24e494af2
2013-08-21 09:26:46 -07:00
Ms2ger
b645c36d7d No bug - Fix indentation in xpcshell's mach handler; r=ted 2013-08-22 08:34:58 +02:00
Mihnea Dobrescu-Balaur
d9e550ecf0 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
9e92daa4f8 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
94ab297d16 Bug 905835 - Fix whitespace in mach parxpc warning. r=gps 2013-08-15 15:22:35 -07:00
Mihnea Dobrescu-Balaur
1a32ed8d74 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
dd623dadfe Bug 597064 - Add timeout logic to xpcshell test runner. r=ted 2012-12-20 03:43:19 -05:00
Gregory Szorc
2afb3f3369 Bug 856392 - Categorize mach commands; r=jhammel
DONTBUILD (NPOTB)
2013-05-08 17:56:30 -07:00
Georg Fritzsche
b612ac0be7 Bug 816223 - Scan subdirectories for xpcshell.ini from mach command. r=ted 2013-03-19 17:42:08 +01:00
Matt Brubeck
2d9832f259 Bug 840690 - Improve handling of relative paths when running mach in subdirectories [r=gps] 2013-03-14 11:09:00 -07:00
Matt Brubeck
53f5c72607 Bug 848447 - Fix os.path bugs in xpcshell commands on Windows [r=gps] 2013-03-06 20:41:22 -08:00
Gregory Szorc
64b8e14d6e Bug 771578 - Part 1: Reindent xpcshell test runner Python files; rs=ted 2013-02-20 12:45:14 -08:00
Georg Fritzsche
2afe0c2c2a Bug 657313 - Fix mach xpcshell command to provide pluginsPath. r=ted 2013-02-19 18:13:38 +01:00
Phil Ringnalda
7c6a67258b Back out ce4f4d4d69d9 (bug 771578) for xpcshell reporting bustage
CLOSED TREE
2013-02-20 15:20:17 -08:00
Gregory Szorc
3621f7c64d Bug 771578 - Part 1: Reindent xpcshell test runner Python files; rs=ted 2013-02-20 12:45:14 -08:00
Gregory Szorc
0e1250bd4f Bug 818475 - Return proper exit code if xpcshell test fails; r=ted
DONTBUILD (NPOTB)
2012-12-05 15:42:11 -08:00
Gregory Szorc
06f666b380 Bug 815487 - Detect missing xpcshell.ini from mach; r=ted
DONTBUILD (NPOTB)
2012-11-28 12:19:32 -08:00
Gregory Szorc
efb7391678 Bug 810435 - Convert unicode to str to work around Python 2.7.2 bug; r=jhammel
DONTBUILD (NPOTB)
2012-11-14 10:05:18 -08:00
Gregory Szorc
203a9e64f9 Bug 808336 - Part 1: Refactor mach command handler management; r=jhammel
Previously we were tighly coupled with MozbuildObject. This was not in
the spirit of mach being a generic tool. Now, instead of passing multiple
arguments to __init__ of the class providing the mach command we either
pass 0 or 1. The number of arguments is detected when processing the
@CommandProvider decorator. The optional argument is a named tuple
containing mach run-time state.

Capturing of mach command provider information is now captured in a
class (as opposed to an anoymous tuple). We also capture these in a rich
data structure which is passed as part of the run-time data to the
command provider class. This allows mach commands to inspect the mach
environment.

Mach decorators have been moved to mach.decorators. mach.base is
reserved for generic mach data/container classes.

Existing mach command classes derived from MozbuildObject have been
replaced with either object or mozbuild.base.MachCommandBase. This
latter class translates the mach context instance passed to __init__
into the constructor arguments for MozbuildObject.__init__.

Support for registering function handlers with mach has been removed.
All handlers must be inside classes.

--HG--
rename : python/mach/mach/base.py => python/mach/mach/decorators.py
2012-11-06 16:57:41 -08:00
Gregory Szorc
8513688614 Bug 807861 - Ensure state directory is present before running tests; r=rnewman
DONTBUILD (NPOTB)

--HG--
extra : rebase_source : fd66449c11968269d33eff3f686f22a8767b6898
2012-11-02 10:32:40 -07:00
Gregory Szorc
8066817551 Bug 795772 - More mach options to control xpcshell test execution; r=ted
DONTBUILD (NPOTB)
2012-10-31 10:29:26 -07:00
Gregory Szorc
28c7dd206c Bug 799291 - Part 1: Move mach commands for test running into test runners; r=jhammel
The code interacting with the test runners now resides in closer
proximity to the code it is invoking. We also purge testing
functionality from mozbuild, which is where it never really belonged.

--HG--
rename : python/mozbuild/mozbuild/testing/reftest.py => layout/tools/reftest/mach_commands.py
rename : python/mozbuild/mozbuild/testing/mochitest.py => testing/mochitest/mach_commands.py
rename : python/mozbuild/mozbuild/testing/xpcshell.py => testing/xpcshell/mach_commands.py
2012-10-10 11:08:09 -07:00