Skip to content

Commit a405979

Browse files
committed
Check available tcl versions
1 parent 61853a9 commit a405979

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

runtest

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#!/bin/sh
2-
TCL=tclsh8.5
3-
which $TCL
4-
if [ "$?" != "0" ]
2+
TCL_VERSIONS="8.5 8.6"
3+
TCLSH=""
4+
5+
for VERSION in $TCL_VERSIONS; do
6+
TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL
7+
done
8+
9+
if [ -z $TCLSH ]
510
then
6-
echo "You need '$TCL' in order to run the Redis test"
11+
echo "You need tcl 8.5 or newer in order to run the Redis test"
712
exit 1
813
fi
9-
$TCL tests/test_helper.tcl $*
14+
$TCLSH tests/test_helper.tcl $*

0 commit comments

Comments
 (0)