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

248 Коммитов

Автор SHA1 Сообщение Дата
steveblock@chromium.org f5f7865054 Hook up use_system_libjpeg for Android
Also enable it by default when builing with the Android build system.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147850 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-23 13:36:12 +00:00
michaelbai@chromium.org 2b67fd44ed Using gdb_content_shell to attach to content_shell process directly.
- Attached to the running content_shell directly, don't need add any argument.
- Added adb_shell function to remove the '\r' from the output, so the gdb_apk
  could find the correct process when both content_shell and sanboxed_process
  are running.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147711 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-20 20:25:28 +00:00
shouqun.liu@intel.com b6767a8343 Add net library for content unit test and enable related test cases on Android.
BUG=
TEST=content_unittests_apk


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147647 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-20 13:08:37 +00:00
dfalcantara@chromium.org 9cf9d96109 Disable failing content unittest on Android
GpuMemoryManagerTest.StubMemoryStatsForLastManageTests doesn't seem to work.
Disable while investigating.

BUG=138138
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147576 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-20 00:20:48 +00:00
bulach@chromium.org 333fb117dc Android: Fix one issue for instrumentation on "user" devices.
We can't enable java asserts / reboot those devices.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147484 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-19 18:03:39 +00:00
nileshagrawal@chromium.org 54130ae128 Android: Push data file needed by HypenatorTest to the device.
BUG=137879

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147483 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-19 18:02:24 +00:00
ilevy@chromium.org 9a37a2eb92 Renaming buildbot_try_compiler script
Differentiates from buildbot_try_compile.sh
and works better with botname of buildbot_try_builder

BUG=132707


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-19 17:53:18 +00:00
bulach@chromium.org 2794f36318 Android: fix test runners for non-rooted devices.
Move the generated file for GetAllTests() to a public directory in the device.
Adds the necessary permission to the manifest for the test.

BUG=
TEST=run android tests in a non-rooted device.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147430 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-19 12:24:44 +00:00
nileshagrawal@chromium.org f9d133f1d8 Run gclient hooks on Android bots.
This replaces the separate android_gyp step and is called after envsetup is done.

BUG=117407

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147349 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-19 00:08:40 +00:00
dfalcantara@chromium.org 6f09dc8fa1 Disable failing HypenatorTest on Android
Disabling the test for further investigation.

BUG=137879
TEST=HyphenatorTest.HyphenateWords


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147286 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-18 19:08:55 +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
yongsheng.zhu@intel.com aab4cbe17d Fix 6 failures in net unittests on Android
These 6 failures are due to enable persistent session cookies:
1) Cookie without expiry time is persistent;
2) Cookie without expiry time is persistent so that the add/delete
command will be pushed back into the command list of cookie store.

BUG=
TEST=net_unittests; run_tests.py -s net_unittests

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147159 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-18 01:49:29 +00:00
yongsheng.zhu@intel.com 81ebf46eca Remove the case ThreadCheckDeleteSessionCookies from the disabled case list on android
It's fixed by Issue #10690188.

BUG=
TEST=run_tests.py -s net_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147152 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-18 00:59:34 +00:00
shess@chromium.org afadd21a8a device_stats_monitor.py implementation code accidentally given executable bit.
Suspect accidental holdover from same-named script in parent directory, which should have executable bit.

BUG=136690
TEST=fixes check_deps

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147050 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-17 18:31:15 +00:00
satish@chromium.org 5f332a2053 Add an activity monitor which profiles IO and CPU utilization.
This consists of a simple native program which dumps /proc/diskstats and
/proc/stat to a file at a regular interval. The dump is then processed host-side
into a JSON format which is charted in HTML via the Google Charts API.

The perf test runners are not upstreamed yet and when they are this will be part
of the set of profilers available.

BUG=136690
TEST=manual, run activity_monitor.py to try out.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@147019 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-17 16:48:03 +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
yongsheng.zhu@intel.com 4f034cd99d Remove the disabled tests for net unittests on Android
BUG=
TEST=run_tests.py -s net_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146958 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-17 06:37:30 +00:00
shouqun.liu@intel.com f5471b5c8b Remove two URLRequestTest cases from net_unittest disabled list on Android.
For URLRequestTest.FileDirRedirectNoCrash, it passes in upstream net_unittest.
For URLRequestTest.CookiePolicy_ForceSession, the force_session cookie test case
is removed from URLRequestTest.

BUG=
TEST=net_unittests_apk test pass


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146951 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-17 03:31:42 +00:00
shouqun.liu@intel.com 03890bc371 Fix the parameters for creating SpawningServer on Android.
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146933 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-17 00:18:53 +00:00
nileshagrawal@chromium.org 2cb2bd7633 Android: Disable tests failing on Jellybean devices.
Also enabling some tests which are now working.

BUG=137348

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146917 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-16 22:53:28 +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
shouqun.liu@intel.com 04566a2206 Add media_unittest test suite data files on Android.
BUG=
TEST=media_unittest on Android


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146794 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-16 13:35:51 +00:00
navabi@google.com 7f2f907801 Run simple content shell test on Android bots.
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146699 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-14 01:09:12 +00:00
shouqun.liu@intel.com 8608d84c32 Enable URLRequestTest.FileTest on Chromium Android
BUG=
TEST=net_unittests_apk URLRequestTest.FileTest pass


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146614 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-13 19:23:24 +00:00
bulach@chromium.org 3fac791a87 Android: move functions added in third_party to android_commands.
Following http://codereview.chromium.org/10692132.
That patch effectively forked adb_interface.py under third_party.
We already have our android_commands.py wrapper, so let's use that
and avoid forking.

BUG=
TEST=./build/android/run_tests.py -s out/Release/base_unittests_apk/base_unittests-debug.apk -e 1


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146557 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-13 11:11:55 +00:00
dfalcantara@chromium.org 84456a9602 Disable failing unittest on Android
Disables CookieMonster/MultiThreadedCookieStoreTest/0.ThreadCheckDeleteSessionCookies.

BUG=137051

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146449 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 21:44:09 +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 fa19ebfa27 Fix cherk_perms following http://codereview.chromium.org/10703165/.
A few files were upstreamed with +x, remove the executable bit.

BUG=
TEST=check_perms is green.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146341 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 14:31:36 +00:00
bulach@chromium.org eb91f32bdc Android: adds instrumentation test runners.
Part of upstreaming build/android, this adds the instrumentation
test runners to allow us to run java-based tests.

BUG=136688
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146335 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 13:59:53 +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
james.wei@intel.com 24150562e6 as we will use sdcard to store test data, so add sd card when creating avd.
And when testing with emulator, sometimes the test broken due to push failed because /sdcard/ is not ready. 

Adding WaitForSdCardReady to make the test more reliable. 

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146311 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 10:52:52 +00:00
james.wei@intel.com 197c659f9b add abi support for emulator.py
Currently arm emulator will always be launched. Adding abi support
to launch corresponding emulator for "TARGET_PRODUCT"

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146310 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 10:52:42 +00:00
james.wei@intel.com b36e21b535 init AndroidCommand after the device online to root it
AndroidCommand object will root the device when it is created. 
If this happened before the device is online, error will appear.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146306 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 09:20:30 +00:00
shouqun.liu@intel.com da75258a1a Enhancement for gdb_content_shell, allow package_name and shared_lib_dir to be
set from arguments. This enables debug other pieces such as base_unittests_apk

For example, to debug native tests, run with:
 gdb_apk -p org.chromium.native_test -l $CHROME_SRC/out/Release/lib.target -r


BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146299 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-12 08:16:25 +00:00
ilevy@chromium.org 7b8712ea0f Fix SDK installer by downloading r20 directly
- also renaming conflicting emulator avds

This change should not be disruptive as android update step will rev
tools to r20.  However 'android-15' target does not exist for tools
r18, so it was not being downloaded on a clean run of
install-build-deps-android-sdk

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146112 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 13:44:24 +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
skyostil@chromium.org cf7efa4a59 Canonicalize CHROME_SRC variable on Android
If $PWD contains a symlink, build/android/envsetup.sh ends up setting
CHROME_SRC to the same symlinked path. This breaks some utilities (e.g.,
grit) that work with absolute paths and expect them to be prefixed by
CHROME_SRC.

The fix is to set CHROME_SRC to the canonical absolute path of the
current directory.

BUG=
TEST=cd $SYMLINKED_PATH; unset CHROME_SRC; . build/android/envsetup.sh; android_gyp


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146097 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 10:23:52 +00:00
james.wei@intel.com 7c5c3229e4 fix the error of emulator.py
AndroidCommand only needs two args while emulator.py pass three

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146095 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 10:12:52 +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 f779309501 enable two test cases in base_unittests with fix and disable one failure
Contributed by fengx.dai@intel.com

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146043 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 03:25:57 +00:00
shouqun.liu@intel.com 2f64cf2bd0 Fix failed apk unit test case MessagePumpLibeventTest.* on Android.
The MessagePumpLibeventTest.StopWatcher and MessagePumpLibeventTest.DeleteWatcher
use fd 0, which is not permitted in apk test while calling 'epoll_ctl', and cause
failure on Android. Fix this by using fd created from pipe.

Also remove them from Android disabled case list.

BUG=None
TEST=base_unittests


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@146041 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-11 03:25:40 +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
nileshagrawal@chromium.org 572995a324 Exclude unsupported tests from the android build.
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145985 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-10 23:24:43 +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
cjhopman@chromium.org 4f26edbdb3 Upstream the Android clipboard implementation
Previous discussion on upstreaming Android clipboard is at:
http://codereview.chromium.org/9264014/

The main difference here is that synchronization has been pulled into a
separate class to make it simpler/clearer (and more correct). This also
simplifies a great deal of the logic.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145798 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-09 23:54:37 +00:00
bulach@chromium.org 09165fe507 [android] Fixes checkperms.py error.
Following http://codereview.chromium.org/10693110/.
A few files moved around to pylib and had their executable bits left on.

BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145658 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-09 09:51:45 +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
mkosiba@chromium.org 31021a89ce [Android] Fix command line path in flag_changer.py.
In http://src.chromium.org/viewvc/chrome?view=rev&revision=144269
the command line path was accidentally changed to an incorrect value.
This change fixes that and updates a stale comment in CommandLine.java.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145469 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-04 16:54:51 +00:00
steveblock@chromium.org be1cca822e Specify path to aidl tool in gyp file
This avoids depending on having $PATH set up correctly when building, which can
be problematic when building with the Android build system.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145458 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-04 14:27:36 +00:00
steveblock@chromium.org f790e4ea8c Pass android_sdk as a variable to gyp
This avoids the need for shell script in the gyp file.


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145195 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-07-02 21:26:03 +00:00
ilevy@chromium.org b0749d00d9 Add trybot compiler/tester annotator scripts
These are not currently called.  Hooks will be added in a later CL.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@145050 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-30 02:01:18 +00:00
mkosiba@chromium.org e815ddae73 Disable URLFetcherEmptyPostTest.Basic on Android.
The test server spawner that this test depends on doesn't work
on Android yet.

TEST=
BUG=135165

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@144908 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-29 14:57:25 +00:00
nileshagrawal@chromium.org b8ffae1378 Register JNI methods before running unittests on android.
A better way to implement: http://codereview.chromium.org/10658017/

BUG=125059

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@144374 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-27 02:21:02 +00:00
dfalcantara@chromium.org 70530284ff [Android] Upstreaming flag_changer.py
Upstreams one of the build scripts needed for Android.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@144269 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-26 20:51:34 +00:00
benm@chromium.org caa591c207 Disable URLFetcher tests that require the test server on Android.
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143916 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-25 17:00:21 +00:00
nileshagrawal@chromium.org b19477a53b Push pak files for APK tests.
BUG=125059

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143757 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-23 00:19:06 +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
jgreenwald@chromium.org 3fd4bb4913 Disable SyncHttpBridgeTest.* unit tests for Android
These tests were moved into sync unitests by r143575.  However, these tests
don't work on Android.

BUG=133791

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143681 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-22 19:39:28 +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
ilevy@chromium.org 9d7fe4fff8 Disable set -e for extract build step
This python script is returning warnings via error codes and
we don't want to halt our tests from these warnings.

BUG=132707
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143550 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-22 06:36:08 +00:00
ilevy@chromium.org 2e839781bc Exclude lib.target folder from apk test tarballs
- We don't need this folder for our builds

BUG=132707
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143547 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-22 06:20:40 +00:00
nileshagrawal@chromium.org dd5e4845a9 Build and run APK tests by default.
BUG=125059

TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143478 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-21 22:46:24 +00:00
ilevy@chromium.org 18eed4eaec Commenting out test step on new fyi tester
- apk tests are failing.  We'll fix on my test buildbot setup
  and then uncomment when they're green so we don't add a bad
  upsteam bot.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143356 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-21 07:03:56 +00:00
ilevy@chromium.org 84f609499e Revert "Revert 143261 - Upstreaming android tools"
- fixing permissions and relanding. CQ does not run
  check_perms apparently.

- original review:
  https://chromiumcodereview.appspot.com/10578032/

- failing bot log:
  http://build.chromium.org/p/chromium/builders/Linux/builds/26592/steps/check_perms/logs/stdio

This reverts commit 1ad94575470ccb61f9a64915638aafac3269a28f.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143329 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-21 01:57:32 +00:00
creis@chromium.org e86bdc973e Revert 143261 - Upstreaming android build tools
- These are used to monitor and debug devices when running tests

Hooks will be added in a separate CL.

BUG=
TEST=


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

TBR=ilevy@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10583044

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143268 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-20 21:45:04 +00:00
ilevy@chromium.org 5968638430 Upstreaming android build tools
- These are used to monitor and debug devices when running tests

Hooks will be added in a separate CL.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143261 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-20 21:05:29 +00:00
nileshagrawal@chromium.org b37a12c1a0 Disable HostResolverImplDnsTest on Android.
These tests need JNI (APK tests).

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143245 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-20 20:07:40 +00:00
ilevy@chromium.org a2e6db8962 Adding buildbot main scripts for fyi builders and testers.
I'm removing the experimental compiler step from the builder to
reduce zip size.
    

BUG=132707

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143149 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-20 05:34:33 +00:00
satish@chromium.org 9689aef196 Add quotes around command line arg to allow a wider range of URLs.
Without quotes the shell complains when trying to open URLs with shell special
characters including parentheses, single/double quotes etc. (e.g. data URLs)

TEST=adb_run_content_shell "data:text/html,<script>console.log(1);</script>"
BUG=None


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143080 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-19 23:17:08 +00:00
digit@chromium.org f183fe4f09 Fix build/android/run_tests.sh
Ensure run_tests.sh works properly on all devices by putting temporary
test files under /data/local/tmp, instead of /data/local/ which restricted
on some device builds.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142969 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-19 16:22:06 +00:00
zhenghao@chromium.org 9368f780a9 Make GetWebKitRootDirFilePath return correct dir on Android.
http://codereview.chromium.org/9433049 added a trick in
single_test_runner to pretend we have a chrome/ dir for
webkit_unit_tests. Now webkit layout test runs into the same problem, so
I change the implementation directly to make sure it returns correct dir
for both webkit_unit_tests and layout test.

BUG=webkit_unit_tests,layout test


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142673 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-18 05:53:57 +00:00
jnd@chromium.org 8fd4da3a3a Enable DiskCacheEntryTest.* on Chromium Android.
Those tests pass now

BUG=124731
TEST=net_unittests DiskCacheEntryTest.* pass

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142190 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-14 19:28:18 +00:00
peter@chromium.org 3caf82e9e8 Duplicate Android's main builder entry-point for a WebKit Canary bot.
BUG=
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142119 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-14 09:51:31 +00:00
ilevy@chromium.org 25c5a4b13c Fix STEP_WARNINGS for android buildbot
- bb_goma_make does not return the exit status of make
  due to the goma shutdown step.
  For bb_compile_experimental, bash exit on error is disabled
  and we are relying on bb_goma_make exit status to determine
  failure.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142111 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-14 08:48:52 +00:00
ilevy@chromium.org 0ffebc8764 Minor build/android/envsetup.sh tweaks
- Fixed todo comment
- Echoing gyp_generator variable when running android_gyp

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@142109 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-14 08:03:50 +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
james.wei@intel.com 52c4cd0cad Disable tests for GetMimeTypeFromExtension
After enable GetMimeTypeFromExtension with JNI implementation, need to disable these tests firstly
and can enable them after switch to APK test runner. 

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@141752 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-12 21:54:02 +00:00
nileshagrawal@chromium.org 10b46f7443 Run ProcessUtil tests on Android.
TBRing as it is a simple gyp change.

TBR=mark@chromium.org

BUG=125059
TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@141337 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-09 01:08:51 +00:00
satish@google.com 77c500fa23 Get DomStorageDatabaseTest.TestCanOpenAndReadWebCoreDatabase pass on Android FYI builder.
The test requires a data file which is now in the whitelist of files copied over to device.
Sample failure on the bot:
http://build.chromium.org/p/chromium.fyi/builders/Chromium%20Linux%20Android/builds/10125/steps/Test%20suite%20content_unittests/logs/stdio

BUG=None
TEST=content_unittests should run successfully on the Android FYI builder.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@141200 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-08 12:54:01 +00:00
bulach@chromium.org 42c1763119 Fix pexpect index for android test runner.
Following https://chromiumcodereview.appspot.com/10310046/
The index for pexpect.TIMEOUT is wrong.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@141168 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-08 04:48:45 +00:00
tedchoc@chromium.org 8a1e8756dc Disable failing android StopOnRedirect test.
We do not yet support the test server in android land.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@141163 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-08 02:54:36 +00:00
wangxianzhu@chromium.org 253dfd874c Fix gyp on Android called by gclient or makefile regen
v8/build/common.gypi now uses environment variable CXX_target which is only
set in android_gyp, not set when gyp_chromium is called by gclient or automatic
makefile regeneration.

Now exports the environment variables needed by gyp generation.

BUG=none
TEST=none


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@140431 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-04 23:39:58 +00:00
haitao.feng@intel.com f022eaaaa0 Make emulator.py runnable and adjust partition size to 512
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@140009 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-06-01 09:32:35 +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
haitao.feng@intel.com 5af193827b Add native debugging support for no-root mode
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139767 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-31 09:47:23 +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
james.wei@intel.com 524a46decf validate CHROME_SRC setting to avoid confusion
BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139480 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-30 07:44:21 +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 e349fb8566 Fix regyp on android_test try bot.
BUG=125059

TEST=

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@139155 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-25 23:41:27 +00:00
wangxianzhu@chromium.org 1b837b7e7d Fix break building v8 with goma
The error is caused by missing '-m32' parameter when building v8 for host.
  CXX(host) out/Release/obj.host/v8_base/v8/src/accessors.o
v8/src/globals.h:120:2: error: #error Target architecture arm is only supported on arm and ia32 host

v8/build/common.gypi tests if the compiler supports -m32:
  'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev/null 2>&1) && echo -n "-m32" || true)',
but goma is confused by the environment variable GOMA_WRAPPER and exits
with an error:
  GOMA_WRAPPER=<anything>: unkown GOMA_ parameter
and the gyp script thinks that the compiler doesn't support -m32.

Rename GOMA_WRAPPER to ANDROID_GOMA_WRAPPER to avoid confusing goma.

git-svn-id: http://src.chromium.org/svn/trunk/src/build@138916 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-24 22:43:23 +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
dfalcantara@chromium.org 6505be3bb0 [Android] Disable unit test relying on unimplemented function
The ResourceBundle.DelegateGetFont test has been failing since it was added in.

BUG=128661

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137804 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-18 02:42:42 +00:00
nileshagrawal@chromium.org 5ee821eab8 Fix test data push for APK tests.
test_package.test_suite_basename is used at a lof of places. For APK
tests we need to strip "-debug" from the full test name.
BUG=125059

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137737 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-17 21:20:41 +00:00
nileshagrawal@chromium.org b65c31ef78 Fix test filter filename for APK based tests.
BUG=125059

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137614 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-17 02:09:57 +00:00
jingzhao@chromium.org e460401de5 Upstream: Depend on OpenSSL directly instead of via system.gyp
build/android/system.gyp has an extra level of abstraction for openssl
which is currently not really doing anything since we don't yet support
using the system openssl on android. Remove it for now, because this
stops there from being two targets called "ssl" (this one and the one
for linux) - solving some problems with the android build backend for
gyp.

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137379 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-16 07:40:01 +00:00
nileshagrawal@chromium.org 84a13a33f5 Put commandline for apk tests in /data/local/tmp
We were trying to use the application directory which is not usually
writable (unless the device is rooted). This allows us to run the tests
on non-rooted devices.

BUG=125059

TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137368 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-16 05:50:18 +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
jrg@chromium.org e0a97f8d26 Add ${ANDROID_TOOLCHAIN} to $PATH to assist ninja.
Also minor upstreaming command movement.

BUG=
TEST=


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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@137243 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-15 21:16:20 +00:00
mmocny@chromium.org 7cb2af2a3c Fixing failing unittest for android: GpuMemoryManagerTest.TestForegroundStubsGetBonusAllocation
BUG=126521
TEST=fixing content_unittests, adding GpuMemoryManagerTest.TestForegroundStubsGetBonusAllocationAndroid


Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136593

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

git-svn-id: http://src.chromium.org/svn/trunk/src/build@136904 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-14 17:44:12 +00:00