Android render test quality of life (#2200)

This commit is contained in:
Bart Louwers
2024-03-15 17:36:49 +01:00
committed by GitHub
parent 63ea5dc637
commit 3e0d23d318
3 changed files with 7 additions and 4 deletions

View File

@@ -120,7 +120,6 @@ jobs:
fi
- name: Build Benchmark, copy to platform/android
if: github.ref != 'refs/heads/main'
run: |
./gradlew assembleDrawableRelease assembleDrawableReleaseAndroidTest -PtestBuildType=release
cp MapboxGLAndroidSDKTestApp/build/outputs/apk/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release.apk .

View File

@@ -3,6 +3,12 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 33
sourceSets {
test {
assets.srcDirs += ['../../../metrics']
}
}
defaultConfig {
applicationId = 'org.maplibre.render_test_runner'
minSdkVersion 21

View File

@@ -287,9 +287,7 @@ std::optional<Manifest> ManifestParser::parseManifest(const std::string& manifes
testId = testId.substr(rootLength + 1, testId.length() - rootLength - 1);
std::vector<mbgl::filesystem::path> expectedMetricPaths{expectedMetricPath};
#if defined(__ANDROID__)
expectedMetricPaths.emplace_back("/sdcard/baselines/");
#elif defined(__APPLE__)
#if defined(__APPLE__)
expectedMetricPaths.emplace_back(manifest.manifestPath + "/baselines/");
#endif
testPaths.emplace_back(testPath,