]> granicus.if.org Git - graphviz/commitdiff
add MSBuild exemption list to CI tool check
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 03:11:33 +0000 (20:11 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 19:53:02 +0000 (12:53 -0700)
Related to #1851.

ci/tests.py

index d58c906d922d2d0e689305af3e948fb2639b711a..2f514aa8a541733703f33c17bded6693cd2a2047 100644 (file)
@@ -48,6 +48,24 @@ def test_existence(binary: str):
     'vimdot',
   ]
 
+  tools_not_built_with_msbuild = [
+    'circo',
+    'cluster',
+    'dot2gxl',
+    'dot_builtins',
+    'fdp',
+    'gv2gxl',
+    'gvedit',
+    'gvmap.sh',
+    'gxl2dot',
+    'neato',
+    'osage',
+    'patchwork',
+    'sfdp',
+    'twopi',
+    'vimdot',
+  ]
+
   os_id = os.getenv('OS_ID')
 
   # FIXME: Remove skip when
@@ -76,6 +94,13 @@ def test_existence(binary: str):
       check_that_tool_does_not_exist(binary, os_id)
       pytest.skip(binary + ' is not built with CMake (#1753 & #1836)')
 
+  # FIXME: Remove skip when
+  # https://gitlab.com/graphviz/graphviz/-/issues/1837 is fixed
+  if os.getenv('build_system') == 'msbuild':
+    if binary in tools_not_built_with_msbuild:
+      check_that_tool_does_not_exist(binary, os_id)
+      pytest.skip(binary + ' is not built with MSBuild (#1837)')
+
   assert shutil.which(binary) is not None
 
 def check_that_tool_does_not_exist(tool, os_id):