summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-08-14 05:11:36 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-08-14 05:11:36 +0200
commit1b91bf6f4ff42553253ed8658517070707153645 (patch)
treeb6c795f960aa2d52ff5bf32ab9c946149a41a438 /tests
parentSnap for 4949134 from eee4b3a61b42f4b5c89c3b672971b2e16f24dd9c to qt-release (diff)
parentMerge "Reland "Build and use minadbd as a shared library."" am: 337bd80b78 am: 7785eec4f2 (diff)
downloadandroid_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.tar
android_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.tar.gz
android_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.tar.bz2
android_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.tar.lz
android_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.tar.xz
android_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.tar.zst
android_bootable_recovery-1b91bf6f4ff42553253ed8658517070707153645.zip
Diffstat (limited to 'tests')
-rw-r--r--tests/Android.mk4
-rw-r--r--tests/component/resources_test.cpp9
l---------tests/res-testdata/res-hdpi1
l---------tests/res-testdata/res-mdpi1
l---------tests/res-testdata/res-xhdpi1
l---------tests/res-testdata/res-xxhdpi1
l---------tests/res-testdata/res-xxxhdpi1
7 files changed, 11 insertions, 7 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index 3d3e63e7e..b6f5b451f 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -170,14 +170,12 @@ librecovery_static_libraries := \
librecovery \
libbootloader_message \
libfusesideload \
- libminadbd \
librecovery_ui_default \
librecovery_ui \
libminui \
libverifier \
libotautil \
$(health_hal_static_libraries) \
- libasyncio \
libcrypto_utils \
libcrypto \
libext4_utils \
@@ -208,7 +206,7 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_TEST_DATA := \
$(call find-test-data-in-subdirs, $(LOCAL_PATH), "*", testdata) \
- $(call find-test-data-in-subdirs, bootable/recovery, "*_text.png", res-*)
+ $(call find-test-data-in-subdirs, $(LOCAL_PATH), "*_text.png", res-testdata)
include $(BUILD_NATIVE_TEST)
# Host tests
diff --git a/tests/component/resources_test.cpp b/tests/component/resources_test.cpp
index 618d5a4dd..b00c3d528 100644
--- a/tests/component/resources_test.cpp
+++ b/tests/component/resources_test.cpp
@@ -32,10 +32,11 @@
static const std::string kLocale = "zu";
-static const std::vector<std::string> kResourceImagesDirs{ "res-mdpi/images/", "res-hdpi/images/",
- "res-xhdpi/images/",
- "res-xxhdpi/images/",
- "res-xxxhdpi/images/" };
+static const std::vector<std::string> kResourceImagesDirs{
+ "res-testdata/res-mdpi/images/", "res-testdata/res-hdpi/images/",
+ "res-testdata/res-xhdpi/images/", "res-testdata/res-xxhdpi/images/",
+ "res-testdata/res-xxxhdpi/images/",
+};
static int png_filter(const dirent* de) {
if (de->d_type != DT_REG || !android::base::EndsWith(de->d_name, "_text.png")) {
diff --git a/tests/res-testdata/res-hdpi b/tests/res-testdata/res-hdpi
new file mode 120000
index 000000000..c339b1df4
--- /dev/null
+++ b/tests/res-testdata/res-hdpi
@@ -0,0 +1 @@
+../../res-hdpi \ No newline at end of file
diff --git a/tests/res-testdata/res-mdpi b/tests/res-testdata/res-mdpi
new file mode 120000
index 000000000..4be630d6f
--- /dev/null
+++ b/tests/res-testdata/res-mdpi
@@ -0,0 +1 @@
+../../res-mdpi \ No newline at end of file
diff --git a/tests/res-testdata/res-xhdpi b/tests/res-testdata/res-xhdpi
new file mode 120000
index 000000000..429eead83
--- /dev/null
+++ b/tests/res-testdata/res-xhdpi
@@ -0,0 +1 @@
+../../res-xhdpi \ No newline at end of file
diff --git a/tests/res-testdata/res-xxhdpi b/tests/res-testdata/res-xxhdpi
new file mode 120000
index 000000000..304cc28b3
--- /dev/null
+++ b/tests/res-testdata/res-xxhdpi
@@ -0,0 +1 @@
+../../res-xxhdpi \ No newline at end of file
diff --git a/tests/res-testdata/res-xxxhdpi b/tests/res-testdata/res-xxxhdpi
new file mode 120000
index 000000000..2236ad8cc
--- /dev/null
+++ b/tests/res-testdata/res-xxxhdpi
@@ -0,0 +1 @@
+../../res-xxxhdpi \ No newline at end of file