Commit Graph

115 Commits

Author SHA1 Message Date
Geoff Brown
2700dbe863 Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00
Andrew Halberstadt
c5a4e3ad44 Bug 1470266 - [ci] Schedule serviceworker-e10s xpcshell tasks with linux64/debug on mozilla-central, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D11380
2018-11-08 22:08:16 +00:00
Andrew Halberstadt
2157e8eb72 Bug 1460914 - [xpcshell] Add --setpref to the command line, r=ted
Depends on D9796

Differential Revision: https://phabricator.services.mozilla.com/D9797
2018-11-08 14:50:32 +00:00
Andrew Halberstadt
e16b8b30c7 Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

Differential Revision: https://phabricator.services.mozilla.com/D9716
2018-10-26 17:46:03 +00:00
arthur.iakab
0043db55af Backed out 2 changesets (bug 1460914)for multiple failures on profile_data/base "CLOSED TREE"
Backed out changeset a2161aab4e4e (bug 1460914)
Backed out changeset 9e438c55a248 (bug 1460914)
2018-10-26 19:42:33 +03:00
Andrew Halberstadt
11786b0c1b Bug 1460914 - [xpcshell] Use nsIPrefService.readUserPrefsFromFile to set prefs, r=ted
This uses nsIPrefService.readUserPrefsFromFile to set preferences from a
user.js passed in via the python harness. This allows us to use the profiles
under testing/profiles like all the other harnesses and will make setting prefs
in xpcshell easier to use and understand.

Differential Revision: https://phabricator.services.mozilla.com/D9716
2018-10-25 15:22:44 +00:00
Mike Hommey
874f9e7a74 Bug 1499915 - Use elfhack from the build for Android xpcshell tests r=froydnj
Android xpcshell tests run `elfhack -r`, and do so by using an
elfhack binary from an archive downloaded via tooltool (which contains
other things).

Instead, we just put the elfhack binary in the
target.common.tests.tar.gz archive, and make the xpcshell harness
use it from there instead, allowing to pick in-tree changes to elfhack.

Depends on D9623

Differential Revision: https://phabricator.services.mozilla.com/D9624
2018-10-24 13:45:50 +00:00
Andrew Halberstadt
bd31dd1c88 Bug 1460914 - [xpcshell] Cleanup code to build the xpcshell command, r=ted
The current command line building is hard to follow and make sense of. Let's
just use a single command variable and comment the order it needs.

Depends on D9549

Differential Revision: https://phabricator.services.mozilla.com/D9550
2018-10-24 13:56:57 +00:00
Chris AtLee
2873f87ade Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-08-01 16:00:03 +00:00
Bob Clary
ac659623ea Bug 1477807 - Distinguish ADBTimeoutErrors from other exceptions in Android remote tests, r=gbrown. 2018-07-27 08:27:16 -07:00
Bogdan Tara
8245a830c3 Backed out changeset 9c75cab2e322 (bug 733530) for breaking artifact builds 2018-07-04 14:50:22 +03:00
Chris AtLee
49625724f4 Bug 733530: Use .tar.gz for test archives r=gps
Differential Revision: https://phabricator.services.mozilla.com/D1743
2018-07-03 18:33:02 +00:00
Geoff Brown
e85432de3f Bug 1454404 - Pass adb path from Android mach commands to test harnesses; r=jmaher 2018-04-16 14:05:32 -06:00
Bob Clary
2fd4c0f88f Bug 1440714 - update remotexpcshelltests.py to support hardware, r=gbrown
- eliminate XPXShellRemote.remoteClearDirScript in favor of adb.py rm/mkdir
- add root=True to several calls
2018-04-10 23:12:29 -07:00
Bob Clary
649179be4f Bug 1440714 - make sure to use root=True with chmod /sdcard/tests/, r=gbrown. 2018-04-10 23:12:28 -07:00
Geoff Brown
aa64888f38 Bug 1389805 - Apply elfhack -r to Android xpcshell libs; r=jmaher 2018-04-10 11:14:16 -06:00
Andrew McCreight
0203f28a01 Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3
2018-03-05 14:27:29 -08:00
Geoff Brown
875a118aab Bug 1440714 - Convert Android browser test harnesses to adb.py; r=bc
This affects Android robocop, mochitest (all flavors) and reftests (all flavors).
2018-03-23 18:06:27 -06:00
Geoff Brown
38999e8e4d Bug 1440714 - Convert Android xpcshell test harness to adb.py; r=bc 2018-03-17 09:28:23 -06:00
Geoff Brown
daefe731cd Bug 1430176 - Do not try to force-stop native android processes like xpcshell; r=jmaher 2018-01-12 14:08:31 -07:00
J.C. Jones
50ba3c2a6a Bug 1409259 - Add xpcshell tests for the Symantec distrust r=keeler
This commit adds two new xpcshell tests, both of them testing whether the
security state in TransportSecurityInfo includes the new
STATE_CERT_DISTRUST_IMMINENT flag under the correct circumstances.

The first test, test_symantec_apple_google.js, tests the four combinations of
certs that chain to an affected Symantec root: with/without a whitelisted
intermediate, and before/after the notBefore cutoff date.

The second test, test_symantec_apple_google_unaffected.js, tests an unrelated
ca->intermediate->ee chain that does not chain to an affected root, and ensures
the flag is not set.

This patch adds SymantecSanctionsServer to the mozbuild and xpcshell test
infrastructure files to ensure it runs properly on TaskCluster, too.

MozReview-Commit-ID: GtUXH2VFFh
2017-11-01 11:12:11 -07:00
Geoff Brown
516cf268bd Bug 1410714 - Follow-up to fix some minor python lint problems 2017-10-24 15:41:39 -06:00
Geoff Brown
3bdc012091 Bug 1410714 - Help mach tests find adb when running Android tests; r=jmaher 2017-10-24 15:17:25 -06:00
Steve Armand
7d1ce50630 Bug 1397852 - Enable flake8 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CvZVXQPx8jF
2017-09-14 09:51:27 -04:00
Steve Armand
07ba3db5a9 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J
2017-09-07 21:15:35 -04:00
Sebastian Hengst
ee91a101d1 Backed out changeset ec61b7a902c2 (bug 1397855) for XPCshell bustage, at least on Android. r=backout on a CLOSED TREE 2017-09-12 21:42:12 +02:00
Steve Armand
fdf89b0329 Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J
2017-09-07 21:15:35 -04:00
Geoff Brown
08ed85d0c4 Bug 1390599 - 3. Add --verify and --verify-max-time options to xpcshell test harness; r=jmaher
This adds test verification support to the xpcshell test harness. With --verify,
the specified test(s) are run 20 times, then another 20 times in chaos mode.

Tests are run sequentially. I have some interest in running in parallel also,
but this may not be practical: 1. Under normal circumstances, a test does not
run in parallel with itself, so it is arguably an unrealistic mode of operation;
2. Logging fails if it sees a test start after a test with the same name has completed.
2017-08-16 06:55:55 -06:00
Geoff Brown
76461d9283 Bug 1390599 - 1. Simplify argument passing in xpcshell test harness; r=jmaher
The complexity of the xpcshell test harness has grown over time. I am reluctant
to make it more complex without first trying to simplify it. Here I consolidate
some of the argument passing between functions in an attempt to simplify some
important interfaces. Changes are strictly structural and should result in no
change in behavior.
2017-08-15 09:06:16 -06:00
Geoff Brown
eefd2fe813 Bug 1355222 - When debug logging requested for android mach test commands, enable devicemanager logging; r=jmaher 2017-04-11 09:21:37 -06:00
Geoff Brown
b72a74a2a6 Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
Mark Banner
ee78c2e613 Bug 503613 - Remove the tail file functionality from xpcshell; r=gps
MozReview-Commit-ID: JcglhFl89DX
2017-01-17 15:27:55 +00:00
Eugen Sawin
26593fd923 Bug 1307886 - [3.2] Extract xz-compressed libs for xpcshell and unit tests. r=glandium 2016-10-28 12:59:23 +02:00
Eugen Sawin
f561409ffe Bug 1307886 - [1.2] Remove szip support. r=glandium 2016-10-28 12:59:23 +02:00
Wes Kocher
821d0c747f Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change
2016-08-16 22:07:30 -07:00
Geoff Brown
38d83f2d0d Bug 1293309 - Improve error handling for Android xpcshell minidump clear; r=jmaher 2016-08-15 18:49:00 -06:00
Rob Wu
72326b1a05 Bug 1295323 - s/CalledProcessError/subprocess.CalledProcessError/ r=dminor
MozReview-Commit-ID: IxtsQCQbAE2
2016-08-01 19:01:12 -07:00
Geoff Brown
cc79a0d31a Bug 1285040 - Adapt device manager pushDir to latest adb; r=bc 2016-07-08 09:20:03 -06: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
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
James Graham
8ee5cf605c Bug 1207747 - Ensure that logging command line options are always available when running xpcshell tests, r=chmanchester 2015-10-08 10:28:15 +01:00
James Graham
2e444ca098 Bug 1193257 - Make xpcshell harness command line arguments path filters for tests, r=ahal 2015-09-17 10:51:02 +01:00
Geoff Brown
039add5cb7 Bug 1202102 - Apply szip to libs pushed for Android cppunit and xpcshell tests; r=dminor 2015-09-09 07:12:58 -06:00
Hiroyuki Ikezoe
ef939ac4ca Bug 1150818 - Part 2: Load mozinfo.json into xpcshell tests. r=ted 2015-08-20 16:06:00 -04:00
David Keeler
c31ac3c1fe bug 1188100 - fold PSM's test_client_cert.js into necko's test_tls_server.js r=mcmanus 2015-07-29 14:27:54 -07:00
Andrew Halberstadt
5c1241cd79 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
Andrew Halberstadt
baf7554392 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
Geoff Brown
87815c59ec Bug 1130187 - Optimize devicemanager calls during remote xpcshell tests; r=bc 2015-02-12 16:48:41 -07:00
Geoff Brown
ffd6d5ea5e Bug 1128745 - Avoid 'no attribute' error on remote xpcshell timeout; r=jmaher 2015-02-12 16:48:40 -07:00
Geoff Brown
e7e7aea36f Bug 1127928 - Increase pushDir timeout for xpcshell tests directory to 600 seconds; r=wlach 2015-01-30 15:23:41 -07:00