From 65545efd3fdf688742f00b6ac2b075753ed3dfec Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Thu, 16 Apr 2020 17:17:12 +0200 Subject: [PATCH] Move shapes test code from Makefile to new script --- tests/regression_tests/shapes/Makefile.am | 10 ++++------ tests/regression_tests/shapes/shapes.sh | 9 +++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100755 tests/regression_tests/shapes/shapes.sh 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 -- 2.50.1