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

29 Коммитов

Автор SHA1 Сообщение Дата
jbudorick@chromium.org 13b8cb19e8 [Android] Change object types from AndroidCommands to DeviceUtils in build/android/.
BUG=267773

Review URL: https://codereview.chromium.org/221823011

git-svn-id: http://src.chromium.org/svn/trunk/src/build@263055 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-10 19:37:30 +00:00
jbudorick@chromium.org 9763b9f4f2 [Android] Lint pylib/base.
BUG=168518

Review URL: https://codereview.chromium.org/156603003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250545 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 23:21:15 +00:00
jbudorick@chromium.org 41ed360447 Revert of Enable presubmit pylint in build/android. (https://codereview.chromium.org/132463007/)
Reason for revert:
This patch is probably the cause of crbug.com/342539.

Original issue's description:
> Enable presubmit pylint in build/android.
> 
> BUG=168518
> 
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249793

TBR=craigdh@chromium.org,frankf@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=168518

Review URL: https://codereview.chromium.org/153743008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@250269 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-11 01:47:41 +00:00
jbudorick@chromium.org 3d8bcfb710 Enable presubmit pylint in build/android.
BUG=168518

Review URL: https://codereview.chromium.org/132463007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@249793 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-02-07 21:34:23 +00:00
craigdh@chromium.org 436edf51e9 [android] Relands: Adds constants.GetBuildDirectory() and converts test scripts to use it.
BUG=260494
TEST=None
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/23494039

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-10 18:29:03 +00:00
johnme@chromium.org 802e2f3b10 Revert 221736 "[android] Adds constants.GetOutDirectory() and co..."
Consistently causing WebKit Android (Nexus4) to fail provision_devices.

> [android] Adds constants.GetOutDirectory() and converts test scripts to use it.
> 
> BUG=260494
> TEST=None
> NOTRY=True
> 
> Review URL: https://chromiumcodereview.appspot.com/22903016

TBR=craigdh@chromium.org

Review URL: https://codereview.chromium.org/23926012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@222008 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-09 11:36:03 +00:00
craigdh@chromium.org babb42acc8 [android] Adds constants.GetOutDirectory() and converts test scripts to use it.
BUG=260494
TEST=None
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/22903016

git-svn-id: http://src.chromium.org/svn/trunk/src/build@221736 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-09-06 18:11:02 +00:00
craigdh@chromium.org d8f39fa1b7 [android] Update FlagChanger to work with additional apks.
BUG=277715
TEST=None
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/23467004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@220313 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-29 16:26:02 +00:00
craigdh@chromium.org 9c2576b64c [android] Make build_type a singleton.
BUG=260494
TEST=None
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/22933005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@217855 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-15 22:25:28 +00:00
pliard@chromium.org 5df58990ce Reland r212020: Move Python setup/tear down logic into Forwarder ...
The initial attempt caused flakiness (random deadlocks). It turns out that
testserver.py was inheriting undesirable file descriptors when it was spawned
(including file lock file descriptors). Closing the unnecessary file
descriptors between fork() and exec() solves the problem.

Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these
implementation details. The host daemon is now killed once the first time that
the Forwarder class is used and the daemon running on the devices is also
killed the first time a port is forwarded for a specific device.

TBR=bulach@chromium.org
BUG=242846

Review URL: https://codereview.chromium.org/20824008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@215023 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-08-01 13:45:46 +00:00
pliard@chromium.org 014efa0322 Revert "Reland r212020: Move Python setup/tear down logic into Forwarder ..."
This reverts r212020 which caused some timeouts on the net_unittests every ~15
builds.

Conflicts:
	build/android/pylib/base/test_dispatcher.py
	build/android/pylib/instrumentation/test_runner.py
	chrome/test/chromedriver/run_py_tests.py

TBR=bulach@chromium.org
BUG=262573,242846

Review URL: https://codereview.chromium.org/19844006

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212888 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-22 15:56:17 +00:00
pliard@chromium.org 5f1683c854 Reland r212020: Move Python setup/tear down logic into Forwarder ...
Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these
implementation details. The host daemon is now killed once the first time that
the Forwarder class is used and the daemon running on the devices is also
killed the first time a port is forwarded for a specific device.

TBR=bulach@chromium.org
BUG=242846

Review URL: https://codereview.chromium.org/19550004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212582 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-19 13:30:16 +00:00
pliard@chromium.org d54c891907 Revert 212020 "Move Python setup/tear down logic into Forwarder ..."
This causes flakiness on the Android debug tester bot.

> Move Python setup/tear down logic into Forwarder itself.
> 
> Forwarder used to be a pain to setup/tear down across all the various
> harnesses.
> This CL should hopefully solve these issues by hiding these implementation
> details. The host daemon is now killed once the first time that the Forwarder
> class is used and the daemon running on the devices is also killed the first
> time a port is forwarded for a specific device.
> 
> BUG=242846
> R=bulach@chromium.org, frankf@chromium.org
> 
> Review URL: https://codereview.chromium.org/18086004

TBR=pliard@chromium.org

Review URL: https://codereview.chromium.org/19576005

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212054 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 15:52:49 +00:00
pliard@chromium.org 3f132b998d Move Python setup/tear down logic into Forwarder itself.
Forwarder used to be a pain to setup/tear down across all the various
harnesses.
This CL should hopefully solve these issues by hiding these implementation
details. The host daemon is now killed once the first time that the Forwarder
class is used and the daemon running on the devices is also killed the first
time a port is forwarded for a specific device.

BUG=242846
R=bulach@chromium.org, frankf@chromium.org

Review URL: https://codereview.chromium.org/18086004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@212020 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-17 13:42:57 +00:00
frankf@chromium.org 4de6796bac [Android] Some clean up around gtest packages.
Clarify the concepts of test_runner versus test_package.

BUG=
NOTRY=True
R=craigdh@chromium.org

Review URL: https://codereview.chromium.org/18258012

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211860 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-16 22:05:47 +00:00
frankf@chromium.org 5b0ed2d5ac [Android] Use isolate remap instead of check.
- Instead of parsing *.isolated files, use isolate remap
to create a temporary dependency dir.
- Add an exclusion list to filter dependecies at a finer grain
than what's specified in isolate files.
- Convert base_unittests and unit_tests to use isolate. 

This adds an additional 50MB to the dependency size due
to many small directories not specified in the exclusion list.

BUG=249870

Review URL: https://chromiumcodereview.appspot.com/18233018

git-svn-id: http://src.chromium.org/svn/trunk/src/build@211350 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-12 06:58:43 +00:00
pliard@chromium.org d2e41f8965 Remove unnecessary host parameter in forwarder.
While it is nice to be able to specify the destination host when setting up a
redirection, this functionality is never used.
This cleanup is needed for some upcoming changes in forwarder2.

BUG=242846

Review URL: https://chromiumcodereview.appspot.com/18522003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@209756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-07-02 19:50:26 +00:00
frankf@chromium.org 41346e07f3 [Android] Log the size of data transerred to device.
BUG=252047
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/17463008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@207641 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-20 23:47:25 +00:00
frankf@chromium.org 815682d8c9 [Android] Separate concepts of pushing test data and installing test apk.
--skip-deps-push will now only bypass the former.

BUG=
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/16820002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@206096 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-13 16:53:29 +00:00
frankf@chromium.org 81d0e1a89d [Android] Add --skip-deps-push to test scripts.
This bypasses syncing any deps to the device to speed up
the developer workflow.
    
BUG=243447
NOTRY=True

Review URL: https://chromiumcodereview.appspot.com/16627004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@205317 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-10 21:50:48 +00:00
bulach@chromium.org df2043b890 Android: renames pylib.constants.CHROME_DIR to DIR_SOURCE_ROOT.
Following comments from https://codereview.chromium.org/14882007/,
let's keep it consistent with base/base_paths.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/15979032

git-svn-id: http://src.chromium.org/svn/trunk/src/build@204357 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-06-05 23:28:09 +00:00
pliard@chromium.org 9b8b7b0c95 Use a single Python Forwarder instance for each base test runner instance.
This is achieved by having BaseTestRunner instantiate a single Forwarder
instance and inject it into SpawningServer.

This makes the test server spawner instance use an already configured Forwarder
instance for every single unit test rather than instantiating Forwarder every
time (which also meant unnecessarily running 'adb forward' for every single
unit test).

Note that this CL also makes Forwarder thread-safe. This is due to the fact
that the test server spawner does its work on a worker thread and not to the
fact that a single Forwarder instance can be shared accross multiple shards as
one could think.

BUG=229685,239014
R=bulach@chromium.org, craigdh@chromium.org, frankf@chromium.org

Review URL: https://codereview.chromium.org/15151003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@200500 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-16 09:25:16 +00:00
frankf@chromium.org f031a793cd [Android] Split uiautomator test runner from instrumentation.
Also, some minor refactoring.

BUG=

Review URL: https://codereview.chromium.org/13989007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@193967 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-12 18:28:28 +00:00
frankf@chromium.org c7956d6723 [Android] Specify dependency files for instrumentation tests.
Add a virtual PushDependencies() method to base test runner which will push all files to devices during setup.

BUG=226058

Review URL: https://codereview.chromium.org/13577003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192167 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-03 21:50:36 +00:00
frankf@chromium.org 33c87f851c [Android] Rewrite base test result classes.
- Use set instead of list
- Encapsulate internals
- Add unit tests
- Separate out the reporting utilities

BUG=167331
NOTRY=True

Review URL: https://codereview.chromium.org/12544033

git-svn-id: http://src.chromium.org/svn/trunk/src/build@190525 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-26 00:29:12 +00:00
nileshagrawal@chromium.org 64596c6ec8 Android: Cleanup test server instance after running each a test in gtest test runner
BUG=181040

Review URL: https://chromiumcodereview.appspot.com/12659003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@187158 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-09 14:56:57 +00:00
craigdh@chromium.org 33ab7c2536 [Android] Switch instrumentation tests to the new shard/runner paradigm.
BUG=176325, 168889
TEST=build/android/run_instrumentation_tests.py

Review URL: https://codereview.chromium.org/12378048

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186266 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-05 21:54:32 +00:00
eugenis@chromium.org 8f731d3f27 Run locally-built Android utils under ASan (if built with ASan).
In ASan build, device_forwarder and md5sum_bin are built with ASan
instrumentation. Due to specifics of ASan on Android, such binaries
must be prefixed with a script to run.

This change also adds more app names to the wrap property list, to
cover content_tests and test_shell.

BUG=160952


Review URL: https://chromiumcodereview.appspot.com/12211070

git-svn-id: http://src.chromium.org/svn/trunk/src/build@181309 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-02-07 15:34:59 +00:00
frankf@chromium.org 8f5ecb447e [Android] Move base tests classes to pylib/base
BUG=168727

Review URL: https://codereview.chromium.org/11879031

git-svn-id: http://src.chromium.org/svn/trunk/src/build@177252 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-16 23:18:42 +00:00