2019-03-24 10:03:03 +00:00
|
|
|
#!/bin/sh
|
2021-09-15 10:04:31 +00:00
|
|
|
TCL_VERSIONS="8.5 8.6 8.7"
|
2019-03-24 10:03:03 +00:00
|
|
|
TCLSH=""
|
2020-12-13 15:09:54 +00:00
|
|
|
[ -z "$MAKE" ] && MAKE=make
|
2019-03-24 10:03:03 +00:00
|
|
|
|
|
|
|
for VERSION in $TCL_VERSIONS; do
|
|
|
|
TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -z $TCLSH ]
|
|
|
|
then
|
2024-04-03 23:17:38 +00:00
|
|
|
echo "You need tcl 8.5 or newer in order to run the Valkey ModuleApi test"
|
2019-03-24 10:03:03 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-12-13 15:09:54 +00:00
|
|
|
$MAKE -C tests/modules && \
|
2024-09-17 11:50:38 +00:00
|
|
|
$TCLSH tests/test_helper.tcl --moduleapi "${@}"
|