Commit Graph

263 Commits

Author SHA1 Message Date
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
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
Geoff Brown
3336b867e0 Bug 1145364 - Use more portable ps command line for orphan cleanup; r=kmoir 2015-03-20 13:50:14 -06:00
Chris Manchester
055be049c9 Bug 1145444 - r=jmaher 2015-03-20 12:30:37 -07:00
Jeff Gilbert
5da1c39c61 Bug 1143218 - Use mochitest subsuites to specify webgl tests. r=jmaher,gbrown 2015-03-18 17:19:22 -07:00
Ehsan Akhgari
f6018e4229 Bug 1145375 - Don't kill the debugger if the user Ctrl-C's as running a mochitest; r=ted 2015-03-19 15:27:00 +01:00
Geoff Brown
09006b9294 Bug 1084614 - Clean up orphan servers before starting mochitests or reftests; r=kmoir 2015-03-19 11:01:01 -06:00
Andrew Halberstadt
2fab7cc39f Bug 1144194 - Only parse test manifests once in mochitest, r=jmaher
--HG--
extra : rebase_source : ab3f5236d002b032744f8821e2cbf060ac2dff18
2015-03-17 16:18:34 -04:00
Joel Maher
e451dbd125 Bug 1143010 - Stopping a mochitest-browser run is rocket science. r=ted 2015-03-16 11:33:35 -04:00
Andrew Halberstadt
4a6ff3aa47 Bug 1131098 - Make mochitest use manifestparser's chunking algorithms and remove JS based ones, r=jmaher
--HG--
extra : rebase_source : 1374462488e20cbd6e2048d8d5c63aff49a87911
2015-03-10 09:55:30 -04:00
Bob Owen
b08af57c17 Bug 1137166: Change the Content moreStrict sandbox pref to an integer to indicate the level of sandboxing. r=tabraldes 2015-03-10 08:03:12 +00: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
Alexandre Lissy
53aebf0b4f Bug 1129173 - Properly detect B2G for workers interface tests. r=bent
Make use of SpecialPowers.isB2G to do the proper detection, and fix
mochitest execution for Mulet to include some B2G-specific prefs.

--HG--
extra : rebase_source : 2683f17794204cdb8b17248c9469f2498085ee81
2015-02-10 06:51:00 +01:00
Joel Maher
2f9ff58439 Bug 1110982 - [backout] tracking bug to get --run-by-dir enabled for 'oth' job on trunk. r=RyanVM 2015-02-10 09:07:32 -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
Joel Maher
97f62104fb Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Dave Townsend
425a83de72 Bug 1083281: Use flags to determine which chrome and about URIs are loaded in the content process. r=mconley, r=bsmedberg, r=jduell, r=mratcliffe
--HG--
extra : rebase_source : beda0088e7715eeb41525b0123f308068745bd80
2015-02-05 08:09:15 -08:00
Patrick McManus
ff5cd770b3 bug 1129146 - Fix Mochitest NSPR logging upload r=ted 2015-02-04 09:58:37 -05:00
Joel Maher
4aaf60ae9d Bug 1041500 - Enable run-by-dir mode for mochitest-devtools. r=RyanVM
CLOSED TREE
2015-01-15 10:00:00 -05: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
Mark Goodwin
3e0221da03 Bug 1096197 - Ensure SSL Error reports work when there is no failed certificate chain. r=keeler
--HG--
rename : browser/base/content/test/general/browser_bug846489.js => browser/base/content/test/general/browser_ssl_error_reports.js
rename : browser/base/content/test/general/browser_bug846489_content.js => browser/base/content/test/general/browser_ssl_error_reports_content.js
2015-01-07 02:28:00 -05:00
Kaustabh Datta Choudhury
1b7e164233 Bug 1115338 - ./mach mochitest-browser path/to/individual/test should always run test (despite skip-if/run-if conditions in manifest). r=jmaher 2015-01-06 01:16:13 +05:30
Chris Manchester
d80693fa32 Bug 1113768 - Stop buffering a test's output after a failure is seen.;r=froydnj 2014-12-26 13:28:50 -05:00
Geoff Brown
75611a763f Bug 797164 - Push chrome files to b2g when needed; r=ahal 2014-12-23 14:17:41 -07:00
Vaibhav Agrawal
6cc2b1a36d Bug 1103159 - Dealing with the error: UnboundLocalError: local variable 'result' referenced before assignment. r=jmaher 2014-12-19 11:58:00 +01:00
Kaustabh Datta Choudhury
d717b20a54 Bug 1112609 - Bisect Chunk does not run. r=jmaher 2014-12-18 11:09:00 -05:00
Ankit Goyal
b1f18c720d Bug 1109867 - Check for debugger before getting debugger info; r=gps 2014-12-17 22:30:50 -08:00
Chris Manchester
19eef4830b Bug 1077870 - Log consistent test names (file paths relative to the srcdir) in mochitest. r=ahal
--HG--
extra : rebase_source : f82fe24e59ec60ded414ec44cec6f4aff95f2f5f
2014-12-15 12:05:55 -05:00
Bob Clary
cf6709f516 Bug 1110940 - mochitest - support configurable tests.json manifest file name, r=jmaher. 2014-12-14 18:18:39 -08:00
Masatoshi Kimura
d0e813632e Bug 1092835 - Workaround for old ssltunnel from hostutils. r=jmaher 2014-12-13 20:09:00 +09: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
Geoff Brown
74313d0f7e Bug 1026290 - Push chrome test files to device; r=jmaher 2014-11-26 16:51:14 -07:00
Geoff Brown
4299cfd502 Bug 1026290: Do not filter logFile parameter from testConfig.js; r=chmanchester 2014-11-26 16:51:13 -07:00
Masatoshi Kimura
c8b6471be5 Bug 1100917 - Add config options for SSL3/RC4 only servers to ssltunnel. r=ted 2014-11-26 20:37:18 +09:00
Geoff Brown
e51ad6d0e1 backout bde6ca1bff09 (bug 1026290) for maybe breaking robocop 2014-11-25 23:18:14 -07:00
Geoff Brown
3ae9830ca4 backout 272443dba538 (bug 1026290) for maybe breaking robocop 2014-11-25 23:18:12 -07:00
Geoff Brown
859be1ac2b Bug 1026290 - Push chrome test files to device; r=jmaher 2014-11-25 17:31:45 -07:00
Geoff Brown
043f471456 Bug 1026290 - Do not filter logFile parameter from testConfig.js; r=chmanchester 2014-11-25 17:31:44 -07:00
Carsten "Tomcat" Book
a1e2258ca2 Backed out changeset 188d22215166 (bug 1057512) for causing dt2 memory leaks 2014-11-21 08:10:06 +01:00
Carsten "Tomcat" Book
cc456c56ea Backed out changeset 34594cb8b2e4 (bug 1057512) 2014-11-21 08:09:44 +01:00
Joel Maher
4fd81c101e Bug 1057512 - hotfix - disable m-e10s(dt) run-by-dir as it fails. r=dminor 2014-11-20 09:35:43 -05:00