summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-08-26 16:03:09 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-08-26 16:08:44 +0300
commit7a2bfe32f88fee8d6a29f9e26e1f7a293aaee810 (patch)
tree3a46da1a8c726a00a2afbd1264c5a79c294f171c /test/src
parent9605cac3e979f73f7d09d580cbf1087e251f1b49 (diff)
downloadqtlocation-mapboxgl-7a2bfe32f88fee8d6a29f9e26e1f7a293aaee810.tar.gz
[tests] Make it possible to disable tests on the CI
Useful for tests that depend on a good network connection and you want to run manually.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/mbgl/test/util.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/src/mbgl/test/util.hpp b/test/src/mbgl/test/util.hpp
index 15c6bfc61a..ce0069131c 100644
--- a/test/src/mbgl/test/util.hpp
+++ b/test/src/mbgl/test/util.hpp
@@ -36,6 +36,12 @@
#define TEST_REQUIRES_SERVER(name) DISABLED_ ## name
#endif
+#if !CI_BUILD
+#define TEST_DISABLED_ON_CI(name) name
+#else
+#define TEST_DISABLED_ON_CI(name) DISABLED_ ## name
+#endif
+
#include <mbgl/util/image.hpp>
#include <mbgl/util/chrono.hpp>