Граф коммитов

159 Коммитов

Автор SHA1 Сообщение Дата
Simon Gareste f2c7f460ab Bug 1231806 - Fix abnormal blank lines quantity. r=ted 2015-12-28 03:23:37 -05:00
Simon Gareste c648b1b357 Bug 1231806 - Fix continuation line under-indented for visual indent. r=ted 2015-12-21 14:22:06 -05:00
Simon Gareste 60fb6a6b49 Bug 1231806 - Useless import. r=ted 2015-12-21 14:21:51 -05:00
Andrew Halberstadt 629335ccca 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.

--HG--
extra : commitid : jAe5IJxAQp
extra : rebase_source : 5f163aea70fb99a95667fdafeb7b3361bed1f82d
2015-11-18 13:35:38 -05:00
Wes Kocher 480b4c994e Backed out changeset 6ab228593820 (bug 1225903) for android robocop bustage CLOSED TREE
--HG--
extra : commitid : Jt9KCML2G2Y
2015-11-19 11:54:17 -08:00
Andrew Halberstadt 60681c7eb8 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.

--HG--
extra : commitid : 6wYdpJe0jU0
extra : rebase_source : 69d997a523551210b156e09de339fd6bc8cf2504
extra : amend_source : aed1da36f41210339ab91d53cb34ac2e7b0d770c
2015-11-18 13:35:38 -05:00
Nick Alexander ade40baf2d 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.

--HG--
rename : build/mobile/robocop/AndroidManifest.xml.in => mobile/android/tests/browser/robocop/AndroidManifest.xml.in
rename : build/mobile/robocop/Makefile.in => mobile/android/tests/browser/robocop/Makefile.in
rename : build/mobile/robocop/README => mobile/android/tests/browser/robocop/README
rename : build/mobile/robocop/moz.build => mobile/android/tests/browser/robocop/moz.build
rename : build/mobile/robocop/res/values/strings.xml => mobile/android/tests/browser/robocop/res/values/strings.xml
rename : build/mobile/robocop/robotium-solo-4.3.1.jar => mobile/android/tests/browser/robocop/robotium-solo-4.3.1.jar
extra : commitid : BuNBjgXdm1d
extra : rebase_source : c36b8bf0183d8f5821b7f7839668ca963065d894
extra : histedit_source : a86fef3b834420ea496a9c2644ca72786a2d7da9
2015-11-09 12:55:38 -08:00
Edgar Chen e0ac6671b5 Bug 1211407 - Make |mach mochitest| use the adb under `out/host/*/bin` if no --adbpath specified. r=ahal
--HG--
extra : transplant_source : %E8%EF%D5%B0%BF%EA6%AA%A1Y%07%8C%DC%82%8B%D6%E0%FE%0F%21
2015-10-05 19:11:52 +08:00
Xidorn Quan c13216ec53 Bug 1205144 - Remove 'REMOVED' commands from output of mach-commands and mach-debug-commands. r=gps DONTBUILD
--HG--
extra : source : 7d40827d58f699b57668ad80573e93b3b0a8d0b0
extra : amend_source : 98c5b7adbd1a330528d70a8f41096cd26fe49bdd
2015-09-21 11:32:03 +10:00
Geoff Brown 0fd7fa94c8 Bug 1199377 - Fetch host-utils for Android tests when needed; r=jmaher 2015-09-16 16:58:52 -06:00
Geoff Brown 2015a6ea72 Bug 1164596 - Add mach android-emulator command; r=ahal 2015-09-01 15:07:53 -06:00
Vaibhav Agrawal 1bd565d6df Bug 999450 - Add find-test-chunk command in mach to discover the chunk for a mochitest on a platform. r=chmanchester
--HG--
extra : rebase_source : 1bf71ba005dd9f6d63167b9e6e0f074b1489215c
2015-08-26 16:51:15 -07:00
Andrew Halberstadt e318244a76 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.

--HG--
extra : commitid : 52IHmZFn1uj
extra : rebase_source : 50ce300ccb08f87e5c9337b945d538c0a17ac04d
2015-08-06 17:40:54 -04:00
Myk Melez 64b1765466 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 65e4c8cee0 Bug 1179981 - A new test harness for robocop; r=jmaher 2015-07-09 12:30:01 -06:00
Myk Melez 445032c4c3 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 3e949ee8fe 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.

--HG--
extra : commitid : 6tFME1KKfTD
extra : rebase_source : 78728f82f5487281620e00c2a8004cd5e1968087
2015-06-21 17:39:09 -07:00
Andrew Halberstadt 42888ae5f5 Bug 1171971 - Move test_paths argument out of mach and into mochitest; remove --test-path, r=chmanchester
--HG--
extra : commitid : KbQllMAJdfl
extra : rebase_source : 2069e41c760e4993b1d6d0ddd70799e426a19089
2015-06-05 13:28:29 -04:00
Nick Alexander 97786c5695 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!

--HG--
extra : rebase_source : a5ab08222110a20291aebe70ef1fda0d340dbe7d
extra : source : e91ac9a35f86928fcd519911476ee7d68d06f921
2015-05-29 17:18:07 -07:00
Wes Kocher d80ffbf1c9 Merge inbound to central, a=merge 2015-06-02 18:20:12 -07:00
Nick Alexander 380f58055f 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.

--HG--
extra : rebase_source : b84246ab327c7ec576d82cc4b516e729978600c7
extra : histedit_source : 9b23a6f66e6422e5f334f31cea2a21036be45543
2015-06-01 14:45:48 -07:00
Andrew Halberstadt 66850078f4 Bug 1122590 - Make |mach mochitest| properly detect devtools tests (and other subsuites), r=chmanchester, DONTBUILD, a=NPOTB
--HG--
extra : commitid : F1JLpseHkrE
extra : rebase_source : 95a5f0516e286a1f9752c39ebc23ebb6349b33c6
extra : amend_source : 90c4fe59dc89dfce41d616326ce8e20e44c04e9a
2015-06-02 11:03:55 -04:00
Andrew Halberstadt 7aa80fb529 Bug 1164597 - Consolidate all mochitest mach commands into single |mach mochitest|, r=chmanchester
--HG--
extra : rebase_source : 0a0d8a454df10ae9df9678c98e11b5eaf8249f51
2015-05-05 16:41:59 -04:00
Myk Melez 4a89e36100 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 457f496287 Bug 1155338 - Move mach command arguments into mochitest harness, r=chmanchester,gbrown
--HG--
extra : rebase_source : 60275814c319afd866de426cb8b2937a3adbcb34
extra : source : f4f4e2be37652cb1dc23f066725a0f8868bb411b
2015-04-30 13:47:01 -04:00
Phil Ringnalda c805f510d5 Back out f4f4e2be3765 (bug 1155338) for Android 4.0/debug mochitest bustage
CLOSED TREE
2015-05-04 18:28:16 -07:00
Andrew Halberstadt a0e4007522 Bug 1155338 - Move mach command arguments into mochitest harness, r=chmanchester,gbrown
--HG--
extra : rebase_source : 68cc709ec5a9ab9bec563e555d6fc25cf149dd38
2015-04-30 13:47:01 -04:00
Nick Alexander 8daa51d1dc Bug 1160662 - Refer to robocop.ini in $OBJDIR/_tests, not $OBJDIR. r=margaret
--HG--
extra : rebase_source : 4b2f24feb33db1109d178d833cd59a7b7812167a
2015-05-01 14:51:27 -07:00
Randell Jesup 49c3b667fa Bug 1159300: Add a clone of gmp-fake that doesn't do decryption r=glandium,cpearce
--HG--
rename : dom/media/gmp-plugin/Makefile.in => dom/media/gmp-plugin-openh264/Makefile.in
rename : dom/media/gmp-plugin/fake.info => dom/media/gmp-plugin-openh264/fakeopenh264.info
rename : dom/media/gmp-plugin/fake.voucher => dom/media/gmp-plugin-openh264/fakeopenh264.voucher
rename : dom/media/gmp-plugin/moz.build => dom/media/gmp-plugin-openh264/moz.build
2015-04-30 00:52:26 -04:00
Shih-Chiang Chien 74f007221b Bug 1158003 - Add command parser for jetpack-addon and jetpack-package. r=ted
--HG--
extra : transplant_source : %BD%CD%00%AC8%EC%7E%D8%1F%00%E0%F3%AF%A5%B8b%0Fln%87
2015-04-24 10:33:23 +08:00
Andrew Osmond c2ac43657f Bug 1155919 - Fix how B2G desktop mochitests would fail to run. r=ahalberstadt 2015-04-17 19:19:28 -04:00
Andrew Halberstadt 063752e915 Bug 1154006 - [mach] Ability to lazy load parsers passed in via the @Command decorator, r=gps
--HG--
extra : rebase_source : d596a8c1c5a947de18c8c6bfe1e7642074871fcb
2015-04-13 15:36:56 -04:00
Andrew Halberstadt b6dec03613 Bug 1153413 - Add --subsuite option to mochitest mach command, r=jgriffin
--HG--
extra : rebase_source : 535b0a108de9b517d1b4b3a73275fbacb9e09492
extra : source : f3e21cdfa1fc1488247e27b572825ac63d2ff151
2015-04-10 15:31:36 -04:00
Carsten "Tomcat" Book 6b53afcce7 Backed out changeset f3e21cdfa1fc (bug 1153413) for causing regression like Bug 1153851
--HG--
extra : rebase_source : 8f8d52fe0c3a64403fea0b859fb671066a480e85
2015-04-14 09:13:44 +02:00
Mike Conley 8d20846655 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.

--HG--
extra : rebase_source : 47b51bade91531269a77fec6c2c68fa1b3babf36
2015-04-10 13:45:22 -04:00
Doug Turner 34d64ab610 Backout of 89534d1eee73. Bug 1153413 - Add --subsuite to mochitest mach command. r=jgriffin. 2015-04-10 23:31:13 -07:00
Doug Turner ca1b9b1be1 Bug 1153413 - Add --subsuite to mochitest mach command. r=jgriffin 2015-04-10 20:19:29 -07:00
Andrew Halberstadt 39f12435b3 Bug 1153413 - Add --subsuite option to mochitest mach command, r=jgriffin
--HG--
extra : rebase_source : 02d8c1babf07fb30f26b1d4026ad446bf4094eff
2015-04-10 15:31:36 -04:00
Geoff Brown 1881e1212f Bug 1120727 - Add mochitest-plain, mochitest-chrome mach commands for Android; r=ahal 2015-04-09 19:11:56 -06:00
Andrew Halberstadt 046e79ee98 Bug 1046992 - Consolidate desktop/b2g/b2g desktop mochitest mach commands, r=gbrown
--HG--
extra : rebase_source : 9b9fc8c9fa50530a4bfc574bd0782c2594237474
2015-04-08 11:12:52 -04:00
Andrew Halberstadt 5ffa684d03 Bug 1147129 - upgrade mochitest from optparse to argparse and move android cli to mochitest_options.py, r=chmanchester
--HG--
extra : rebase_source : ce81dffa5feb0be28e30c250eda4ad66cc0cb199
2015-03-24 17:42:24 -04:00
Shian-Yow Wu 3123b97dfb Bug 1147307 - Use the target_out value for b2g mach mochitest. r=ahal 2015-04-07 09:43:26 +08:00
Andrew Halberstadt 056bddce11 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.

--HG--
extra : rebase_source : d75905da1ca021a15a9538117d3866425f73d962
extra : source : 3c34fd480729e3b6684fba747ff61078f672ce16
2015-03-19 16:15:33 -04:00
Andrew Halberstadt 23dabc3c03 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.

--HG--
extra : rebase_source : e6f8327286ee3e69036f7781211f618b870823b5
2015-03-26 15:21:45 -04:00
Ryan VanderMeulen 378481f17f Backed out changesets acbab9e22691 and 3c34fd480729 (bug 987360) for Android/B2G xpcshell bustage.
CLOSED TREE

--HG--
extra : rebase_source : d79b1dcfb12ae8e12efefd7d15b8a2f9f5063377
2015-03-27 13:12:19 -04:00
Andrew Halberstadt e3068d1b6f 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.

--HG--
extra : rebase_source : 68a0931c6a8ee1df4f5c09d67c396490774aa856
2015-03-19 16:15:33 -04:00
Mike Hommey 525ae5030d 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 fa54bb92c1 Bug 1126057 - Provide better error when ./mach robocop is run without MOZ_HOST_BIN. r=nalexander
DONTBUILD because NPOTB

--HG--
extra : amend_source : 3e5b2bac9e07dcc8ecebfdfc45affe455a972bde
2015-02-26 10:28:00 -08:00
Nathan Froyd 8a1a8b06cc Bug 1136700 - enable tweaking of the maximum number of timeouts for mochitests; r=jmaher
When running tests locally, it's occasionally useful to be able to
increase the number of tests permitted to timeout before declaring the
test run a failure.  This patch adds the necessary bits to SimpleTest
and the appropriate amount of plumbing to runtests.py and mach to make
that so.
2015-02-25 09:23:54 -05:00
Andrew Halberstadt 7086f00c8a Bug 1127376 - PEP8-ify all mochitest .py files (auto-generated), r=ted
This change was generated using the `autopep8` module [1]. To replicate:

    $ pip install --upgrade autopep8
    $ cd gecko
    $ autopep8 -i -a -a -r testing/mochitest --exclude 'testing/mochitest/pywebsocket/*'

[1] https://github.com/hhatto/autopep8

--HG--
extra : rebase_source : fb127187cd488b977981338373d66cc8c735214f
2015-02-13 14:42:02 -05:00