Commit Graph

211 Commits

Author SHA1 Message Date
Geoff Brown
b96201780b Bug 1241907 - Grant runtime permissions before running browser tests; r=jmaher 2016-02-01 15:52:34 -07:00
Geoff Brown
5b39049b84 Bug 1240767 - Handle incorrect test paths in 'mach robocop'; r=jmaher 2016-01-21 16:59:44 -07:00
Simon Gareste
d03ddfa385 Bug 1231806 - Fix abnormal blank lines quantity. r=ted 2015-12-28 03:23:37 -05:00
Simon Gareste
a31a4bcb8a Bug 1231806 - Fix continuation line under-indented for visual indent. r=ted 2015-12-21 14:22:06 -05:00
Simon Gareste
e4de72b111 Bug 1231806 - Useless import. r=ted 2015-12-21 14:21:51 -05:00
Andrew Halberstadt
91a712cc51 Bug 1225903 - Drop support for b2g desktop in mochitest, r=jgriffin
Mochitests on b2g desktop are no longer being run on any trunk branches, including
b2g-inbound. Dropping support for it significantly reduces complexity
in the mochitest harness.
2015-11-18 13:35:38 -05:00
Wes Kocher
c0a054438a Backed out changeset 6ab228593820 (bug 1225903) for android robocop bustage CLOSED TREE 2015-11-19 11:54:17 -08:00
Andrew Halberstadt
d6e9ed3e7f Bug 1225903 - Drop support for b2g desktop in mochitest, r=jgriffin
Mochitests on b2g desktop are no longer being run on any trunk branches, including
b2g-inbound. Dropping support for it significantly reduces complexity
in the mochitest harness.
2015-11-18 13:35:38 -05:00
Nick Alexander
0354170ec8 Bug 938994 - Move build/mobile/robocop into mobile/android/tests/browser/robocop. r=gbrown
This builds the Robocop tests with |mach build mobile/android|, making
it easier for developers to build Fennec and the tests at the same
time.
2015-11-09 12:55:38 -08:00
Edgar Chen
10b301890f Bug 1211407 - Make |mach mochitest| use the adb under out/host/*/bin if no --adbpath specified. r=ahal 2015-10-05 19:11:52 +08:00
Xidorn Quan
db8948e4e1 Bug 1205144 - Remove 'REMOVED' commands from output of mach-commands and mach-debug-commands. r=gps DONTBUILD 2015-09-21 11:32:03 +10:00
Geoff Brown
7168e54593 Bug 1199377 - Fetch host-utils for Android tests when needed; r=jmaher 2015-09-16 16:58:52 -06:00
Geoff Brown
8c4381b5df Bug 1164596 - Add mach android-emulator command; r=ahal 2015-09-01 15:07:53 -06:00
Vaibhav Agrawal
f103ea8e3b Bug 999450 - Add find-test-chunk command in mach to discover the chunk for a mochitest on a platform. r=chmanchester 2015-08-26 16:51:15 -07:00
Andrew Halberstadt
67cec80bd8 Bug 1185761 - [mochitest] Allow boolean values to --keep-open for overriding the default, r=ted
Most of the time the default is to close the browser after tests run. And that can be overridden with
--keep-open. But in some corner cases, the default is to leave the browser open after tests have run.
In these cases, it is not currently possible to override.

This patch allows the syntax --keep-open or --keep-open=false, the latter overrides the edge case
default.
2015-08-06 17:40:54 -04:00
Myk Melez
d63a645223 Bug 1181867 - move -runtime flag to runtests.py so it gets set in automation; r=jland,ahalberstadt 2015-07-20 09:38:49 -07:00
Geoff Brown
149d025aa3 Bug 1179981 - A new test harness for robocop; r=jmaher 2015-07-09 12:30:01 -06:00
Myk Melez
4eb07e7938 Bug 1168737 - specify runtime with command-line arg on Mac for tests; r=jmaher,marco 2015-06-26 09:22:40 -07:00
Gregory Szorc
d993a444fa 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
Andrew Halberstadt
2651e9f398 Bug 1171971 - Move test_paths argument out of mach and into mochitest; remove --test-path, r=chmanchester 2015-06-05 13:28:29 -04:00
Nick Alexander
f72af9b890 Bug 1169476 -- Implement |mach robocop --serve|. r=gbrown
This adds a flag to |mach robocop| that does everything to run a
Robocop test except launch the actual test.  Instead of launching the
test, it starts the mochi.test server and launches Fennec with a test
profile; then it sits and waits forever.

This allows regular Java IDEs (IntelliJ, but previously Eclipse) to
run Robocop tests like regular instrumentation tests, "injecting" them
into the prepared testing environment.  It's quite nice!
2015-05-29 17:18:07 -07:00
Wes Kocher
5fb62f0f26 Merge inbound to central, a=merge 2015-06-02 18:20:12 -07:00
Nick Alexander
dd2910c8c6 Bug 1170332 - Fix |mach robocop SINGLE_TEST|. r=ahal,gbrown
This patch declares robocop.ini an instrumentation manifest.  It's not
currently possible to declare tests that don't correspond to files, so
we include the .java extension.  (This could be revisited.)

In |mach robocop|, we use the generic test resolving infrastructure to
select the 'instrumentation'/'robocop' flavor/subsuite tests.  In
|runtestsremote.py|, we fall back to robocop.ini, as we always have.
2015-06-01 14:45:48 -07:00
Andrew Halberstadt
14d738554b Bug 1122590 - Make |mach mochitest| properly detect devtools tests (and other subsuites), r=chmanchester, DONTBUILD, a=NPOTB 2015-06-02 11:03:55 -04:00
Andrew Halberstadt
b83ddd237a Bug 1164597 - Consolidate all mochitest mach commands into single |mach mochitest|, r=chmanchester 2015-05-05 16:41:59 -04:00
Myk Melez
f93ed67d20 bug 1125394 - launch runtime executable stub from test app bundle on Mac; r=jmaher,marco 2015-05-06 16:27:33 -07:00
Andrew Halberstadt
8162ad7d63 Bug 1155338 - Move mach command arguments into mochitest harness, r=chmanchester,gbrown 2015-04-30 13:47:01 -04:00
Phil Ringnalda
32ac011754 Back out f4f4e2be3765 (bug 1155338) for Android 4.0/debug mochitest bustage
CLOSED TREE
2015-05-04 18:28:16 -07:00
Andrew Halberstadt
8d7332d88e Bug 1155338 - Move mach command arguments into mochitest harness, r=chmanchester,gbrown 2015-04-30 13:47:01 -04:00
Nick Alexander
222b7bbc4a Bug 1160662 - Refer to robocop.ini in $OBJDIR/_tests, not $OBJDIR. r=margaret 2015-05-01 14:51:27 -07:00
Randell Jesup
c061231d6b Bug 1159300: Add a clone of gmp-fake that doesn't do decryption r=glandium,cpearce 2015-04-30 00:52:26 -04:00
Shih-Chiang Chien
22a868fa56 Bug 1158003 - Add command parser for jetpack-addon and jetpack-package. r=ted 2015-04-24 10:33:23 +08:00
Andrew Osmond
1707151f88 Bug 1155919 - Fix how B2G desktop mochitests would fail to run. r=ahalberstadt 2015-04-17 19:19:28 -04:00
Andrew Halberstadt
0d9ffcd73a Bug 1154006 - [mach] Ability to lazy load parsers passed in via the @Command decorator, r=gps 2015-04-13 15:36:56 -04:00
Andrew Halberstadt
fac478791e Bug 1153413 - Add --subsuite option to mochitest mach command, r=jgriffin 2015-04-10 15:31:36 -04:00
Carsten "Tomcat" Book
31b29d3a74 Backed out changeset f3e21cdfa1fc (bug 1153413) for causing regression like Bug 1153851 2015-04-14 09:13:44 +02:00
Mike Conley
10928e993b Bug 1152864 - Disable unsafe CPOW warnings when running mochitests by default, and add option to re-enable. r=ahal.
--enable-cpow-warnings can now be passed when running a mochitest to re-enable the warnings,
should one wish to do that.
2015-04-10 13:45:22 -04:00
Doug Turner
23d909efef Backout of 89534d1eee73. Bug 1153413 - Add --subsuite to mochitest mach command. r=jgriffin. 2015-04-10 23:31:13 -07:00
Doug Turner
62eee8e779 Bug 1153413 - Add --subsuite to mochitest mach command. r=jgriffin 2015-04-10 20:19:29 -07:00
Andrew Halberstadt
cb97410d53 Bug 1153413 - Add --subsuite option to mochitest mach command, r=jgriffin 2015-04-10 15:31:36 -04:00
Geoff Brown
7e6b1552c9 Bug 1120727 - Add mochitest-plain, mochitest-chrome mach commands for Android; r=ahal 2015-04-09 19:11:56 -06:00
Andrew Halberstadt
023256e3eb Bug 1046992 - Consolidate desktop/b2g/b2g desktop mochitest mach commands, r=gbrown 2015-04-08 11:12:52 -04:00
Andrew Halberstadt
0f300312cf Bug 1147129 - upgrade mochitest from optparse to argparse and move android cli to mochitest_options.py, r=chmanchester 2015-03-24 17:42:24 -04:00
Shian-Yow Wu
1b80189e54 Bug 1147307 - Use the target_out value for b2g mach mochitest. r=ahal 2015-04-07 09:43:26 +08: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
Andrew Halberstadt
2e8d5ebe71 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.
2015-03-26 15:21:45 -04:00
Ryan VanderMeulen
beab04f3c0 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
90da2d6c5b 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
Mike Hommey
2e51d2ef87 Bug 1147283 - Replace mozpack.path with mozpath. r=mshal
Back when mozpack.path was added, it was used as:

  import mozpack.path
  mozpack.path.func()

Nowadays, the common idiom is:

  import mozpack.path as mozpath
  mozpath.func()

because it's shorter.

$ git grep mozpath\\. | wc -l
423
$ git grep mozpack.path\\. | wc -l
123

This change was done with:
$ git grep -l mozpack.path\\. | xargs sed -i 's/mozpack\.path\./mozpath./g'
$ git grep -l 'import mozpack.path$' | xargs sed -i 's/import mozpack.path$/\0 as mozpath/'
$ (pat='import mozpack.path as mozpath'; git grep -l "$pat" | xargs sed -i "1,/$pat/b;/$pat/d")
2015-03-27 08:13:16 +09:00
Giovanny Andres Gongora Granada
20ef02cc60 Bug 1126057 - Provide better error when ./mach robocop is run without MOZ_HOST_BIN. r=nalexander
DONTBUILD because NPOTB
2015-02-26 10:28:00 -08:00