summaryrefslogtreecommitdiff
path: root/next
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2019-10-23 12:04:23 +0300
committerGitHub <noreply@github.com>2019-10-23 12:04:23 +0300
commit2385f4cd86261cdfc6253de5fed217bfc06fa6c8 (patch)
tree8d5e98b83efce930ff8b9454d75c3eedc8513a22 /next
parent99feb9bb306ddf06c228f0b6bbfb88abead6b33a (diff)
downloadqtlocation-mapboxgl-2385f4cd86261cdfc6253de5fed217bfc06fa6c8.tar.gz
[render-test] Add configurable rootPath, ignorePath via CLI arguments (#15832)
* [render-test] Add configurable path via CLI arguments * [render-test] Change ignore path config
Diffstat (limited to 'next')
-rw-r--r--next/platform/linux/linux.cmake6
-rw-r--r--next/platform/macos/macos.cmake4
2 files changed, 7 insertions, 3 deletions
diff --git a/next/platform/linux/linux.cmake b/next/platform/linux/linux.cmake
index 6a68a1f2d2..5bde30a61a 100644
--- a/next/platform/linux/linux.cmake
+++ b/next/platform/linux/linux.cmake
@@ -149,5 +149,9 @@ add_test(
WORKING_DIRECTORY ${MBGL_ROOT}
)
-add_test(NAME mbgl-render-test-probes COMMAND mbgl-render-test-runner tests --rootPath=render-test WORKING_DIRECTORY ${MBGL_ROOT})
+add_test(
+ NAME mbgl-render-test-probes
+ COMMAND mbgl-render-test-runner tests --rootPath=${MBGL_ROOT}/render-test
+ WORKING_DIRECTORY ${MBGL_ROOT}
+)
add_test(NAME mbgl-query-test COMMAND mbgl-render-test-runner query-tests WORKING_DIRECTORY ${MBGL_ROOT})
diff --git a/next/platform/macos/macos.cmake b/next/platform/macos/macos.cmake
index 71e53c474a..cfabcb1cfa 100644
--- a/next/platform/macos/macos.cmake
+++ b/next/platform/macos/macos.cmake
@@ -218,8 +218,8 @@ add_test(
COMMAND
mbgl-render-test-runner
tests
- --rootPath=render-test
- --expectationsPath=render-test/tests/mac
+ --rootPath=${MBGL_ROOT}/render-test
+ --expectationsPath=tests/mac
WORKING_DIRECTORY ${MBGL_ROOT}
)