summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-12-28 19:18:42 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-12-28 19:18:42 +0100
commit4e2471d6dd035159f198a9d76d2422e8115ef701 (patch)
tree3e8544c0a40e1b6c777236166cc88f7954c9500c /tests/Android.mk
parentMerge "tests: Add test coverage for DirUtil." am: f24d2a6b39 (diff)
parentMerge "Add tests for imgdiff." (diff)
downloadandroid_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.tar
android_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.tar.gz
android_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.tar.bz2
android_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.tar.lz
android_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.tar.xz
android_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.tar.zst
android_bootable_recovery-4e2471d6dd035159f198a9d76d2422e8115ef701.zip
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index 17e2b7f5b..0aca8c6c7 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -65,6 +65,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
@@ -83,6 +84,9 @@ LOCAL_STATIC_LIBRARIES := \
libapplypatch_modes \
libapplypatch \
libedify \
+ libimgdiff \
+ libimgpatch \
+ libbsdiff \
libotafault \
libupdater \
libbootloader_message \
@@ -90,6 +94,8 @@ LOCAL_STATIC_LIBRARIES := \
libminui \
libotautil \
libmounts \
+ libdivsufsort \
+ libdivsufsort64 \
libfs_mgr \
liblog \
libselinux \
@@ -130,3 +136,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)