]> granicus.if.org Git - graphviz/commitdiff
Add test for ksh93.
authorerg <devnull@localhost>
Fri, 13 Jun 2008 17:01:23 +0000 (17:01 +0000)
committererg <devnull@localhost>
Fri, 13 Jun 2008 17:01:23 +0000 (17:01 +0000)
rtest/rtest.sh

index 81a76299cbd66982332145a23ac0fafae59e2b10..908c2c93969e8d392491df263a952651c080555e 100755 (executable)
@@ -9,6 +9,18 @@
 # on architecture, etc. Maintain common ones in REFDIR.
 #  Report differences with shared version and with new output.
 
+# bsh, linux-ksh filter
+bar=1;echo foo | read bar<<- \!         
+2
+!
+if ((bar==1))
+then
+  echo "Graphviz test suite requires ksh93"
+  exit 1
+fi
+# csh, ksh88 filter
+(( 1.5 == 1 )) && { echo "Graphviz test suite requires ksh93"; exit 1; } 
+
 TESTFILE=tests.txt     # Test specifications
 GRAPHDIR=graphs        # Directory of input graphs and data
 OUTDIR=ndata           # Directory for test output