Skip to content

Commit

Permalink
Check available tcl versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem committed Jan 23, 2013
1 parent 61853a9 commit a405979
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions runtest
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/sh
TCL=tclsh8.5
which $TCL
if [ "$?" != "0" ]
TCL_VERSIONS="8.5 8.6"
TCLSH=""

for VERSION in $TCL_VERSIONS; do
TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL
done

if [ -z $TCLSH ]
then
echo "You need '$TCL' in order to run the Redis test"
echo "You need tcl 8.5 or newer in order to run the Redis test"
exit 1
fi
$TCL tests/test_helper.tcl $*
$TCLSH tests/test_helper.tcl $*

0 comments on commit a405979

Please sign in to comment.