]> granicus.if.org Git - graphviz/commitdiff
Add new tools test that tests that all tools can be started
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sat, 19 Sep 2020 15:39:31 +0000 (17:39 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:47:15 +0000 (14:47 +0200)
rtest/test_tools.py [new file with mode: 0644]

diff --git a/rtest/test_tools.py b/rtest/test_tools.py
new file mode 100644 (file)
index 0000000..0afe8a0
--- /dev/null
@@ -0,0 +1,38 @@
+import pytest
+import subprocess
+
+@pytest.mark.parametrize('tool', [
+    'acyclic',
+    'bcomps',
+    'ccomps',
+    'diffimg',
+    'dijkstra',
+    'dot',
+    'dotty',
+    'edgepaint',
+    'gc',
+    'gml2gv',
+    'graphml2gv',
+    'gv2gml',
+    'gvcolor',
+    'gvgen',
+    'gvmap',
+    'gvpack',
+    'gvpr',
+    'gxl2gv',
+    'lefty',
+    'lneato',
+    'mingle',
+    'mm2gv',
+    'nop',
+    'prune',
+    'sccmap',
+    'smyrna',
+    'tred',
+    'unflatten',
+])
+def test_tools(tool):
+    subprocess.check_call(
+        [tool, '-?'],
+        stdin=subprocess.DEVNULL,
+    )