aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-14 03:45:23 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-06-14 08:42:16 +0000
commite121942fcd1a5853618a5b9ba1bc01ed10acf4c4 (patch)
treec01d0372806e99647d2a1a8162675e484d7996f0 /test cases/cmake
parent6c56478ee1e15477b54d92bf25b7b4b1489bfcdb (diff)
downloadmeson-e121942fcd1a5853618a5b9ba1bc01ed10acf4c4.zip
meson-e121942fcd1a5853618a5b9ba1bc01ed10acf4c4.tar.gz
meson-e121942fcd1a5853618a5b9ba1bc01ed10acf4c4.tar.bz2
Disable failing cmake jobs on VS2017
These only fail when building with msvc/clang-cl on the VS2017-Win2016 image. See: https://github.com/mesonbuild/meson/issues/7307
Diffstat (limited to 'test cases/cmake')
-rw-r--r--test cases/cmake/2 advanced/meson.build7
-rw-r--r--test cases/cmake/5 object library/meson.build7
2 files changed, 14 insertions, 0 deletions
diff --git a/test cases/cmake/2 advanced/meson.build b/test cases/cmake/2 advanced/meson.build
index a10db1c..4ebcd48 100644
--- a/test cases/cmake/2 advanced/meson.build
+++ b/test cases/cmake/2 advanced/meson.build
@@ -5,6 +5,13 @@ if not dep_test.found()
error('MESON_SKIP_TEST: zlib is not installed')
endif
+py3 = import('python').find_installation('python3')
+get_envvar = '''import os, sys; print(os.environ.get('@0@', 0), end='')'''
+# Remove this env var from azure-pipelines.yml when fixed
+if run_command(py3, '-c', get_envvar.format('CI_JOB_VS2017')).stdout() == '1'
+ error('MESON_SKIP_TEST: broken for vs2017 jobs')
+endif
+
cm = import('cmake')
# Test the "normal" subproject call
diff --git a/test cases/cmake/5 object library/meson.build b/test cases/cmake/5 object library/meson.build
index f38a2dd..40b909b 100644
--- a/test cases/cmake/5 object library/meson.build
+++ b/test cases/cmake/5 object library/meson.build
@@ -5,6 +5,13 @@ if not dep_test.found()
error('MESON_SKIP_TEST: zlib is not installed')
endif
+py3 = import('python').find_installation('python3')
+get_envvar = '''import os, sys; print(os.environ.get('@0@', 0), end='')'''
+# Remove this env var from azure-pipelines.yml when fixed
+if run_command(py3, '-c', get_envvar.format('CI_JOB_VS2017')).stdout() == '1'
+ error('MESON_SKIP_TEST: broken for vs2017 jobs')
+endif
+
cm = import('cmake')
sub_pro = cm.subproject('cmObjLib')