xref: /f-stack/app/redis-5.0.5/runtest-moduleapi (revision 572c4311)
1#!/bin/sh
2TCL_VERSIONS="8.5 8.6"
3TCLSH=""
4
5for VERSION in $TCL_VERSIONS; do
6	TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL
7done
8
9if [ -z $TCLSH ]
10then
11    echo "You need tcl 8.5 or newer in order to run the Redis test"
12    exit 1
13fi
14
15make -C tests/modules && \
16$TCLSH tests/test_helper.tcl --single unit/moduleapi/commandfilter "${@}"
17