]> granicus.if.org Git - graphviz/commitdiff
Skip execution of all tools not built with CMake in tools test for CMake builds
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 25 Sep 2020 14:57:05 +0000 (16:57 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:47:15 +0000 (14:47 +0200)
Fails because not all tools are built with CMake. See
https://gitlab.com/graphviz/graphviz/-/issues/1753 and
https://gitlab.com/graphviz/graphviz/-/issues/1836.

rtest/test_tools.py

index 09ff599b3dc7b94af5b115d3a398b1215d60a9aa..780785771c0577c21c1691436b295218a6628e15 100644 (file)
@@ -34,6 +34,21 @@ import subprocess
 ])
 def test_tools(tool):
 
+    tools_not_built_with_cmake = [
+        'diffimg',
+        'dotty',
+        'edgepaint',
+        'gc',
+        'gv2gml',
+        'gvmap',
+        'gvpr',
+        'lefty',
+        'lneato',
+        'mingle',
+        'prune',
+        'smyrna',
+    ]
+
     os_id = os.getenv('OS_ID')
 
     # FIXME: Remove skip when
@@ -51,6 +66,13 @@ def test_tools(tool):
     if tool == 'mingle' and os_id in ['ubuntu', 'centos']:
       pytest.skip('mingle is not built for ' + os_id + ' (#1835)')
 
+    # FIXME: Remove skip when
+    # https://gitlab.com/graphviz/graphviz/-/issues/1753 and
+    # https://gitlab.com/graphviz/graphviz/-/issues/1836 is fixed
+    if os.getenv('build_system') == 'cmake':
+      if tool in tools_not_built_with_cmake:
+        pytest.skip(tool + ' is not built with CMake (#1753 & #1836)')
+
     subprocess.check_call(
         [tool, '-?'],
         stdin=subprocess.DEVNULL,