diff options
Diffstat (limited to 'examples/redis-unstable/runtest-sentinel')
| -rwxr-xr-x | examples/redis-unstable/runtest-sentinel | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/redis-unstable/runtest-sentinel b/examples/redis-unstable/runtest-sentinel new file mode 100755 index 0000000..60d8c3c --- /dev/null +++ b/examples/redis-unstable/runtest-sentinel | |||
| @@ -0,0 +1,14 @@ | |||
| 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 Sentinel test" | ||
| 12 | exit 1 | ||
| 13 | fi | ||
| 14 | $TCLSH tests/sentinel/run.tcl $* | ||
