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

49 Коммитов

Автор SHA1 Сообщение Дата
nileshagrawal@chromium.org de34fa3511 Run unit_tests bundle on Android tester bots.
BUG=138115

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148976 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-30 18:16:42 +00:00
nileshagrawal@chromium.org 3580a04009 Run media_unittests on android test bots.
BUG=137131

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-26 02:35:57 +00:00
james.wei@intel.com babaafe7b5 Restarting adb server before each testing start will cause conflict for multiple emulators
Sometimes there is conflict when several tests restart adb server at the same time.
Originally, restarting adb server is to fix the issue of connection lost with adb server when emulator booting, as this case already handled in AndroidCommand::WaitForSystemBootCompleted(), so it can be removed now. 

Also fix a typo.

BUG=
TEST=./build/android/run_tests.py -e -n 5

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@148242 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-24 23:14:06 +00:00
bulach@chromium.org 372b1cd5c4 Android: fix step name for test runners.
Following http://codereview.chromium.org/10777017/, the step name
contained the fully qualified path, it needs to be just the basename.

BUG=
TEST=run tests, note the step name.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147238 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-18 14:59:10 +00:00
bulach@chromium.org 754b1227db Android: further simplication for test runners.
Overtime, there has been a few changes in the way we run:
- individual test suite versus all suites.
- single device versus sharded.
- debug info.

This patch simplifies the many different code paths and ensures
we'll have less breakages (and a more consistent way to add features).

BUG=
TEST=existing android tests (single device, multiple devices, emulator).


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146985 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-17 11:39:50 +00:00
james.wei@intel.com 932e3f5e80 create temp avd when running tests on multiple emulators
BUG=137487
TEST=./build/android/run_tests.py -s ui_unittests -e 2



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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146804 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-16 15:22:58 +00:00
james.wei@intel.com 236450a7c9 clean use_emulator option for inconsistence issue
use_emulator option is taken as integer somewhere but is taken as
boolean in other places. 

Clean this option to be boolean and add another option --emulator_count to set
the count of emulators. 

BUG=137458
TEST=./build/android/run_tests.py -e -n 1 -s base_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146801 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-16 14:26:05 +00:00
bulach@chromium.org f6f5095aab Android: fix running executable unit tests.
The function was listing all bundles instead of the one
passed as param.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146366 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 17:08:12 +00:00
bulach@chromium.org ea5a5e8cf3 Android: a few minor improvements for the test runner.
- We had a few options with default=True, which made them not really
optional. Instead, use an option with action='store_true' which is False by
default.
- Uses buildbot_report.py rather than duplicate the functionality.
- Removes default params from SingleTestRunner to make it more explicit.

BUG=
TEST=existing android tests.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146318 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 11:35:03 +00:00
yongsheng.zhu@intel.com 1981aa15f4 Fix the errors for run_tests.py
Module and methods changes:
1. run_tests_helper -> constants
2. FromOkAndFailed -> FromRun
3. Remove duplicated apk check

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 10:45:05 +00:00
james.wei@intel.com 3a30d637a5 fix test broken issue when using --use-emulator
BUG=136474
TEST=./build/android/run_tests.py -s out/Release/base_unittests_apk/base_unittests-debug.apk -e 1


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146045 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 03:30:04 +00:00
james.wei@intel.com 1808cf2e35 auto-detect directory when running tests with specified test_suite
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146026 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 01:48:05 +00:00
bulach@chromium.org 5d7670d4de [android] Upstream / sync most of build/android and build/android/pylib.
These files have diverged overtime. We need to get them in sync in
preparation for the instrumentation tests.
The patches downstream have been entangled, so this is a bit big and
contains a series of otherwise unrelated patches.
However, it's probably safer to do this way (as it's guaranteed to be similar to
downstream), than trying to split it in multiple patches.

BUG=
TEST=try -b android_test


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145872 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-10 13:21:43 +00:00
bulach@chromium.org 42c382abb6 [android] Split top-level scripts and libraries from build/android.
- Top-level scripts are kept under build/android.
- Utility libraries have been moved to build/android/pylib.
- Fixes all imports and headers.

This is in preparation for landing the "instrumentation" (java-based) tests,
which will reuse several of these components.

BUG=
TEST=existing android tests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145653 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-09 09:11:57 +00:00
nileshagrawal@chromium.org 8f4bc8d902 Default to apk tests in run_tests.py
BUG=125059
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143756 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-23 00:18:57 +00:00
nileshagrawal@chromium.org 2e799c9a67 Fail the buildbot step if no devices are connected.
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143565 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-22 09:16:35 +00:00
james.wei@intel.com 0dd4323d48 add option to suport setting target device for test
Sometimes multiple devices attached but want to run test suite on a specific device.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142059 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-14 01:33:21 +00:00
nileshagrawal@chromium.org bdc2d7d8cb Enable APK based tests for all test bundles.
Any new test bundle should be APK enabled by default.

BUG=125059

TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139832 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-31 18:40:15 +00:00
nileshagrawal@chromium.org 2e37a543a8 Add net, content and ipc to the default list of APK test bundles.
These APK bundles are compiled and run on the android_test try bot.
Test run: http://build.chromium.org/p/tryserver.chromium/builders/android_test/builds/117

All tests pass.
BUG=125059

TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139497 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-30 08:12:39 +00:00
mkosiba@chromium.org b0154db186 Fix Android run_tests.py to report failure on crashes.
This fixes the Android run_tests.py script to report crashed
tests as failures in both single-device and sharded mode.

BUG=none
TEST=run on trybot


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139235 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-28 10:36:24 +00:00
nileshagrawal@chromium.org c4002912c3 Run base_unittests_apk on the test try bot for realz.
This will make the android_test bot red when apk tests fail.

The ANDROID_APK_TEST_TARGET flag is required while we transition from executable to APK tests.
 - Executable tests need the DIR_CACHE override as the default path comes from the java side.

BUG=125059

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@138407 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-23 00:48:50 +00:00
nileshagrawal@chromium.org c6fb20115b Run APK tests on the android_test trybot.
Test failures are ignored for now.

TBR=mark@chromium.org,tsepez@chromium.org
BUG=125059
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137352 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-16 03:46:39 +00:00
mkosiba@chromium.org e49a9ab4c9 Remove the 'Test Finished' step from run_tests.py.
The 'Test Finished' step was introduced in r130823 to absorb the
non-zero exit status which we'd get if any of the test suites in
the batch would fail.
Since the run_tests.py script will print a STEP_FAILURE annotation
for every suite the exit status is redundant and therefore should
be removed.

BUG=none
TEST=none


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136302 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-10 15:00:56 +00:00
nileshagrawal@chromium.org c566fff619 Detect crashes while running native tests in APK.
Adding signal handlers (for fatal signals) to output a marker indicating
that the test crashed.
BUG=125059

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136050 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-09 16:59:12 +00:00
nileshagrawal@chromium.org bd742e0900 Add test summaries for native tests for Android.
Modify test_result.LogFull() to print the summary, and call it when
native finish running.

BUG=
TEST=


Review URL: http://codereview.chromium.org/10210001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@133830 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-25 01:04:45 +00:00
jrg@chromium.org 5354603cad apk-based test runner work for android. 2 unit test bundles converted over (ipc, base).
OFF by default; enable with a gyp var.  E.g.
  GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp

Some useful commands:
adb uninstall org.chromium.native_test
adb install -r out/Release/base_unittests_apk/ChromeNativeTests-debug.apk
adb shell am start -n org.chromium.native_test/org.chromium.native_test.ChromeNativeTestActivity

For the moment, all apks can be built simultaneously but use the same
activity name.  Thus you cannot have more than one installed at the
same time.

BUG=None
TEST=


Review URL: http://codereview.chromium.org/10051021

git-svn-id: http://src.chromium.org/svn/trunk/src/build@133053 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-19 21:02:09 +00:00
yfriedman@chromium.org 3a1b1b2d3e Enable gpu_unittests for Android.
It builds and runs successfully.


Review URL: http://codereview.chromium.org/10107023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@132622 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-17 19:58:12 +00:00
wangxianzhu@chromium.org dd8796dfb3 Don't show failure of the last succeeded test
Before this change, if some test failed before the last test succeeded,
because of the return value, the buildbot will show that the last test also
failed. Add a summary build step to avoid that.

BUG=None
TEST=None


Review URL: http://codereview.chromium.org/9989001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@130823 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-05 02:53:29 +00:00
wangxianzhu@chromium.org d80ce0caef Build and push chrome.pak for ui_unittests on Android.
BUG=None
TEST=build/android/run_tests.py -s out/Release/ui_unittests


Review URL: http://codereview.chromium.org/9963086

git-svn-id: http://src.chromium.org/svn/trunk/src/build@130547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-04 03:03:04 +00:00
wangxianzhu@chromium.org a44d5abcb4 Disable ui_unittests before we resolve resource pack issue.
BUG=None
TEST=None


Review URL: http://codereview.chromium.org/9963076

git-svn-id: http://src.chromium.org/svn/trunk/src/build@130271 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-03 01:02:23 +00:00
wangxianzhu@chromium.org ff12ec33c2 Enable ui_unittests in Android build
BUG=none
TEST=none


Review URL: http://codereview.chromium.org/9958026

git-svn-id: http://src.chromium.org/svn/trunk/src/build@130188 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-04-02 20:09:43 +00:00
rsleevi@chromium.org 962d5c4564 Revert 128679 - Speculative revert. xcodebuilders hosed between r128678 - 128680 in GYP phse, this is the only change that touched GYP files.
apk-based test runner work.  Not enabled yet.  This CL is a combination of upstreaming, ndk/ant-ification, and other tweaks.


BUG=None
TEST=


Review URL: http://codereview.chromium.org/9834037

TBR=jrg@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9852004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@128685 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-24 04:44:41 +00:00
jrg@chromium.org d168ae37cd apk-based test runner work. Not enabled yet. This CL is a combination of upstreaming, ndk/ant-ification, and other tweaks.
BUG=None
TEST=


Review URL: http://codereview.chromium.org/9834037

git-svn-id: http://src.chromium.org/svn/trunk/src/build@128679 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-24 03:57:36 +00:00
satish@chromium.org a75b06b5a1 Enable running content_unittests on the android builder.
This adds a blacklist of known test failures and adds content_unittests to the
list of test suites to run.

BUG=None
TEST=content_unittests should start running and pass on the android builder.


Review URL: http://codereview.chromium.org/9703066

git-svn-id: http://src.chromium.org/svn/trunk/src/build@127020 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-15 23:09:34 +00:00
yfriedman@chromium.org bcc556a429 Add sync_unit_test to known lists of Android unit tests.
This will cause them to be run on the test/experimental bots.
These tests are currently passing and we should keep them that way.

BUG=
TEST=


Review URL: http://codereview.chromium.org/9696031

git-svn-id: http://src.chromium.org/svn/trunk/src/build@126556 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-03-14 04:14:09 +00:00
bulach@chromium.org 953d4d6923 Upstream test sharder.
On chromium for android, we shard tests by splitting the set of tests
and running on multiple connected devices.

BUG=
TEST=build/android/run_tests.py


Review URL: http://codereview.chromium.org/9494007

git-svn-id: http://src.chromium.org/svn/trunk/src/build@124214 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-02-29 18:40:27 +00:00
jrg@google.com 6a48d3983a Add annotator tags for better debugging. More suppressions and other tweaks.
BUG=None
TEST=

Review URL: http://codereview.chromium.org/9104002

git-svn-id: http://src.chromium.org/svn/trunk/src/build@117583 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-01-13 02:34:21 +00:00
jrg@google.com 4cf7a559e1 Restart the Android emulator for each test.
BUG=None
TEST=

Review URL: http://codereview.chromium.org/9187062

git-svn-id: http://src.chromium.org/svn/trunk/src/build@117508 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-01-12 21:36:37 +00:00
jrg@google.com a45f7bc4cb Increase Android test robustness.
Use of the emulator is probably a lost cause, but maybe this can hold
us for now.

BUG=None
TEST=

Review URL: http://codereview.chromium.org/9185043

git-svn-id: http://src.chromium.org/svn/trunk/src/build@117458 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-01-12 18:47:45 +00:00
jrg@google.com 7d20ff4535 Android buildbot reliability fixes.
More changes to help make the chromium android buildbot more reliable.
Unlikely to be comprehensive but in the right direction.

BUG=None
TEST=

Review URL: http://codereview.chromium.org/8787010

git-svn-id: http://src.chromium.org/svn/trunk/src/build@113004 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-12-05 20:28:13 +00:00
jrg@google.com 31879914d7 Android bot changes for robustness, profiling, and debugging.
Kill all emulators before starting a test to be more robust on error.
Print error if a file fails to copy to the device.
Speed up emulator launch by 40%.
Increase emulator partition size to fix 'out of space on device' errors.
Log emulator launch time to help profile bot costs.
Run tests in verbose mode to assist with bot debugging.

BUG=None
TEST=

Review URL: http://codereview.chromium.org/8769020

git-svn-id: http://src.chromium.org/svn/trunk/src/build@112552 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-12-01 22:09:03 +00:00
jrg@google.com 3bda64a549 Expand android tests.
Add net_unittests to baseline build/run; add some test disabling.
Add experimental build phase to bot script.

BUG=None
TEST=

Review URL: http://codereview.chromium.org/8746003

git-svn-id: http://src.chromium.org/svn/trunk/src/build@112296 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-30 21:46:12 +00:00
jrg@chromium.org b6a0661351 Verbose on test list in output. Add test-related comment near deps.
BUG=
TEST=

Review URL: http://codereview.chromium.org/8676022

git-svn-id: http://src.chromium.org/svn/trunk/src/build@111738 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-28 19:19:20 +00:00
maruel@chromium.org 628d2696f1 Fix python scripts in src/build/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent

Also fix EOF LF to be only one.

TBR=michaelbai@chromium.org
BUG=105108
TEST=

Review URL: http://codereview.chromium.org/8667008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@111385 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-23 19:13:44 +00:00
jrg@google.com 8274c3726c Fix imports
BUG=
TEST=

Review URL: http://codereview.chromium.org/8629001

git-svn-id: http://src.chromium.org/svn/trunk/src/build@111014 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-21 22:25:21 +00:00
jrg@google.com 1b9db5b9cb Add xvfb option for running android tests on a bot.
BUG=
TEST=

Review URL: http://codereview.chromium.org/8536051

git-svn-id: http://src.chromium.org/svn/trunk/src/build@110982 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-21 19:40:25 +00:00
jrg@chromium.org 19df5466b9 Android IPC changes.
BUG=
TEST=


Review URL: http://codereview.chromium.org/8437033

git-svn-id: http://src.chromium.org/svn/trunk/src/build@108589 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-04 00:14:16 +00:00
jrg@chromium.org 3d4501d9ed Enable sql_unittests for Android.
BUG=
TEST=


Review URL: http://codereview.chromium.org/8351064

git-svn-id: http://src.chromium.org/svn/trunk/src/build@108414 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-03 03:29:20 +00:00
michaelbai@google.com 712740ca27 Upstream: Test scripts for Android (phase 2)
Currently only support run base_unittests

BUG=
TEST=

Review URL: http://codereview.chromium.org/8364020

git-svn-id: http://src.chromium.org/svn/trunk/src/build@106953 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-10-24 18:59:20 +00:00