Commit Graph

75 Commits

Author SHA1 Message Date
Geoff Brown
b72a74a2a6 Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
Honza Bambas
d380c324d0 Bug 1321026 - Have an argument to change the number of parallel tests when running xpcshelltests, r=ted 2017-03-06 05:39:00 +01:00
Sebastian Hengst
6b2f608e3e Backed out changeset a293a617ebed (bug 1321026) on suspicion of causing xpcshell bustage. r=backout on a CLOSED TREE 2017-03-06 23:35:17 +01:00
Honza Bambas
82ce68f9b1 Bug 1321026 - Have an argument to change the number of parallel tests when running xpcshelltests. r=ted 2017-03-06 08:44:00 -05:00
Andrew Halberstadt
b5202cebb3 Bug 1316408 - Remove all b2g related code from testing/xpcshell, r=jmaher
MozReview-Commit-ID: KF5Pw5WBleX
2016-11-09 14:50:45 -05:00
Ethan Glasser-Camp
c0414a211e Bug 1225781: Return exit status of tests, r=ahal
MozReview-Commit-ID: 75v381nyQbj
2016-10-05 17:24:36 -04:00
Gregory Szorc
ed7992d2a4 Bug 1272851 - Use objdir for temporary directory for mach xpcshell-test; r=ted
When running xpcshell tests on my i7-6700K, the Windows Defender
MsMpEng.exe process regularly consumes up to 50% CPU - 2 whole cores.
This is because it is canning the thousands of files we create in the
temporary directory. (We create a profile for every xpcshell.exe process.)

This commit changes the behavior of `mach xpcshell-test` to use a temporary
directory under the topobjdir. We encourage people to disable file indexing
and A/V scanning in the source and object directories because this can add
overhead. So by putting temporary files in the object directory, we should
minimize the chances of file scanning slowing down test execution.

On my machine (which has Windows Defender disabled in my source and objdirs),
`mach xpcshell-test` execution time drops from ~13:40 to ~7:30. Seriously.

I'm told we have Windows Defender disabled in automation, so this hack
shouldn't need to be investigated there. i.e. this is a pure local development
win.



MozReview-Commit-ID: BMcSAZ16Yei
2016-05-26 11:56:20 -07:00
Chris Manchester
a22312511f Bug 1242051 - Install test files to the objdir lazily rather than with each invocation of mach. r=gps
This moves test installation for test files out of the monolithic install
manifest for $objdir/_tests, and determines the test and support files
to install based on the object derived from all-tests.json. Additionally,
the files resulting from TEST_HARNESS_FILES are installed, as some tests
will depend on them.

As a result, the time to install tests when invoking the test runner will
scale with the number of tests requested to run rather than the entire set
of tests in the tree, resulting in significantly less overhead.

MozReview-Commit-ID: LeIrUVh1yD4
2016-04-04 14:56:52 -07:00
Geoff Brown
2f6bea8f59 Bug 1255563 - Set sequential option when running Android 'mach xpcshell-test'; r=jmaher 2016-03-10 15:18:40 -07:00
Edgar Chen
1fd2f9acc6 Bug 1216507 - Use the correct busybox binary for x86 emulator. r=ahal 2015-10-10 12:00:18 +08:00
Chris Manchester
19640ff085 Bug 1209312 - Accept test_objects in testing/xpcshell/mach_commands.py to support |./mach test|. r=jgraham 2015-09-29 12:59:55 -07:00
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