aboutsummaryrefslogtreecommitdiff
path: root/test cases/cmake
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-06-14 11:44:59 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-06-15 05:46:25 +0000
commita44dc67cb7533592f86fd2b4f3ae979f5a901405 (patch)
treeccbf3ce05ef6240b7a367b62fa156c0c8289ee49 /test cases/cmake
parenteab0e5a8b3a575ead36fa99ac9154d6e960d4525 (diff)
downloadmeson-a44dc67cb7533592f86fd2b4f3ae979f5a901405.zip
meson-a44dc67cb7533592f86fd2b4f3ae979f5a901405.tar.gz
meson-a44dc67cb7533592f86fd2b4f3ae979f5a901405.tar.bz2
ci: Use test.json to skip VS2017 azure tests
See also #7307 #7314 #7316 cc @nirbheek
Diffstat (limited to 'test cases/cmake')
-rw-r--r--test cases/cmake/2 advanced/meson.build7
-rw-r--r--test cases/cmake/2 advanced/test.json5
-rw-r--r--test cases/cmake/5 object library/meson.build7
-rw-r--r--test cases/cmake/5 object library/test.json7
4 files changed, 12 insertions, 14 deletions
diff --git a/test cases/cmake/2 advanced/meson.build b/test cases/cmake/2 advanced/meson.build
index 4ebcd48..a10db1c 100644
--- a/test cases/cmake/2 advanced/meson.build
+++ b/test cases/cmake/2 advanced/meson.build
@@ -5,13 +5,6 @@ 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/2 advanced/test.json b/test cases/cmake/2 advanced/test.json
index e12f530..f4cb58b 100644
--- a/test cases/cmake/2 advanced/test.json
+++ b/test cases/cmake/2 advanced/test.json
@@ -1,4 +1,9 @@
{
+ "matrix": {
+ "options": {
+ "_": [{"val": null, "skip_on_env": ["CI_JOB_VS2017"]}]
+ }
+ },
"installed": [
{"type": "expr", "file": "usr/?lib/libcm_cmModLib?so"},
{"type": "implib", "platform": "cygwin", "file": "usr/lib/libcm_cmModLib"},
diff --git a/test cases/cmake/5 object library/meson.build b/test cases/cmake/5 object library/meson.build
index 40b909b..f38a2dd 100644
--- a/test cases/cmake/5 object library/meson.build
+++ b/test cases/cmake/5 object library/meson.build
@@ -5,13 +5,6 @@ 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')
diff --git a/test cases/cmake/5 object library/test.json b/test cases/cmake/5 object library/test.json
new file mode 100644
index 0000000..1840ce4
--- /dev/null
+++ b/test cases/cmake/5 object library/test.json
@@ -0,0 +1,7 @@
+{
+ "matrix": {
+ "options": {
+ "_": [{"val": null, "skip_on_env": ["CI_JOB_VS2017"]}]
+ }
+ }
+}