2019-03-24 06:03:03 -04:00
|
|
|
#!/bin/sh
|
|
|
|
TCL_VERSIONS="8.5 8.6"
|
|
|
|
TCLSH=""
|
2020-12-13 10:09:54 -05:00
|
|
|
[ -z "$MAKE" ] && MAKE=make
|
2019-03-24 06:03:03 -04:00
|
|
|
|
|
|
|
for VERSION in $TCL_VERSIONS; do
|
|
|
|
TCL=`which tclsh$VERSION 2>/dev/null` && TCLSH=$TCL
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -z $TCLSH ]
|
|
|
|
then
|
2020-08-11 06:35:20 -04:00
|
|
|
echo "You need tcl 8.5 or newer in order to run the Redis ModuleApi test"
|
2019-03-24 06:03:03 -04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-12-13 10:09:54 -05:00
|
|
|
$MAKE -C tests/modules && \
|
2019-10-24 02:38:52 -04:00
|
|
|
$TCLSH tests/test_helper.tcl \
|
|
|
|
--single unit/moduleapi/commandfilter \
|
2021-06-22 05:26:48 -04:00
|
|
|
--single unit/moduleapi/basics \
|
2019-10-24 02:38:52 -04:00
|
|
|
--single unit/moduleapi/fork \
|
|
|
|
--single unit/moduleapi/testrdb \
|
|
|
|
--single unit/moduleapi/infotest \
|
2021-06-01 05:51:30 -04:00
|
|
|
--single unit/moduleapi/infra \
|
2019-10-24 02:38:52 -04:00
|
|
|
--single unit/moduleapi/propagate \
|
|
|
|
--single unit/moduleapi/hooks \
|
|
|
|
--single unit/moduleapi/misc \
|
2018-03-29 06:46:13 -04:00
|
|
|
--single unit/moduleapi/blockonkeys \
|
2021-01-29 08:38:30 -05:00
|
|
|
--single unit/moduleapi/blockonbackground \
|
2019-10-17 08:37:01 -04:00
|
|
|
--single unit/moduleapi/scan \
|
2019-11-19 05:08:02 -05:00
|
|
|
--single unit/moduleapi/datatype \
|
2019-02-25 20:23:11 -05:00
|
|
|
--single unit/moduleapi/auth \
|
2020-07-23 05:38:51 -04:00
|
|
|
--single unit/moduleapi/keyspace_events \
|
2020-09-09 09:01:16 -04:00
|
|
|
--single unit/moduleapi/blockedclient \
|
2020-10-05 10:06:35 -04:00
|
|
|
--single unit/moduleapi/getkeys \
|
2020-11-16 03:34:04 -05:00
|
|
|
--single unit/moduleapi/test_lazyfree \
|
2020-12-13 02:56:01 -05:00
|
|
|
--single unit/moduleapi/defrag \
|
2021-02-15 04:40:05 -05:00
|
|
|
--single unit/moduleapi/hash \
|
2021-02-05 12:54:01 -05:00
|
|
|
--single unit/moduleapi/zset \
|
2021-09-14 10:48:06 -04:00
|
|
|
--single unit/moduleapi/list \
|
2021-01-28 09:19:43 -05:00
|
|
|
--single unit/moduleapi/stream \
|
2021-06-16 02:45:49 -04:00
|
|
|
--single unit/moduleapi/datatype2 \
|
2019-10-24 02:38:52 -04:00
|
|
|
"${@}"
|