Commit Graph

36 Commits

Author SHA1 Message Date
Andrew McCreight
63f07b1a1d Bug 1100695 - Wait for child to finish in test_child_assert XPCShell unit test. r=chmanchester 2014-11-24 11:34:03 -08:00
Chris Manchester
e5860b603c Bug 1098121 - Disable xpcshell selftest for timeouts due to intermittent timeouts. r=ted 2014-11-13 12:15:41 -05:00
Chris Manchester
cd598e3edf Bug 1093834 - Ensure _TEST_NAME is passed to the child process in xpcshell's head.js. r=ted 2014-11-04 20:02:13 -05:00
Chris Manchester
955d7f2456 Bug 1033126 - Convert xpcshell tests to use mozlog.structured format for logging.;r=ted 2014-10-22 15:53:42 -04:00
Stephen Pohl
cf2ca1fd7c Mac v2 signing - Bug 1060562 - Update xpcshell-tests for the new v2 bundle structure on OSX. r=jmaher 2014-09-29 11:51:29 -07:00
Mike Shal
36ac1c9669 Bug 1036557 - Fix 'make check' with no MOZ_OBJDIR; r=glandium 2014-07-07 19:55:51 -04:00
Chris Manchester
f367a664b7 Bug 1036639 - Report correct filename from xpcshell/head.js when using do_check_* assertion functions.;r=gps 2014-07-09 20:24:59 -04:00
Chris Manchester
94715bbaf3 Backed out changeset c33ec815962f (bug 1036639) for windows checktest failures. 2014-07-09 21:51:07 -04:00
Chris Manchester
cb2c38a0da Bug 1036639 - Report correct filename from xpcshell/head.js when using do_check_* assertion functions.;r=gps 2014-07-09 20:39:18 -04:00
Mike Hommey
6f03a33e5f Bug 762358 - Re-run configure when mozconfig changed in a significant way. r=gps
This adds a format option to mach environment and uses it in client.mk to
create a .mozconfig.json in the objdir, containing all the relevant data
from mozconfig. If the mozconfig doesn't change in a way that alters that
data, we still skip configure.

At the same time, use mach environment in place of mozconfig2configure and
mozconfig2client-mk, which makes us now have only one mozconfig reader.

Also, in the mozconfig reader, keep track of environment variables (as
opposed to shell variables), so that changes such as a variable that was
exported not being exported anymore is spotted. At the opposite, in order
for irrelevant environment variable changes not to incur in re-running
configure, only a set of environment variables are stored when they are
unmodified. Otherwise, changes such as using a different terminal window,
or even rebooting, would trigger reconfigures.

Finally, make mach environment emit both MOZ_OBJDIR and OBJDIR for
client.mk, and cleanup some objdir-related things in client.mk..
At the same time, make the mozconfig reader take MOZ_OBJDIR from the
environment if it is defined there and not in the mozconfig.
2014-07-03 07:15:31 +09:00
David Rajchenbach-Teller
a82c78cd53 Bug 1023787 - Make Task.jsm stack rewriting play nicely with xpcshell and mochi tests. r=paolo, r=mikedeboer 2014-06-20 14:23:00 -04:00
Paolo Amadini
4abdff9652 Bug 991750 - Convert remaining legacy uses of promise.js to Promise.jsm. rs=Yoric 2014-04-07 16:18:43 +02:00
Ted Mielczarek
bfdc430b35 bug 990266 - use mozinfo in xpcshell selftests r=jmaher 2014-04-01 16:02:58 -04:00
David Rajchenbach-Teller
69c5551bb6 Bug 988844 - do_register_cleanup now accepts asynchronous cleanup functions. r=ted 2014-03-31 04:36:00 +02:00
Gregory Szorc
1290f96f1d Bug 972093 - Detect run_next_test() during add_task(); r=ted, rnewman
If an xpcshell test called run_next_test() from inside an add_task(),
bad things would happen. This patch detects that behavior and aborts the
test immediately with an actionable error message.

--HG--
extra : rebase_source : c5cf11070421b95a6fcf476d0a86289a3d0ba73a
extra : amend_source : cec6ad2a751bba01e7d4ecbff0735b39e3326efb
2014-02-12 16:47:29 -08:00
Mark Hammond
f6dafe7159 Bug 937370 - Errors loading xpcshell test file may be silently discarded. r=ted 2013-11-22 17:36:16 +11:00
Mark Hammond
23910f3136 Bug 937412 - Syntax errors in xpcshell tests don't report the error. r=ted 2013-11-22 17:32:28 +11:00
Chris Manchester
9f01c22529 Bug 896087 - Output structured messages in head.js, interpret them in runxpcshelltests.py; r=ted 2013-07-22 19:44:25 -07:00
Chris Manchester
750b9ec3a8 Bug 896087 - self tests exercising behavior of current log parsing; r=ted 2013-07-19 16:20:07 -07:00
Ryan VanderMeulen
057345a284 Backed out changesets 57fc6c256d1f and a6bb570b7f41 (bug 896087) checktest failures on a CLOSED TREE. 2013-08-22 15:55:54 -04:00
Chris Manchester
3247d8636a Bug 896087 - Output structured messages in head.js, interpret them in runxpcshelltests.py. r=ted 2013-07-22 19:44:25 -07:00
Chris Manchester
f425ae80f4 Bug 896087 - Self tests exercising behavior of current log parsing. r=ted 2013-07-19 16:20:07 -07:00
Mihnea Dobrescu-Balaur
d165ac6453 Bug 887054 - Part 1: Refactor xpcshell test harness to support parallel test runs, disabled in automation. r=ahal, r=ted 2013-07-19 19:27:14 -07:00
Irving Reid
32ae0a0fa5 Bug 890555 - Handle case of non-Object argument to do_throw; r=ted 2013-07-13 12:37:13 -04:00
Dave Townsend
f1c830614d Bug 793928: Switch users of the promise library to the new location and move tests files. r=gavin
--HG--
rename : toolkit/addon-sdk/test/Makefile.in => addon-sdk/test/Makefile.in
rename : toolkit/addon-sdk/test/unit/head.js => addon-sdk/test/unit/head.js
rename : toolkit/addon-sdk/test/unit/test_promise.js => addon-sdk/test/unit/test_promise.js
rename : toolkit/addon-sdk/test/unit/xpcshell.ini => addon-sdk/test/unit/xpcshell.ini
2013-02-01 11:43:15 -08:00
Gregory Szorc
53c9d7b883 Bug 819033 - Part 1: Add add_task() to xpcshell runner; r=ted
You can now register generator functions containing Task.spawn friendly
tests. This makes writing unit tests for promise-based APIs much easier.
2012-12-11 10:53:43 -08:00
Ed Morley
58f66d8a75 Backout fac650c31656 & 907a846d368f (bug 819033) for xpcshell failures 2012-12-11 20:29:18 +00:00
Gregory Szorc
873700931f Bug 819033 - Part 1: Add add_task() to xpcshell runner; r=ted
You can now register generator functions containing Task.spawn friendly
tests. This makes writing unit tests for promise-based APIs much easier.
2012-12-11 10:53:43 -08:00
Gregory Szorc
578f9dac0c Bug 739753 - Fatal handling of invalid head and tail files in xpcshell test runner; r=ted 2012-03-28 16:05:22 -07:00
Gregory Szorc
ac51fe48dd Bug 729098 - Part 1.01/2 - Fix xpcshell test bustage; r=bustage 2012-03-06 16:27:22 -08:00
Gregory Szorc
af3dc56638 Bug 725478 - Support for generating xUnit result files from xpcshell tests; r=Waldo 2012-02-27 19:53:00 -08:00
Ed Morley
a8d3db6428 Backout 88d02a07d390, 5f903f5a84a8 & 3539be41fa6b (bug 725478) for make-check failures 2012-02-28 01:04:35 +00:00
Gregory Szorc
c467432e87 Bug 725478 - Ability to produce xUnit XML result files from xpcshell test Python driver; r=Waldo 2012-02-27 14:58:04 -08:00
Gregory Szorc
96dde74717 Bug 725510 - Ability to execute xpcshell tests in random order; r=ted 2012-02-14 11:49:55 -08:00
Ted Mielczarek
34678b1150 bug 664197 - bustage fix, make xpcshell selftest work with Python 2.5 2011-06-28 09:52:17 -04:00
Ted Mielczarek
62b37a06ef bug 664197 - integrate mozinfo + ManifestDestiny update into xpcshell harness. r=jmaher
--HG--
extra : rebase_source : 1783e1a39d592defa279488f0cd0266311ed35ea
2011-06-21 08:12:40 -04:00