tests: Create res-testdata for testdata pickup.
It doesn't change the functionality of the test, but allows easier conversion to Soong. Test: Run recovery_component_test on marlin. Change-Id: Ic7419dc86c6b220531ae44e49ab4657394a5d7fa
This commit is contained in:
parent
afa16480aa
commit
13f9816e14
7 changed files with 11 additions and 5 deletions
|
@ -208,7 +208,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
|
||||
|
|
|
@ -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")) {
|
||||
|
|
1
tests/res-testdata/res-hdpi
Symbolic link
1
tests/res-testdata/res-hdpi
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../res-hdpi
|
1
tests/res-testdata/res-mdpi
Symbolic link
1
tests/res-testdata/res-mdpi
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../res-mdpi
|
1
tests/res-testdata/res-xhdpi
Symbolic link
1
tests/res-testdata/res-xhdpi
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../res-xhdpi
|
1
tests/res-testdata/res-xxhdpi
Symbolic link
1
tests/res-testdata/res-xxhdpi
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../res-xxhdpi
|
1
tests/res-testdata/res-xxxhdpi
Symbolic link
1
tests/res-testdata/res-xxxhdpi
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../res-xxxhdpi
|
Loading…
Reference in a new issue