Commit Graph
767 Commits
Author SHA1 Message Date
Tom Tromey 1b5a2bdb96 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx
2016-07-14 10:16:42 -06:00
Nicholas Hurley 7335a81927 Bug 1287236 - Use 0 instead of -1 to randomly assign port. r=mcmanus
MozReview-Commit-ID: WkP2s0Pgxc
2016-07-15 14:30:56 -07:00
Andrew Halberstadt ce666fcecd Bug 1278890 - Add xpcshell support to test package mach environment, r=armenzg
This adds the 'xpcshell-test' command to the mach environment found in the test
package. This will allow developers to easily run xpcshell after checking out
and interactive worker.

MozReview-Commit-ID: fBAbfuG5XQ
2016-07-13 10:55:37 -04:00
Geoff Brown cc79a0d31a Bug 1285040 - Adapt device manager pushDir to latest adb; r=bc 2016-07-08 09:20:03 -06:00
Masatoshi Kimura c19f96a26a Bug 1283862 - Update node-spdy to 1.32.5. r=mcmanus
MozReview-Commit-ID: GfAXRxNMslW
2016-07-01 21:52:14 +09:00
Greg Mierzwinski 72206ec001 Bug 1282599 - Pass test path as a string to xpcshell coverage collector. r=chmanchester
The test file path is now recorded by the coverage collector as a string rather than a single element array.

MozReview-Commit-ID: 9qW0tAKmqMS
2016-06-27 18:17:41 -04:00
Greg Mierzwinski 4cc8cf9258 Bug 1278649 - Add code coverage to xpcshell tests. r=chmanchester
This adds the ability to use the command line flag '--jscov-dir-prefix' to collect javascript code coverage from xpcshell tests and output it into the specified directory as a JSON file.

MozReview-Commit-ID: 3MZm73SNChL
2016-06-08 09:41:04 -04:00
Jan Varga e6e5ce2cf2 Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth 2016-06-15 11:49:04 +01:00
Kyle Huey ce5451c01a Bug 1246828 - Part 2: Main changes, quota manager shutdown pushed back to profile-before-change2; r=asuth 2016-06-15 11:48:50 +01:00
Till Schneidereit 4f5be3e505 Bug 911216 - Part 24: Use promise rejection tracking to report unhandled rejections to the console. r=bz,Paolo 2016-03-22 16:22:24 +01: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
Gregory Szorc 2dd9fb2182 Bug 1272851 - Allow temporary directory to be specified to xpcshell test harness; r=ted
A subsequent commit will change where the temporary directory is located
in certain test invocations. To do this, we need to teach the xpcshell
harness to use an alternate temporary directory instead of using the system
default (likely specified from TEMP* environment variables).

MozReview-Commit-ID: IUUlYaLBiEC
2016-05-26 12:09:46 -07:00
Kris Maglione 62ba00e812 Bug 1269501: Part 1 - Add $PYTHON variable to environment for subprocess xpcshell tests. r=glandium
I'm not especially happy with this method, but the DMD tests are the only
other tests I can find doing anything like this, and I don't have a better
solution than doing it the same way.

MozReview-Commit-ID: JlclyKoUhRf
2016-05-08 20:33:36 -07:00
Sebastian Hengst 3344303db0 Backed out 5 changesets (bug 1269501) for failing the added test_subprocess.js on Windows (didn't fold it into the last backout). r=backout
Backed out changeset 3e1d7c5d1a58 (bug 1269501)
Backed out changeset 167e407cb1fc (bug 1269501)
Backed out changeset 6438b11898cf (bug 1269501)
Backed out changeset 1cbbf940ec35 (bug 1269501)
Backed out changeset ed35c5f4d756 (bug 1269501)
2016-05-28 12:38:25 +02:00
Kris Maglione 4976d8b97a Bug 1269501: Part 1 - Add $PYTHON variable to environment for subprocess xpcshell tests. r=glandium
I'm not especially happy with this method, but the DMD tests are the only
other tests I can find doing anything like this, and I don't have a better
solution than doing it the same way.

MozReview-Commit-ID: JlclyKoUhRf
2016-05-08 20:33:36 -07:00
Benjamin Smedberg f66d86d1d7 Bug 1255588 - Disable selftest.py on 10.7 builders (we now only support running 10.9+). r=jmaher. 2016-05-14 14:03:10 +02:00
Patrick McManus 8171d465c3 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer 2016-05-05 17:11:02 -04:00
Wes Kocher f686eb17de Backed out 3 changesets (bug 1267474) foor test_immutable.js failures in xpcshell jobs
Backed out changeset 057f3f50441f (bug 1267474)
Backed out changeset 960d93f30c66 (bug 1267474)
Backed out changeset 0c059a0e87d7 (bug 1267474)
2016-05-11 10:32:33 -07:00
Patrick McManus 711f74e697 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer 2016-05-05 17:11:02 -04:00
Carsten "Tomcat" Book 8168dcdceb Backed out changeset 2ab63d0cea9f (bug 1267474) 2016-05-11 16:10:27 +02:00
Patrick McManus c43ac09486 Bug 1267474 - cache-control: immutable tests 3/3 r=mayhemer 2016-05-05 17:11:02 -04:00
Nathan Froyd 76926a97e5 Bug 1265156 - always pass symbolsPath during xpcshell self tests; r=ted.mielczarek
If we botch things in libxul badly enough that startup cache
precompilation works, but xpcshell self tests fail, it's nice to get
understandable stacks for asserts or crashes inside libxul.
2016-04-18 13:20:35 -04: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
Kit Cambridge 7309d2c6bc Bug 1257821 - Support the new aesgcm content encoding scheme. r=mt
MozReview-Commit-ID: IPNXletzJRK
2016-03-18 09:01:50 -07:00
Cykesiopka 6c90f0c49c Bug 1251011 - Enable ESLint "no-undef" rule for PSM. r=keeler r=mossop
MozReview-Commit-ID: 1lbwWWkJjqq
2016-03-16 16:50:33 -07:00
Ted Mielczarek e44beeede9 bug 1255479 - make mach python-tests use TestResolver for discovery, make mach test work for python tests. r=nalexander
MozReview-Commit-ID: CK2Vh6gdnb0
2016-03-10 12:30:10 -05: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
Nicholas Hurley 03a3a9ee7c Bug 1246761 - Properly handle non-terminal 0-length DATA frames. r=mcmanus 2016-03-01 16:28:39 -08:00
Chris Manchester eac4d59798 Bug 1250961 - Remove one-off rule to re-name master xpcshell manifest and update mozharness consumers. r=gps
MozReview-Commit-ID: B41G5burv9A
2016-02-26 13:20:31 -08:00
Chris Manchester c402222491 Bug 1250961 - Move testing/xpcshell/Makefile.in to moz.build. r=gps
MozReview-Commit-ID: 8J9RzA0RZ0i
2016-02-26 13:20:31 -08:00
Patrick McManus 2b64f578fc Bug 1249379 - H2 Push WindowUpdate not written to network r=hurley 2016-02-18 15:00:46 -05:00
Dave Townsend a8d50e2126 Bug 1245916: Add additional default globals. r=felipe
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d
2016-02-05 12:12:30 -08:00
Phil Ringnalda 3929f085ec Backed out 5 changesets (bug 1245916) for browser-chrome and devtools bustages
CLOSED TREE

Backed out changeset 70eca07367f4 (bug 1245916)
Backed out changeset 04c1740aa499 (bug 1245916)
Backed out changeset b554c7ce41c4 (bug 1245916)
Backed out changeset 01675e4828b5 (bug 1245916)
Backed out changeset 878db4caf845 (bug 1245916)
2016-02-15 13:58:27 -08:00
Dave Townsend a39358efc3 Bug 1245916: Add additional default globals. r=felipe
This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d
2016-02-05 12:12:30 -08:00
Ted Mielczarek ed5c22bc25 bug 1069556 - sync to Breakpad c53ed143108948eb7e2d7ee77dc8c0d92050ce7c. r=glandium, benwa
This commit contains a few things:
* Update our copy of google-breakpad to upstream c53ed143108948eb7e2d7ee77dc8c0d92050ce7c
* Get rid of all but one local patch, fold a few related local patches into one
* Misc build fixup to sync with upstream--adding a few new moz.build files,
  source files
* The final bits of unhooking Breakpad from the profiler:
** Revert to only building toolkit/crashreporter if MOZ_CRASHREPORTER.
** Stop building bits of Breakpad that we only needed for the profiler.
** Remove a few bits of profiler code that were used to interface with Breakpad.
** Remove toolkit/crashreporter/breakpad-logging, which was only used to
   suppress Breakpad logging for the in-process stackwalker.
* Upstream removed their Android-compat sys/ucontext.h because the Android NDK
  added it, but the bionic we're using for Gonk builds is too old, so add a
  copy of the previous version of those files to
  toolkit/crashreporter/gonk-include to keep Gonk building.
* Consolidate moz.build files under toolkit/crashreporter/google-breakpad/client/linux
2016-01-27 09:39:53 -05:00
Patrick McManus 127d3d823f Bug 1241906 - test for suspended spdy3.1 channel r=hurley 2016-02-05 11:17:24 -05:00
Paolo Amadini ed28d1b8f2 Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-02-03 12:58:03 +00:00
Marco Bonardo 85f2ef586c Bug 1244723 - xpcshell should shutdown profile after all the registered cleanup functions, not before them. r=ted 2016-02-03 12:35:07 +01:00
Wes Kocher c8dce5079f Backed out changeset e8148cda7d85 (bug 989960) for xpcshell bustage 2016-02-01 08:25:19 -08:00
Paolo Amadini 743e1ad1ea Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-01-30 18:53:56 +00:00
Phil Ringnalda 2f2864cc29 Back out 3958782fe187 (bug 989960) for Android crashes in test_watchdog_default.js 2016-01-29 20:12:44 -08:00
Paolo Amadini 4aac6813ea Bug 989960 - Unhandled rejections in DOM Promises should cause xpcshell tests to fail. r=Yoric 2016-01-29 13:19:53 +00:00
Nicholas Hurley 13bc702d92 Bug 1242650 - Allow local use of node-http2 from a custom location (instead of in-tree version). r=mcmanus 2016-01-13 12:14:59 -08:00
Andreas Tolfsen a5114bd995 Bug 1240723 - Harmonise xpcshell head- and tail list computation; r=ted.mielczarek
Head- and tail entries in manifest files are not mandatory on
local/desktop xpcshell tests, and they should not be on remote/B2G either.

This change makes remotexpcshelltests and runxpcshelltests agree on how
to get head- and tail files.
2016-01-19 13:48:53 +00:00
Philipp Kewisch 957291e6f5 Bug 1192533 - Allow running only one test via add_task.only() or skipping via add_task.skip(). r=ted 2016-01-10 16:40:12 +01:00
Dave Townsend a37b82025e Bug 1237340: Fix browser and toolkit eslint failures. r=Felipe 2016-01-06 10:10:35 -08:00
Dave Townsend e9644fe0bc Bug 1229142: Add shared eslintrc files for the different test suites. r=Standard8 2015-12-17 15:28:06 -08:00
Geoff Brown 11482f4ec5 Bug 1144393 - Use /storage/sdcard in preference to /sdcard for adb device root and enable test_file_equality.js; r=jmaher 2015-12-21 14:24:08 -07:00
J. Ryan Stinnett 38842662f0 Bug 1231759 - Explain DevTools appdir issue when debugging xpcshell. r=Gijs 2015-12-15 10:14:31 -06:00
Julian Seward c3e7f8c2eb Bug 1222043 - Make "mach xpcshell-test" more TSan-friendly. r=ahalberstadt. 2015-11-25 12:38:20 +01:00