From 2876f77bbb2ca8c52c7dfd1bae5e22827d89111c Mon Sep 17 00:00:00 2001
From: Magnus Jacobsson <Magnus.Jacobsson@berotec.se>
Date: Tue, 20 Oct 2020 08:43:24 +0200
Subject: [PATCH] Add skip of all tools not built for macOS in CI using
 autotools in tools test

Fails because not all tools are built for macOS in CI using
autotools. See https://gitlab.com/graphviz/graphviz/-/issues/1854
---
 rtest/test_tools.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/rtest/test_tools.py b/rtest/test_tools.py
index dbb693d9d..2dfa0df3c 100644
--- a/rtest/test_tools.py
+++ b/rtest/test_tools.py
@@ -99,6 +99,16 @@ def test_tools(tool):
         '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
@@ -134,6 +144,13 @@ def test_tools(tool):
       if tool in tools_not_built_with_msbuild:
         pytest.skip(tool + ' 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 tool in tools_not_built_with_autotools_on_macos:
+          pytest.skip(tool + ' is not built with autotools on macOS (#1854)')
+
     # FIXME: Remove skip when
     # https://gitlab.com/graphviz/graphviz/-/issues/1838 is fixed
     if tool == 'gvpack' and platform.system() != 'Windows':
-- 
2.40.0