summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/host_driven
Commit message (Collapse)AuthorAgeFilesLines
* Android Add _incremental targets for instrumentation testsagrieve2016-02-101-3/+6
| | | | | | | | | | | Switches gtests to explicitly passing path to install script rather than --incremental-install + heuristics. BUG=575975 Review URL: https://codereview.chromium.org/1680233002 Cr-Commit-Position: refs/heads/master@{#374699}
* [Android] Prepare build/android/ for catapult+devil.jbudorick2016-01-112-9/+5
| | | | | | | | BUG=476719 Review URL: https://codereview.chromium.org/1571803002 Cr-Commit-Position: refs/heads/master@{#368599}
* [Android] Move forwarder.py into devil/.jbudorick2015-12-111-1/+1
| | | | | | | | BUG=476719 Review URL: https://codereview.chromium.org/1516363002 Cr-Commit-Position: refs/heads/master@{#364762}
* [Android] Add a custom pylintrc for build/android/.jbudorick2015-09-083-7/+6
| | | | | | | | | | | The default depot_tools pylintrc disables some checks that we can reasonably enable in build/android/. This CL does so. BUG= Review URL: https://codereview.chromium.org/1315743004 Cr-Commit-Position: refs/heads/master@{#347720}
* [Android][telemetry] Update pylib imports for modules that moved into devil.jbudorick2015-09-031-1/+1
| | | | | | | | BUG=476719 Review URL: https://codereview.chromium.org/1314313004 Cr-Commit-Position: refs/heads/master@{#347187}
* [Android] Add --blacklist-file as a command-line option. (RELAND)jbudorick2015-08-271-1/+2
| | | | | | | | | | This is a reland of https://codereview.chromium.org/1281923003 BUG=517709 Review URL: https://codereview.chromium.org/1294713008 Cr-Commit-Position: refs/heads/master@{#345779}
* Revert of [Android] Add --blacklist-file as a command-line option. (patchset ↵jbudorick2015-08-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | #5 id:80001 of https://codereview.chromium.org/1281923003/ ) Reason for revert: broke the perf bots, will fix and reland. Original issue's description: > [Android] Add --blacklist-file as a command-line option. > > BUG=517709 > > Committed: https://crrev.com/9874769cf24b5870d9bb7c22fe5312b1cf8bcd5e > Cr-Commit-Position: refs/heads/master@{#344125} TBR=eakuefner@chromium.org,mikecase@chromium.org,nednguyen@google.com,rnephew@chromium.org,sullivan@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=517709 Review URL: https://codereview.chromium.org/1292053006 Cr-Commit-Position: refs/heads/master@{#344141}
* [Android] Add --blacklist-file as a command-line option.jbudorick2015-08-191-1/+2
| | | | | | | | BUG=517709 Review URL: https://codereview.chromium.org/1281923003 Cr-Commit-Position: refs/heads/master@{#344125}
* [Android] Remove more uses of android_commands from build/android/pylib. ↵jbudorick2015-04-292-7/+6
| | | | | | | | | | (RELAND) BUG=267773,482367,482406 Review URL: https://codereview.chromium.org/1112843002 Cr-Commit-Position: refs/heads/master@{#327501}
* [Android] Reland cleanup of old_interface in build/android/pylib again.jbudorick2015-04-133-12/+10
| | | | | | | | | | Leaving out RestartAdbd this time. I'll address that separately. BUG=267773 Review URL: https://codereview.chromium.org/1078223002 Cr-Commit-Position: refs/heads/master@{#324904}
* Revert of [Android] Reland cleanup of old_interface in build/android/pylib. ↵John Budorick2015-04-023-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | (patchset #2 id:20001 of https://codereview.chromium.org/1050883002/) Reason for revert: Broke the perf bots again. Original issue's description: > [Android] Reland cleanup of old_interface in build/android/pylib. > > Original CL: https://codereview.chromium.org/1047703002/ > > BUG=267773 TBR=klundberg@chromium.org,perezju@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=267773 Review URL: https://codereview.chromium.org/1059443005 Cr-Commit-Position: refs/heads/master@{#323573}
* [Android] Reland cleanup of old_interface in build/android/pylib.jbudorick2015-04-023-12/+10
| | | | | | | | | | Original CL: https://codereview.chromium.org/1047703002/ BUG=267773 Review URL: https://codereview.chromium.org/1050883002 Cr-Commit-Position: refs/heads/master@{#323518}
* Revert of [Android] Clean up old_interface in build/android/. (patchset #3 ↵machenbach2015-04-013-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | id:40001 of https://codereview.chromium.org/1047703002/) Reason for revert: This make sharded perf tests fail everywhere, example: http://build.chromium.org/p/chromium.perf/builders/Android%20Nexus4%20Perf/builds/2797 Original issue's description: > [Android] Clean up old_interface in build/android/. > > BUG=267773 > > Committed: https://crrev.com/32b3e358017c863318fa7cca3a3c41bb5d056c24 > Cr-Commit-Position: refs/heads/master@{#323135} TBR=perezju@chromium.org,klundberg@chromium.org,jbudorick@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=267773 Review URL: https://codereview.chromium.org/1049993003 Cr-Commit-Position: refs/heads/master@{#323202}
* [Android] Clean up old_interface in build/android/.jbudorick2015-03-313-12/+5
| | | | | | | | BUG=267773 Review URL: https://codereview.chromium.org/1047703002 Cr-Commit-Position: refs/heads/master@{#323135}
* Enable ResourceFetcherTestsjaekyun2015-03-101-1/+2
| | | | | | | | | | | | | | | | | | ResourceFetcherTests are running well even on Android now except ResourceFetcher404. I confirmed that the payload of http response of ResourceFetcher404 included error logs of the test server as well, which was causing the failure. To enable ResourceFetcher404, I changed sys.stderr to sys.stdout on Android. BUG=248796 Review URL: https://codereview.chromium.org/986233002 Cr-Commit-Position: refs/heads/master@{#319996}
* Updates to support instrumentation tests for managed sign ins.joaodasilva2014-11-281-2/+11
| | | | | | | | | | | | | | | | | | | | | This CL makes a couple of small modifications to enable instrumentation tests of managed sign ins: - added the policy_testserver as another type of host-driver test server - added /test/ping to the policy_testserver for liveness checks - added a configuration for the policy_testserver for the Android tests - added a UserInfo blob for the managed sign in tests - added BookmarksBridge.bookmarkAllUserNodesRemoved() to observe the wiping of the bookmarks on managed sign out - refactored the SigninManager to show the managed sign in alert dialog as a separated fragment. This doesn't change the UI in any way, but makes testing easier by giving a tag to the dialog fragment. BUG=436068 Review URL: https://codereview.chromium.org/755583004 Cr-Commit-Position: refs/heads/master@{#306084}
* Remove the unused push_deps option from the test runners.mikecase2014-11-033-11/+4
| | | | | | | | BUG= Review URL: https://codereview.chromium.org/696923002 Cr-Commit-Position: refs/heads/master@{#302494}
* [Android] Switch to DeviceUtils versions of GetMemoryUsageForPid and __str__.jbudorick@chromium.org2014-07-241-1/+1
| | | | | | | | BUG=267773 Review URL: https://codereview.chromium.org/404993004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285097 0039d316-1c4b-4281-b951-d872f2087c98
* Install support APK together with test APKaberent@chromium.org2014-06-231-1/+2
| | | | | | | | | | | | | | | The Chrome for Android instrumentation tests (the tests in ChromeTest.apk) need to start some services to test Chromecast support. This was originally done within the ChromeTest.apk, but, because of the changes required for https://code.google.com/p/chromium/issues/detail?id=272790 this is no longer possible. This patch allows the use of a seperate test support apk. BUG=384537 Review URL: https://codereview.chromium.org/336373004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279096 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Fix UIAutomator, Linker, and downstream tests.jbudorick@chromium.org2014-04-121-0/+2
| | | | | | | | BUG=267773 Review URL: https://codereview.chromium.org/235943002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263484 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Change object types from AndroidCommands to DeviceUtils in ↵jbudorick@chromium.org2014-04-102-7/+7
| | | | | | | | | | build/android/. BUG=267773 Review URL: https://codereview.chromium.org/221823011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263055 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Lint the rest of pylib.jbudorick@chromium.org2014-03-122-2/+4
| | | | | | | | BUG=168518 Review URL: https://codereview.chromium.org/194843003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256429 0039d316-1c4b-4281-b951-d872f2087c98
* Convert to gtest-style filtering in instrumentation tests.jbudorick@chromium.org2014-02-211-17/+14
| | | | | | | | BUG=280354 Review URL: https://codereview.chromium.org/144183004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252687 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Lint pylib/instrumentation.jbudorick@chromium.org2014-02-131-1/+1
| | | | | | | | | BUG=168518 NOTRY=true Review URL: https://codereview.chromium.org/163923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251153 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Lint pylib/host_driven.jbudorick@chromium.org2014-02-125-18/+28
| | | | | | | | BUG=168518 Review URL: https://codereview.chromium.org/159853010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250822 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of Enable presubmit pylint in build/android. ↵jbudorick@chromium.org2014-02-115-29/+24
| | | | | | | | | | | | | | | | | | | | | | | (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: svn://svn.chromium.org/chrome/trunk/src@250269 0039d316-1c4b-4281-b951-d872f2087c98
* Enable presubmit pylint in build/android.jbudorick@chromium.org2014-02-075-24/+29
| | | | | | | | BUG=168518 Review URL: https://codereview.chromium.org/132463007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249793 0039d316-1c4b-4281-b951-d872f2087c98
* Don't unmap ports in host_driven/test_case.py.pliard@chromium.org2013-12-091-4/+1
| | | | | | | | | | | | | | | | The sync tests failure seems to have to do with port unmapping. Not unmapping ports let most of the sync tests pass (only 2 failures remain for an unrelated reason apparently). Note that port unmapping was added to avoid exceeding the file descriptor limit in net_unittests since each test server was listening on a different port. The sync tests use a server always listening on a same port so unmapping the port is not strictly needed. BUG=313809 Review URL: https://codereview.chromium.org/106533002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239467 0039d316-1c4b-4281-b951-d872f2087c98
* Android: map the forwarded ports at the host driven level.bulach@chromium.org2013-11-122-4/+59
| | | | | | | | | | | | | | | | Rather than (un)mapping the ports on each one of the internal instrumentation tests, do it higher up at the host driven level. Ensure the test server is fully setup and tear down. Ensure the adb port is fully unmapped at the host forwarder level. Add more log information to the forwarder, and add them to TestResult.log in case of failure. Kill the device forwarder when unmapping all ports. BUG=313809 Review URL: https://codereview.chromium.org/59313003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234486 0039d316-1c4b-4281-b951-d872f2087c98
* Android: removes hardcoded out directory in test_server.pybulach@chromium.org2013-11-051-1/+1
| | | | | | | | | | | Use the one defined in constants.py instead. BUG= TEST=build/android/test_runner.py instrumentation --test-apk ChromiumTestShellTest --test_data chrome:chrome/test/data/android/device_files --verbose --host-driven-root=chrome/android -f testDisableAndEnableSync --python-only Review URL: https://codereview.chromium.org/59713002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233057 0039d316-1c4b-4281-b951-d872f2087c98
* [android] Relands: Adds constants.GetBuildDirectory() and converts test ↵craigdh@chromium.org2013-09-101-2/+3
| | | | | | | | | | | | scripts to use it. BUG=260494 TEST=None NOTRY=True Review URL: https://chromiumcodereview.appspot.com/23494039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222313 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 221736 "[android] Adds constants.GetOutDirectory() and co..."johnme@chromium.org2013-09-091-3/+2
| | | | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@222008 0039d316-1c4b-4281-b951-d872f2087c98
* [android] Adds constants.GetOutDirectory() and converts test scripts to use it.craigdh@chromium.org2013-09-061-2/+3
| | | | | | | | | | BUG=260494 TEST=None NOTRY=True Review URL: https://chromiumcodereview.appspot.com/22903016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221736 0039d316-1c4b-4281-b951-d872f2087c98
* Add test_server_setup.py and add support for additional flags.nyquist@chromium.org2013-09-042-4/+99
| | | | | | | | | | | | | | | | | | | | | | Whenever a host driven test need to setup a server as part of a test, the command line needs of the application to be instrumented needs to change. This CL adds a helper class for setting up a test server, and also adds support for tests to setup additional flags (typically the URL for how to connect to the test server). Reverted in: http://crrev.com/220769 Relanding after re-upload to the same patch. BUG=272584 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220750 Review URL: https://chromiumcodereview.appspot.com/23726004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221122 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 220750 "Add test_server_setup.py and add support for addi..."achuith@chromium.org2013-09-022-99/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | check_perms failing on linux cros bots: http://chromegw.corp.google.com/i/chromium.chromiumos/builders/Linux%20ChromiumOS%20Full/builds/24739 http://chromegw.corp.google.com/i/chromium.chromiumos/builders/Linux%20ChromiumOS%20Full/builds/24739/steps/check_perms/logs/stdio > Add test_server_setup.py and add support for additional flags. > > Whenever a host driven test need to setup a server as part of a test, > the command line needs of the application to be instrumented needs to > change. > > This CL adds a helper class for setting up a test server, and also adds > support for tests to setup additional flags (typically the URL for how > to connect to the test server). > > Depends on: https://codereview.chromium.org/23467004/ > > BUG=272584 > NOTRY=true > > Review URL: https://chromiumcodereview.appspot.com/23726004 TBR=nyquist@chromium.org Review URL: https://codereview.chromium.org/23606011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220769 0039d316-1c4b-4281-b951-d872f2087c98
* Add test_server_setup.py and add support for additional flags.nyquist@chromium.org2013-09-012-4/+99
| | | | | | | | | | | | | | | | | | | Whenever a host driven test need to setup a server as part of a test, the command line needs of the application to be instrumented needs to change. This CL adds a helper class for setting up a test server, and also adds support for tests to setup additional flags (typically the URL for how to connect to the test server). Depends on: https://codereview.chromium.org/23467004/ BUG=272584 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/23726004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220750 0039d316-1c4b-4281-b951-d872f2087c98
* Removes support for old host-driven Feature annotationgkanwar@chromium.org2013-08-221-2/+0
| | | | | | | | | NOTRY=True BUG=176323 Review URL: https://chromiumcodereview.appspot.com/22891019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219048 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Removes _RunJavaTestsgkanwar@chromium.org2013-08-211-7/+3
| | | | | | | | | | | Host-driven tests should use _RunJavaTestFilters instead now. NOTRY=True BUG=268683 Review URL: https://chromiumcodereview.appspot.com/22929017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218751 0039d316-1c4b-4281-b951-d872f2087c98
* Changes _RunJavaTests to accept filtersgkanwar@chromium.org2013-08-201-23/+33
| | | | | | | | | | | | This eliminates the need to specify package name and bring it more in line with normal instrumentation tests. NOTRY=True BUG=268683 Review URL: https://chromiumcodereview.appspot.com/23295006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218530 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes host-driven Feature annotationgkanwar@chromium.org2013-08-201-1/+3
| | | | | | | | | NOTRY=True BUG=176323 Review URL: https://chromiumcodereview.appspot.com/23295007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218453 0039d316-1c4b-4281-b951-d872f2087c98
* [android] Make build_type a singleton.craigdh@chromium.org2013-08-153-10/+8
| | | | | | | | | | BUG=260494 TEST=None NOTRY=True Review URL: https://chromiumcodereview.appspot.com/22933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217855 0039d316-1c4b-4281-b951-d872f2087c98
* Converts host driven tests to common test_dispatchergkanwar@chromium.org2013-08-0610-736/+494
| | | | | | | | | | | | | | | Also renames several files in pylib/host_driven to match the general file naming scheme. This change will break existing host-driven tests downstream which are run though scripts other than test_runner. NOTRY=True BUG=176323 Review URL: https://chromiumcodereview.appspot.com/19537004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215944 0039d316-1c4b-4281-b951-d872f2087c98
* Changes argument passing to use options objectsgkanwar@chromium.org2013-08-012-14/+37
| | | | | | | | | | | | | | Options objects are specific to the test type, and are named tuples, so they are also immutable. This is a precursor to the host-driven refactor. BUG=176323 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/21008004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215054 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r212020: Move Python setup/tear down logic into Forwarder ...pliard@chromium.org2013-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@215023 0039d316-1c4b-4281-b951-d872f2087c98
* [android] Instumentation tests determine whether to install the test apk ↵craigdh@chromium.org2013-07-262-6/+4
| | | | | | | | | | | | | | based on Md5Sum. This deprecates the -I switch to instrumention tests. BUG=260084 TEST=None NOTRY=True Review URL: https://chromiumcodereview.appspot.com/19799003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213956 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Reland r212020: Move Python setup/tear down logic into Forwarder ..."pliard@chromium.org2013-07-221-1/+1
| | | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@212888 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Redesigns the sharder to allow replicated vs distributed testsgkanwar@google.com2013-07-193-3/+17
| | | | | | | | | | | In addition, cleans up dispatch. BUG=259063, 259128 NOTRY=True Review URL: https://chromiumcodereview.appspot.com/18770008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212663 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r212020: Move Python setup/tear down logic into Forwarder ...pliard@chromium.org2013-07-191-1/+1
| | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@212582 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 212020 "Move Python setup/tear down logic into Forwarder ..."pliard@chromium.org2013-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@212054 0039d316-1c4b-4281-b951-d872f2087c98
* Move Python setup/tear down logic into Forwarder itself.pliard@chromium.org2013-07-171-1/+1
| | | | | | | | | | | | | | | | 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: svn://svn.chromium.org/chrome/trunk/src@212020 0039d316-1c4b-4281-b951-d872f2087c98