summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-10-28 17:59:47 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-10-29 13:08:57 +0000
commitc8f23fc19726245da6a11fa2d92e319b9d26c019 (patch)
tree0d61966d878c39aa30b0a3cd629554e7089619c2 /Android.mk
parent7c049c1f34220b0dc1a7f68f3b30f388bae7bdb9 (diff)
downloadart-c8f23fc19726245da6a11fa2d92e319b9d26c019.zip
art-c8f23fc19726245da6a11fa2d92e319b9d26c019.tar.gz
art-c8f23fc19726245da6a11fa2d92e319b9d26c019.tar.bz2
Provide an option to run run-tests with a local dalvikvm.
Instead of overwriting /system, use a temporary directory to push the binaries and libraries, and use them for running the tests. Change-Id: I45fa2ac51f836686d8e8676907eb26629f7ab2ab
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 22bf305..d11d011 100644
--- a/Android.mk
+++ b/Android.mk
@@ -137,10 +137,17 @@ include $(art_path)/test/Android.run-test.mk
# Sync test files to the target, depends upon all things that must be pushed to the target.
.PHONY: test-art-target-sync
+ifeq ($(ART_TEST_ANDROID_ROOT),)
test-art-target-sync: $(TEST_ART_TARGET_SYNC_DEPS)
adb root
adb wait-for-device remount
adb sync
+else
+test-art-target-sync: $(TEST_ART_TARGET_SYNC_DEPS)
+ adb root
+ adb wait-for-device push $(ANDROID_PRODUCT_OUT)/system $(ART_TEST_ANDROID_ROOT)
+ adb push $(ANDROID_PRODUCT_OUT)/data /data
+endif
# Undefine variable now its served its purpose.
TEST_ART_TARGET_SYNC_DEPS :=