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