]> granicus.if.org Git - graphviz/commitdiff
Move shapes test code from Makefile to new script
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 16 Apr 2020 15:17:12 +0000 (17:17 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Wed, 22 Apr 2020 03:42:27 +0000 (05:42 +0200)
tests/regression_tests/shapes/Makefile.am
tests/regression_tests/shapes/shapes.sh [new file with mode: 0755]

index ac2ca2e0de4da21fdd5ceed651b2038e539e8980..64aaa8f10ac9813c00ca1d0f7ece1e9773a8700b 100644 (file)
@@ -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 (executable)
index 0000000..ba09fdb
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+cd `dirname $0`
+
+if command -v python3; then
+    python3 shapes.py
+else
+    python2 shapes.py
+fi