summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-01-19 20:28:37 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-19 20:28:37 +0100
commit444732f7a0b52373fdc4b9fc180b7f0805437474 (patch)
tree69907361452505ee46dd1b7c10f596537d6800e7 /tests/Android.mk
parentMerge "DO NOT MERGE: Add a checker for signature boundary in verifier am: f616da1726 am: 5346da0220 -s ours am: a41cc29447 -s ours am: 051dfa7ec3 -s ours am: 94c8b5e5a6 am: 2b1bcab427 -s ours am: 37a5941440 am: ddca75fb0a am: b21b92b386 am: 8a51334062 -s ours am: 67b69c05c6 am: 8f9e3c9bd9 am: 8953f919e4 am: d0bfa33c66 am: 4aa56ad477" into nyc-mr2-dev-plus-aosp (diff)
parentMerge "Add checkers and tests for empty locale in PNG file" am: 69e73ab7a9 am: a38224eadb (diff)
downloadandroid_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.tar
android_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.tar.gz
android_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.tar.bz2
android_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.tar.lz
android_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.tar.xz
android_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.tar.zst
android_bootable_recovery-444732f7a0b52373fdc4b9fc180b7f0805437474.zip
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk28
1 files changed, 26 insertions, 2 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index 1203817a2..1dbd2b614 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -49,10 +49,34 @@ LOCAL_CLANG := true
LOCAL_CFLAGS := -Werror
LOCAL_MODULE := recovery_manual_test
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
-LOCAL_STATIC_LIBRARIES := libbase
+LOCAL_STATIC_LIBRARIES := \
+ libminui \
+ libbase
LOCAL_SRC_FILES := manual/recovery_test.cpp
-LOCAL_SHARED_LIBRARIES := liblog
+LOCAL_SHARED_LIBRARIES := \
+ liblog \
+ libpng
+
+resource_files := $(call find-files-in-subdirs, bootable/recovery, \
+ "*_text.png", \
+ res-mdpi/images \
+ res-hdpi/images \
+ res-xhdpi/images \
+ res-xxhdpi/images \
+ res-xxxhdpi/images \
+ )
+
+# The resource image files that will go to $OUT/data/nativetest/recovery.
+testimage_out_path := $(TARGET_OUT_DATA)/nativetest/recovery
+GEN := $(addprefix $(testimage_out_path)/, $(resource_files))
+
+$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
+$(GEN): PRIVATE_CUSTOM_TOOL = cp $< $@
+$(GEN): $(testimage_out_path)/% : bootable/recovery/%
+ $(transform-generated-source)
+LOCAL_GENERATED_SOURCES += $(GEN)
+
include $(BUILD_NATIVE_TEST)
# Component tests