From ad903955bf1e666fd29c4dba038e7aecb486723a Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 19 Sep 2020 17:39:31 +0200 Subject: [PATCH] Add new tools test that tests that all tools can be started --- rtest/test_tools.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 rtest/test_tools.py 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, + ) -- 2.50.1