1*572c4311Sfengbojiang#!/bin/sh 2*572c4311SfengbojiangTCL_VERSIONS="8.5 8.6" 3*572c4311SfengbojiangTCLSH="" 4*572c4311Sfengbojiang 5*572c4311Sfengbojiangfor VERSION in $TCL_VERSIONS; do 6*572c4311Sfengbojiang TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL 7*572c4311Sfengbojiangdone 8*572c4311Sfengbojiang 9*572c4311Sfengbojiangif [ -z $TCLSH ] 10*572c4311Sfengbojiangthen 11*572c4311Sfengbojiang echo "You need tcl 8.5 or newer in order to run the Redis test" 12*572c4311Sfengbojiang exit 1 13*572c4311Sfengbojiangfi 14*572c4311Sfengbojiang 15*572c4311Sfengbojiangmake -C tests/modules && \ 16*572c4311Sfengbojiang$TCLSH tests/test_helper.tcl --single unit/moduleapi/commandfilter "${@}" 17