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: svn://svn.chromium.org/chrome/trunk/src@138407 0039d316-1c4b-4281-b951-d872f2087c98
parent fdc9d6c5
......@@ -137,10 +137,14 @@ bool PathTestProviderAndroid(int key, FilePath* result) {
*result = FilePath(kAndroidTestTempDirectory);
return true;
}
#if !defined(ANDROID_APK_TEST_TARGET)
// When running as executable we need to use /data/local/tmp as the
// cache directory.
case base::DIR_CACHE: {
*result = FilePath(kAndroidTestTempDirectory);
return true;
}
#endif // !defined(ANDROID_APK_TEST_TARGET)
case base::DIR_ANDROID_APP_DATA: {
*result = FilePath(kAndroidTestTempDirectory);
return true;
......
......@@ -232,13 +232,5 @@ function bb_run_tests {
# Run APK tests on an actual device.
function bb_run_apk_tests {
echo "@@@BUILD_STEP Run APK Tests on actual hardware@@@"
tempfile=/tmp/tempfile-$$.txt
# Filter out STEP_FAILURES, we don't want REDNESS on test failures for now.
build/android/run_tests.py --xvfb --verbose --apk=True \
| sed 's/@@@STEP_FAILURE@@@//g' | tee $tempfile
happy_failure=$(cat $tempfile | grep RUNNER_FAILED | wc -l)
if [[ $happy_failure -eq 0 ]] ; then
echo "@@@STEP_WARNINGS@@@"
fi
rm -f $tempfile
build/android/run_tests.py --xvfb --verbose --apk=True
}
# List of suppressions
#
# Sometimes this is automatically generated by run_tests.py
RTLTest.GetTextDirection
ReadOnlyFileUtilTest.ContentsEqual
ReadOnlyFileUtilTest.TextContentsEqual
SharedMemoryTest.OpenExclusive
StackTrace.DebugPrintBacktrace
VerifyPathControlledByUserTest.Symlinks
PathServiceTest.Get
SharedMemoryTest.OpenClose
StringPrintfTest.StringPrintfMisc
StringPrintfTest.StringAppendfString
......@@ -19,3 +16,7 @@ FieldTrialTest.*
StackContainer.BufferAlignment
# Failed on bot since it was first introduced.
FileUtilProxyTest.Touch
# New failures on APK
MessagePumpLibeventTest.DeleteWatcher
MessagePumpLibeventTest.StopWatcher
SharedMemoryProcessTest.Tasks
......@@ -76,12 +76,9 @@ _TEST_SUITES = ['base_unittests',
'ui_unittests',
]
# Test suites which are build as an APK. This will be replaced by the default
# Test suites which are run as APK. This will be replaced by the default
# list when we start building all suites as APK.
_APK_TEST_SUITES = ['replaceme', # Test the template apk too.
'base_unittests',
'ipc_tests',
'ui_unittests',
_APK_TEST_SUITES = ['base_unittests',
]
def FullyQualifiedTestSuites(apk):
......
......@@ -901,7 +901,7 @@
'notifications%': 0,
'gtest_target_type%': '<(gtest_target_type)',
# TODO(jrg): when 'gtest_target_type'=='shared_libary' and
# TODO(jrg): when 'gtest_target_type'=='shared_library' and
# OS==android, make all gtest_targets depend on
# testing/android/native_test.gyp:native_test_apk.
### 'gtest_target_type': 'shared_libary',
......@@ -1349,6 +1349,9 @@
['enable_metro==1', {
'defines': ['ENABLE_METRO=1'],
}],
['OS=="android" and gtest_target_type=="shared_library"', {
'defines': ['ANDROID_APK_TEST_TARGET=1'],
}],
['fastbuild!=0', {
'conditions': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment