])
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
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,