summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-12-15 19:15:06 +0100
committerTao Bao <tbao@google.com>2016-12-20 01:53:03 +0100
commit97555da4a67d45ada0020c0ee58d1b280cb4b57d (patch)
tree4aee239ec0d258620b622a47f53a1daa6f64e131 /tests/Android.mk
parentMerge "Bugfix:updater always retry apply patch failed,when memcpy failed." (diff)
downloadandroid_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.tar
android_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.tar.gz
android_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.tar.bz2
android_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.tar.lz
android_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.tar.xz
android_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.tar.zst
android_bootable_recovery-97555da4a67d45ada0020c0ee58d1b280cb4b57d.zip
Diffstat (limited to '')
-rw-r--r--tests/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index 8ae52d799..ec725d865 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -63,6 +63,7 @@ LOCAL_SRC_FILES := \
component/applypatch_test.cpp \
component/bootloader_message_test.cpp \
component/edify_test.cpp \
+ component/imgdiff_test.cpp \
component/uncrypt_test.cpp \
component/updater_test.cpp \
component/verifier_test.cpp
@@ -81,6 +82,9 @@ LOCAL_STATIC_LIBRARIES := \
libapplypatch_modes \
libapplypatch \
libedify \
+ libimgdiff \
+ libimgpatch \
+ libbsdiff \
libotafault \
libupdater \
libbootloader_message \
@@ -88,6 +92,8 @@ LOCAL_STATIC_LIBRARIES := \
libminui \
libotautil \
libmounts \
+ libdivsufsort \
+ libdivsufsort64 \
libfs_mgr \
liblog \
libselinux \
@@ -128,3 +134,26 @@ LOCAL_GENERATED_SOURCES += $(GEN)
LOCAL_PICKUP_FILES := $(testdata_continuous_zip_prefix)
include $(BUILD_NATIVE_TEST)
+
+# Host tests
+include $(CLEAR_VARS)
+LOCAL_CFLAGS := -Werror
+LOCAL_MODULE := recovery_host_test
+LOCAL_MODULE_HOST_OS := linux
+LOCAL_C_INCLUDES := bootable/recovery
+LOCAL_SRC_FILES := \
+ component/imgdiff_test.cpp
+LOCAL_STATIC_LIBRARIES := \
+ libimgdiff \
+ libimgpatch \
+ libbsdiff \
+ libziparchive \
+ libbase \
+ libcrypto \
+ libbz \
+ libdivsufsort64 \
+ libdivsufsort \
+ libz
+LOCAL_SHARED_LIBRARIES := \
+ liblog
+include $(BUILD_HOST_NATIVE_TEST)