Android render test quality of life (#2200)
This commit is contained in:
1
.github/workflows/android-ci.yml
vendored
1
.github/workflows/android-ci.yml
vendored
@@ -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 .
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user