From: Magnus Jacobsson Date: Sat, 19 Sep 2020 15:39:31 +0000 (+0200) Subject: Add new tools test that tests that all tools can be started X-Git-Tag: 2.46.0~20^2^2~55^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad903955bf1e666fd29c4dba038e7aecb486723a;p=graphviz Add new tools test that tests that all tools can be started --- diff --git a/rtest/test_tools.py b/rtest/test_tools.py new file mode 100644 index 000000000..0afe8a01b --- /dev/null +++ b/rtest/test_tools.py @@ -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, + )