Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1692)

Unified Diff: build/android/buildbot_functions.sh

Issue 10051021: apk-based test runner work for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all_android.gyp ('k') | build/android/buildbot_fyi.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot_functions.sh
diff --git a/build/android/buildbot_functions.sh b/build/android/buildbot_functions.sh
index c830e588fd738420fe610233850486d6b2522308..20dba61610b70159beac9f4c18a8c48380e529ce 100755
--- a/build/android/buildbot_functions.sh
+++ b/build/android/buildbot_functions.sh
@@ -189,6 +189,28 @@ function bb_compile {
bb_goma_make
}
+# Re-gyp and compile with unit test bundles configured as shlibs for
+# the native test runner. Experimental for now. Once the native test
+# loader is on by default, this entire function becomes obsolete.
+function bb_native_test_compile_run_tests {
+ echo "@@@BUILD_STEP Re-gyp for the native test runner@@@"
+ GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp
+
+ echo "@@@BUILD_STEP Native test runner compile@@@"
+ bb_goma_make
+
+ # Make sure running the template prints an expected failure.
+ echo "@@@BUILD_STEP Native test runner template test@@@"
+ tempfile=/tmp/tempfile-$$.txt
+ build/android/run_tests.py --xvfb --verbose \
+ -s out/Release/replaceme_apk/ChromeNativeTests-debug.apk \
+ | sed 's/@@@STEP_FAILURE@@@//g' | tee $tempfile
+ happy_failure=$(cat $tempfile | grep RUNNER_FAILED | wc -l)
+ if [[ $happy_failure -eq 0 ]] ; then
+ echo "@@@STEP_FAILURE@@@"
+ fi
+}
+
# Experimental compile step; does not turn the tree red if it fails.
function bb_compile_experimental {
# Linking DumpRenderTree appears to hang forever?
« no previous file with comments | « build/all_android.gyp ('k') | build/android/buildbot_fyi.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698