Commit Graph

673 Commits

Author SHA1 Message Date
Andrew Halberstadt
b86f120e23 Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.
2015-07-16 10:38:40 -04:00
Gregory Szorc
3e56f45d4a 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
0d16ec0cfa 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
Michael Layzell
e02d801199 Bug 1173503 - Make do_check_true output include the passed message in xpcshell unit tests r=ted 2015-06-19 14:27:37 -07:00
Alessio Placitelli
1368c560b4 Bug 1169159 - Make xpcshells run_test_in_child() and do_await_remote_message() return promises. r=ted,gfritzsche 2015-06-03 04:41:00 +02:00
Chris Manchester
06327e9f77 Bug 487494 - Pipe xpcshell's output through a stack fixer.;r=ted 2015-06-11 11:21:13 -07:00
Chris Manchester
8caadaa079 Bug 487494 - Add an xpcshell selftest for readable stacks from assertions.;r=ted 2015-06-11 11:21:12 -07:00
James Graham
1a0e2ec7c5 Bug 1171849 Let consumers override mozlog default formatter options, r=chmanchester 2015-06-05 17:48:06 +01:00
Dragana Damjanovic
948ce734d4 Bug 1150812 - xcpshell test for PushService with http2. r=nsm, r=mt 2015-06-02 07:16:00 -04:00
Robert Strong
b7d32ae1fb Bug 1169729 - Add prefixes to the mkdtemp calls in runxpcshelltests.py so it is easy to determine the directories that cause 'INFO Failed to remove directory' messages. r=ted 2015-06-01 11:52:21 -07:00
Patrick McManus
3d4ef7b203 Bug 1159944 - more alt-svc tests r=hurley 2015-04-30 20:53:20 -04:00
Chris Manchester
41aeed9bbc 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
ziyunfei
ec33d43a0e Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Hiroyuki Ikezoe
3f33560589 Bug 1150822 - Need ability to skip each test on a given conditions. r=ted 2015-04-27 20:39:00 +02:00
Georg Fritzsche
e0f4fe4bfa Bug 885389 - Add test coverage for do_get_profile() observer notifications. r=ted 2015-04-21 16:30:37 +02:00
Georg Fritzsche
650be0d87f Bug 885389 - Make do_get_profile() optionally fire profile-after-change on completion. r=ted 2015-04-21 16:30:36 +02:00
Georg Fritzsche
3fbd9dd792 Bug 1150134 - Part 3: Avoid hitting the network from Telemetry for xpcshell tests. r=yoric 2015-04-14 16:49:57 +02:00
Wes Kocher
5e50dfb256 Merge inbound to m-c a=merge 2015-04-13 17:13:10 -07:00
Carsten "Tomcat" Book
237a9b9d67 Merge mozilla-central to fx-team 2015-04-13 12:10:00 +02:00
Mark Hammond
3a7e7fa5ef Bug 1074014 - allow verbose=true in xpcshell test manifests. r=ted 2015-04-13 10:32:55 +10:00
Ehsan Akhgari
26dfbb3db8 Bug 952211 follow-up: Only access path if debuggerInfo is set
Landed on a CLOSED TREE as bustage fix
2015-04-10 14:45:52 -04:00
Krishnashish Gogoi
f63c63c7d5 Bug 982852 - Added a test case for checking multiple add_task() tests without run_test(); r=gps
There's a test for add_task() in selftest.py called ADD_TASK_MULTIPLE, which tests if
multiple add_task() tests are working. The test added in this commit does the exact same
except without run_test(). Since the original tests included this, I thought it would make
a good case for checking if the removal of run_test() is working as expected. Please remove
if this is unnecessary.
2015-04-03 02:24:24 +05:30
Krishnashish Gogoi
d8ab414b06 Bug 982852 - Add failing cases to selftest.py when run_test() is not present; r=gps
Since the simple test cases before this bug had cases for both passing and
failing, it would be a good idea to follow suit and add similar failing tests
for when run_test() is omitted.

Like the other simple tests defined in selftest.py, SIMPLE_FAILING_TEST,
ADD_TEST_FAILING, etc., it follows a similar pattern except these are done
without run_test() defined.
2015-04-03 02:12:30 +05:30
Krishnashish Gogoi
557b07494f Bug 982852 - Add cases to check that tests without run_test() work; r=gps
Four new test cases have been added to testing/xpcshell/selftest.py.
These new tests check that tests where run_test() is not defined
work properly.

The test cases check the following cases:
1. when only add_test() is used.
2. when only add_task() is used.
3. when both add_task() and add_test() is used.
4. when a test file is empty, i.e. contains no add_test(), add_task() or
  run_test().

Test bodies only consist of do_check_true(true) calls to make up a minimal
test without run_test() in the same vein as the other simple tests defined
previously.

Also, broke a comment up that was too long.
2015-04-03 01:43:54 +05:30
Krishnashish Gogoi
cde312c042 Bug 982852 - Make run_test() in xpcshell-tests optional; r=gps
As referenced in Bug 982852, this fix makes run_tests() optional.
Test cases can now consist of add_test() and add_task() calls
without the need to exclusively set up a run_test() just to call
run_next_test() inside it. If run_test() however is defined, it
will be called directly as usual, which should keep all older
tests working without breaking.

Since most run_test() calls right now are mostly boilerplate and
usually are of the form -- function run_test(){run_next_test();} --
this fix checks if run_test is defined by using the typeof operator
which should evaluate to "function" if it is defined. If defined,
it is called straight away, otherwise, run_next_test() is called,
which is what run_test() usually does when used as a set up to
call tests registered by add_test() and add_task().
2015-04-02 22:32:18 +05:30
Brian Grinstead
d596b0b784 Bug 1148996 - Remove selected lightweight theme for mochitest and xpcshell tests;r=jmaher
This is for aurora (dev edition) compatibility.  In this channel, there is a
selected lightweight theme by default.  Tests don't expect this to be the case
so this simply resets the relevant prefs for mochitests and xpcshell tests.
2015-03-31 20:01:04 -07:00
Ted Mielczarek
c4be9315ba bug 1151407 - Remove _HTTPD_JS_PATH from xpcshell test harness. r=jmaher
Only the httpd.js unit tests actually rely on this. I tried to make them use Cu.import but they also rely on poking a bunch of stuff in httpd.js that's not exported, so instead I just made the test manifest copy httpd.js to the test directory and had them load it from there.
2015-04-03 08:20:32 -04:00
Ehsan Akhgari
f6f67d7364 Bug 952211 - Print a warning about using 'run' when debugging an xpcshell test using lldb; r=froydnj 2015-04-10 14:16:10 -04:00
Andrew Halberstadt
be7dbc01a9 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
97dfa3b8cd 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
8677ede183 Bug 987360 - Fix b2g/android xpcshell bustage, r=bustage 2015-03-27 12:17:00 -04:00
Andrew Halberstadt
c14b32c6f1 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
Eddy Bruël
80822e9673 Bug 1141507 - Some preliminary refactors;r=jlong 2015-03-26 20:15:36 +01:00
Andrew Halberstadt
900e8a8353 Bug 1146871 - Make xpcshell use manifestparser's chunking algorithm, r=jmaher 2015-03-24 09:21:11 -04:00
Eddy Bruël
0f9592a7f1 Bug 1131646 - Clean up the breakpoint code;r=jlongster 2015-03-11 15:15:40 +01:00
Alexandre Poirot
c1e50a4ce5 Bug 1059308 - Fix tests to support chrome actor. r=jryans 2015-02-26 03:56:00 +01:00
Szu-Yu Chen [:aknow]
d9a1bc84d1 Bug 1133649 - Add an always true condition for xpcshell-test. r=gps 2015-03-05 18:00:23 +08:00
Nicholas Hurley
ea9e2d9568 Bug 1136361 - update node-http2 on ci. rs=mcmanus 2015-02-26 11:00:38 -08:00
Alessio Placitelli
2ad3e0505d Bug 1111022 - Tests for the SelfSupport backend. r=gfritzsche 2015-01-09 11:18:00 +01:00
Geoff Brown
a58cef4e0a Bug 1130187 - Optimize devicemanager calls during remote xpcshell tests; r=bc 2015-02-12 16:48:41 -07:00
Geoff Brown
fd286f2993 Bug 1128745 - Avoid 'no attribute' error on remote xpcshell timeout; r=jmaher 2015-02-12 16:48:40 -07:00
Patrick McManus
3e65150607 bug 1130874 - test for alt-svc -06 h2 extension r=hurley 2015-02-08 09:11:22 -05:00
Patrick McManus
207cf8c7c4 bug 1130874 - h2 test server altsvc 06 r=hurley
This only updates node-http2 for mozilla's CI needs by supporting
sending of the AltSvc frame (-06). It does not implement receiving or
the node internal tests.
2015-02-08 09:00:39 -05:00
Chris Peterson
205bec3379 Bug 1129336 - Remove nonstandard let blocks from testing/xpcshell. r=chmanchester 2015-01-24 23:34:40 -08:00
Patrick McManus
afd9154e09 bug 1102923 - test_spdy backend separate push body and err handlers r=test-only 2015-02-05 20:44:25 -05:00
Patrick McManus
0414009c01 bug 1102923 - give spdy push test an error handler r=test-only 2015-02-05 12:41:26 -05:00
Chris Manchester
8030146bf1 Bug 1128584 - Only log valid status values when processing errors in xpcshell's head.js;r=ted 2015-02-02 13:32:49 -05:00
Eddy Bruël
a7f8fdc854 Bug 1126193 - setBreakpoint should not take a full location;r=fitzgen 2015-02-04 07:42:33 +01:00
Patrick McManus
31eca0ff6f bug 1128038 - h2 DAV methods set end_stream bit twice r=hurley 2015-02-02 13:42:23 -05:00
Nicholas Hurley
93cfc8a713 Bug 958712 part 3/3 - CONTINUATION tests r=mcmanus 2015-01-30 11:13:31 -08:00