]> granicus.if.org Git - graphviz/commitdiff
add exemption list for Autotools macOS build in CI tool check
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Oct 2020 03:13:39 +0000 (20:13 -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 2f514aa8a541733703f33c17bded6693cd2a2047..8e4119c03d09c6b63aeaaf19ad0d070e3729488f 100644 (file)
@@ -4,6 +4,7 @@
 test cases that are only relevant to run in CI
 '''
 
+import platform
 import pytest
 import shutil
 import subprocess
@@ -66,6 +67,16 @@ def test_existence(binary: str):
     'vimdot',
   ]
 
+  tools_not_built_with_autotools_on_macos = [
+    'dotty',
+    'gvedit',
+    'lefty',
+    'lneato',
+    'mingle',
+    'smyrna',
+    'vimdot',
+  ]
+
   os_id = os.getenv('OS_ID')
 
   # FIXME: Remove skip when
@@ -101,6 +112,14 @@ def test_existence(binary: str):
       check_that_tool_does_not_exist(binary, os_id)
       pytest.skip(binary + ' is not built with MSBuild (#1837)')
 
+  # FIXME: Remove skip when
+  # https://gitlab.com/graphviz/graphviz/-/issues/1854 is fixed
+  if os.getenv('build_system') == 'autotools':
+    if platform.system() == 'Darwin':
+      if binary in tools_not_built_with_autotools_on_macos:
+        check_that_tool_does_not_exist(binary, os_id)
+        pytest.skip(binary + ' is not built with autotools on macOS (#1854)')
+
   assert shutil.which(binary) is not None
 
 def check_that_tool_does_not_exist(tool, os_id):