Commit Graph

96 Commits

Author SHA1 Message Date
Mike Conley
8d20846655 Bug 1152864 - Disable unsafe CPOW warnings when running mochitests by default, and add option to re-enable. r=ahal.
--enable-cpow-warnings can now be passed when running a mochitest to re-enable the warnings,
should one wish to do that.

--HG--
extra : rebase_source : 47b51bade91531269a77fec6c2c68fa1b3babf36
2015-04-10 13:45:22 -04:00
Kershaw Chang
59ddbff283 Bug 1152242 - Enable e10s in mozinfo. r=ted
--HG--
extra : rebase_source : 70494eb870330ec0ee75f848c67b59dc4f43777d
2015-04-08 20:03:00 -04:00
Andrew Halberstadt
5ffa684d03 Bug 1147129 - upgrade mochitest from optparse to argparse and move android cli to mochitest_options.py, r=chmanchester
--HG--
extra : rebase_source : ce81dffa5feb0be28e30c250eda4ad66cc0cb199
2015-03-24 17:42:24 -04:00
Carsten "Tomcat" Book
d03ee825c7 merge mozilla-inbound to mozilla-central a=merge 2015-03-31 14:43:50 +02:00
J. Ryan Stinnett
20d9dfd605 Bug 1138591 - Remove the chrome-enabled pref. r=past
--HG--
extra : transplant_source : %C0%3D%FB%C9%05%C4z%EB4%D4%A3%81%7E%94RX%19%9B%27%AE
2015-03-28 03:42:33 -05:00
Andrew Halberstadt
056bddce11 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.

--HG--
extra : rebase_source : d75905da1ca021a15a9538117d3866425f73d962
extra : source : 3c34fd480729e3b6684fba747ff61078f672ce16
2015-03-19 16:15:33 -04:00
Andrew Halberstadt
23dabc3c03 Bug 1142050 - Add --chunk-by-runtime option to mochitest, r=jmaher
With --chunk-by-runtime enabled, test runtime data collected from automation is used to try and make all chunks take the same amount of time. So far only data for mochitest browser-chrome is added.

--HG--
extra : rebase_source : e6f8327286ee3e69036f7781211f618b870823b5
2015-03-26 15:21:45 -04:00
Ryan VanderMeulen
378481f17f Backed out changesets acbab9e22691 and 3c34fd480729 (bug 987360) for Android/B2G xpcshell bustage.
CLOSED TREE

--HG--
extra : rebase_source : d79b1dcfb12ae8e12efefd7d15b8a2f9f5063377
2015-03-27 13:12:19 -04:00
Andrew Halberstadt
e3068d1b6f 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.

--HG--
extra : rebase_source : 68a0931c6a8ee1df4f5c09d67c396490774aa856
2015-03-19 16:15:33 -04:00
Vaibhav Agrawal
7415bf9e30 Bug 1144573 - Cleanup after removing android*.json. r=ahal, r=jmaher
CLOSED TREE

--HG--
extra : amend_source : b889bad374c39a763d218b4af7374cb848e24adf
2015-03-26 14:39:57 +08:00
Bill McCloskey
e26a687773 Bug 1121676 - Use a lock to protect the list of top-level actors (r=bent) 2015-03-20 12:02:41 -07:00
Mike Hommey
2761e6ddc6 Bug 1139719 - Properly say what binary is missing for --use-test-media-devices. r=jmaher 2015-03-10 10:01:54 +09:00
Nathan Froyd
8a1a8b06cc Bug 1136700 - enable tweaking of the maximum number of timeouts for mochitests; r=jmaher
When running tests locally, it's occasionally useful to be able to
increase the number of tests permitted to timeout before declaring the
test run a failure.  This patch adds the necessary bits to SimpleTest
and the appropriate amount of plumbing to runtests.py and mach to make
that so.
2015-02-25 09:23:54 -05:00
Andrew Halberstadt
7086f00c8a Bug 1127376 - PEP8-ify all mochitest .py files (auto-generated), r=ted
This change was generated using the `autopep8` module [1]. To replicate:

    $ pip install --upgrade autopep8
    $ cd gecko
    $ autopep8 -i -a -a -r testing/mochitest --exclude 'testing/mochitest/pywebsocket/*'

[1] https://github.com/hhatto/autopep8

--HG--
extra : rebase_source : fb127187cd488b977981338373d66cc8c735214f
2015-02-13 14:42:02 -05:00
Andrew Halberstadt
f02004a920 Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
        yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)

--HG--
extra : rebase_source : adead90910811e71e8ea2bb862f2b8e92f2c1bee
2015-02-10 09:38:29 -05:00
Wes Kocher
0315d466dd Backed out changeset ea625e85c72a (bug 1123763) for checktest orange on a CLOSED TREE 2015-02-09 14:00:13 -08:00
Andrew Halberstadt
d22477cea4 Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
            yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)

--HG--
extra : rebase_source : 7afc5d677717279e477d420899ba839073de2d8f
2015-02-09 16:13:00 -05:00
Andrew McCreight
8a52955142 Bug 1128486 - Increase tab process leak threshold a little. r=erahm
The GeckoMediaPluginService leak slowly grows, so hide it for a little longer.
2015-02-09 11:42:20 -08:00
Andrew McCreight
4504972ef2 Bug 1121263 - Bump the leak threshold again for test_ipc. r=RyanVM
CLOSED TREE
2015-01-16 09:30:43 -08:00
Andrew McCreight
3c93da871a Bug 1121263 - Increase tab process leak threshold on OSX to paper over intermittent leak. r=jmaher 2015-01-14 10:06:46 -08:00
Andrew McCreight
2b98534c65 Bug 1087613 - Reduce content process leak threshold to 20KB. r=erahm 2015-01-13 12:32:35 -08:00
Andrew McCreight
0f7602f738 Bug 1083897, part 2 - Don't require leak logs for tab processes on Windows. r=jmaher 2015-01-13 12:32:35 -08:00
Andrew McCreight
2439780415 Bug 1083897, part 1 - Require leak logs for tab processes on desktop. r=khuey 2015-01-13 12:32:35 -08:00
Kershaw Chang
d69ec86385 Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Bill McCloskey
73c276ef13 Bug 1110938 - Add timeout for CPOWs (default to 0) (r=dvander) 2014-12-18 17:35:44 -08:00
Chih-Kai (Patrick) Wang
00013bed8f Bug 970307: Part 4: Increase leak checking threshold. r=nfroyd 2014-12-18 17:01:54 +08:00
Bob Clary
cf6709f516 Bug 1110940 - mochitest - support configurable tests.json manifest file name, r=jmaher. 2014-12-14 18:18:39 -08:00
Carsten "Tomcat" Book
9284760710 Backed out changeset 9877aca65ef5 (bug 1038620) for causing Test Bustage on a CLOSED TREE 2014-12-12 14:57:39 +01:00
Kershaw Chang
f5e5bbb0c5 Bug 1038620 - Add --nested-oop option to mach test commands - v5. r=ted.mielczarek 2014-12-12 01:30:00 +01:00
Bob Owen
d921ff4edf Bug 1103946 Part 1: Change --content-sandbox mach / mochitest option to --strict-content-sandbox. r=jmaher
Also, change tests that are skipped using (contentSandbox != off) to (strictContentSandbox).
2014-12-10 09:34:03 +00:00
Ryan VanderMeulen
fb8d05cd59 Backed out changesets 9beb53e53951, 4420bb4e5e7c, de1da65301a8, and cd9c2aaf1343 (bug 970307) for causing frequent B2G debug mochitest-11 crashes. 2014-11-24 17:18:27 -05:00
Patrick Wang (Chih-Kai Wang)
7fabf7976d Bug 970307: Part 4: Increas leak checking threshold. r=nfroyd 2014-11-24 15:22:49 +08:00
Nazma Panjwani
9bd7bfc683 Bug 1091280 - moved options from AutomationUtils.addCommonOptions to runreftest.py, mochitest_options.py, runxpcshelltests.py and removed the addCommonOptions from automationUtils and automation.py.in, r=ahal 2014-11-19 12:31:45 -08:00
Pankaj Malhotra(:bitgeeky)
4351fe04c1 Bug 1091270 - Move isURL out of automationutils; r=jgriffin 2014-11-04 16:59:40 -08:00
Andrew McCreight
6a2d0f12ed Bug 1090201 - Increase GMP process leak threshold a little more. r=erahm 2014-10-28 14:00:44 -07:00
Andrew McCreight
8a97b14202 Bug 1035454 - increase the tab process leak threshold to 2MB while we deal with landing fallout. r= CLOSED TREE 2014-10-16 10:05:23 -07:00
Andrew McCreight
33e272fd3a Bug 1035454, part 1 - Increase the leak threshold for tab processes. r=khuey 2014-10-15 20:04:32 -07:00
Andrew McCreight
59a2276bcb Bug 1082788 - Increase GMP process threshold a little. r=jesup 2014-10-14 13:04:00 +02:00
Andrew McCreight
b71a75b37a Bug 1068276, part 1 - Allow configuring which type of processes we complain about when there's no leak log. r=jmaher
Then don't warn for missing logs from tab and geckomediaplugin processes, or default processes on B2G.
2014-09-30 14:17:27 -07:00
Andrew McCreight
3a5312793b Bug 1067664, part 1 - Allow different leak thresholds for different types of processes. r=jmaher 2014-09-30 09:54:25 -07:00
Stephen Pohl
f88b557bf2 Mac v2 signing - Bug 1060652 - Make mochitest harness work with the new bundle structure for v2 signatures on OSX. r=jmaher 2014-09-29 11:51:25 -07:00
Bob Owen
e688081dc5 Bug 1067301 - Add mach / mochitest option to run tests with Windows content sandbox. r=jmaher 2014-09-16 08:20:07 +01:00
Dave Townsend
f485086973 Bug 1035512: Add a new common JS testing harness based on the mochitest test runner. r=gps, ted, erikvold, jmaher 2014-09-22 11:08:06 -07:00
Josh Aas
ea42260ec4 Bug 1063318: Switch Chromium IPC code to Mozilla's ref/auto ptr types. Also fix thread safety bug. r=nfroyd 2014-09-19 13:17:17 -05:00
Ryan VanderMeulen
f26329ee78 Bug 1059175 - Bump the B2G leak threshold to 5116 bytes. rs=khuey, a=bustage 2014-08-27 11:34:46 -04:00
Gijs Kruitbosch
860badb714 Bug 1057328 - get gmp path for app-override tests, r=ted
--HG--
extra : rebase_source : 19485859be5c0660d36242e2920fa3d4ca662666
2014-08-22 16:28:04 +02:00
Ben Kelly
8865359e23 Bug 1049801 P1 Increase allowed leak threshold in tests to account for increased MessageChannel size. r=khuey 2014-08-21 14:13:23 -04:00
Ahmed Kachkach
59d9c8247c Bug 1050855 - Remove --log-file and --file-level options. r=ahal 2014-08-15 15:42:00 -04:00
Ryan VanderMeulen
eb9d8f131b Bug 874437 - Increase B2G mochitest leak threshold to 5012 bytes. rs=khuey 2014-08-17 15:09:27 -04:00
Eric Rahm
0537257d45 Bug 1049051 - Part 6: Adjust leak threshold. r=khuey
--HG--
extra : rebase_source : a57e3fa89c2aa84ac0017b4975efc83bd440df9d
2014-08-12 11:44:25 -07:00