From: Magnus Jacobsson Date: Sun, 19 Apr 2020 16:44:27 +0000 (+0200) Subject: Add test_shapes.py X-Git-Tag: 2.44.1~76^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b1349bb9f8d01aa02982fd559fcb069cab785e8;p=graphviz Add test_shapes.py --- diff --git a/tests/regression_tests/shapes/Makefile.am b/tests/regression_tests/shapes/Makefile.am index 64aaa8f10..46a0c36c7 100644 --- a/tests/regression_tests/shapes/Makefile.am +++ b/tests/regression_tests/shapes/Makefile.am @@ -5,4 +5,5 @@ check test rtest: EXTRA_DIST = \ shapes.sh \ + test_shapes.py \ shapes.py diff --git a/tests/regression_tests/shapes/test_shapes.py b/tests/regression_tests/shapes/test_shapes.py new file mode 100644 index 000000000..33e1fe64d --- /dev/null +++ b/tests/regression_tests/shapes/test_shapes.py @@ -0,0 +1,11 @@ +import subprocess +import os +import sys + +def test_shapes(): + python_version = sys.version_info[0] + os.chdir(os.path.dirname(os.path.realpath(__file__))) + result = subprocess.Popen(['python' + str(python_version), './shapes.py']) + text = result.communicate()[0] + print(text) + assert result.returncode == 0