"Fossies" - the Fresh Open Source Software Archive

Member "redis-7.0.8/runtest-cluster" (16 Jan 2023, 283 Bytes) of package /linux/misc/redis-7.0.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 TCL_VERSIONS="8.5 8.6 8.7"
    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 ]
   10 then
   11     echo "You need tcl 8.5 or newer in order to run the Redis Cluster test"
   12     exit 1
   13 fi
   14 $TCLSH tests/cluster/run.tcl $*