From: Magnus Jacobsson Date: Thu, 16 Apr 2020 15:17:12 +0000 (+0200) Subject: Move shapes test code from Makefile to new script X-Git-Tag: 2.44.1~77^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65545efd3fdf688742f00b6ac2b075753ed3dfec;p=graphviz Move shapes test code from Makefile to new script --- diff --git a/tests/regression_tests/shapes/Makefile.am b/tests/regression_tests/shapes/Makefile.am index ac2ca2e0d..64aaa8f10 100644 --- a/tests/regression_tests/shapes/Makefile.am +++ b/tests/regression_tests/shapes/Makefile.am @@ -1,10 +1,8 @@ SUBDIRS = reference check test rtest: - if command -v python3; then \ - python3 shapes.py; \ - else \ - python2 shapes.py; \ - fi + ./shapes.sh -EXTRA_DIST = shapes.py +EXTRA_DIST = \ + shapes.sh \ + shapes.py diff --git a/tests/regression_tests/shapes/shapes.sh b/tests/regression_tests/shapes/shapes.sh new file mode 100755 index 000000000..ba09fdbf2 --- /dev/null +++ b/tests/regression_tests/shapes/shapes.sh @@ -0,0 +1,9 @@ +#!/bin/sh -e + +cd `dirname $0` + +if command -v python3; then + python3 shapes.py +else + python2 shapes.py +fi