summaryrefslogtreecommitdiff
path: root/next
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2019-11-25 18:16:03 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2019-11-29 15:08:34 +0200
commit2e93f1e9823f0994224d6fd6836987a0e5b2d7ff (patch)
treea4cfe687673a2aecbe77c5b87705c89bd8539cba /next
parent0ba4b5c93fdf99ebfed199bace60a4fa3ae2933e (diff)
downloadqtlocation-mapboxgl-2e93f1e9823f0994224d6fd6836987a0e5b2d7ff.tar.gz
[test-runner] Run render tests with metrics on linux
Diffstat (limited to 'next')
-rw-r--r--next/platform/linux/linux.cmake26
1 files changed, 21 insertions, 5 deletions
diff --git a/next/platform/linux/linux.cmake b/next/platform/linux/linux.cmake
index 52aba6ea95..39777c93f6 100644
--- a/next/platform/linux/linux.cmake
+++ b/next/platform/linux/linux.cmake
@@ -135,8 +135,24 @@ add_test(
--seed=${MBGL_RENDER_TEST_SEED}
)
-add_test(
- NAME mbgl-render-test-probes
- COMMAND mbgl-render-test-runner tests --manifestPath=${MBGL_ROOT}/render-test/linux-probe-manifest.json
-)
-add_test(NAME mbgl-query-test COMMAND mbgl-render-test-runner query-tests --manifestPath=${MBGL_ROOT}/render-test/linux-manifest.json)
+if(CMAKE_C_COMPILER MATCHES clang OR CMAKE_BUILD_TYPE MATCHES Debug)
+ add_test(
+ NAME mbgl-render-test-probe-unit-tests
+ COMMAND mbgl-render-test-runner tests --manifestPath=${MBGL_ROOT}/render-test/linux-probe-manifest.json
+ )
+else()
+ add_test(
+ NAME mbgl-render-test-probe-gfx-network
+ COMMAND mbgl-render-test-runner render-tests --manifestPath=${MBGL_ROOT}/render-test/linux-manifest-probe-gfx-network.json
+ )
+ add_test(
+ NAME mbgl-render-test-probe-memory
+ COMMAND
+ mbgl-render-test-runner
+ render-tests
+ --manifestPath=${MBGL_ROOT}/render-test/linux-manifest-probe-memory.json
+ --filter=real-world
+ )
+endif()
+
+add_test(NAME mbgl-query-test COMMAND mbgl-render-test-runner query-tests --manifestPath=${MBGL_ROOT}/render-test/linux-query-manifest.json)