Skip to content

Commit 3736f7b

Browse files
committed
adding support for targetted redis versions
Any AI variant can now run against a specific version of redis, or versions, as defined in its own file
1 parent 09adf23 commit 3736f7b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

tests/qa/RS_VERSIONS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
6.0.12-58
21
100.0.0-2400

tests/qa/RS_VERSIONS-lite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
6.0.12-58
2+
100.0.0-2400

tests/qa/run

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fi
3030
export RS_MODULE=RedisAI
3131
export RS_MODULE_LC=${RS_MODULE,,}
3232
export RS_MODULE_FILE_PREFIX=redisai-cpu
33-
export VARIANT=${VARIANT}
33+
export VARIANT=${VARIANT} # for variants such as RedisAILite. We append -lite (see circleci for an example)
3434

3535
if [[ -z $QA_AUTOMATION_TOKEN && $NOP != 1 ]]; then
3636
echo "Variable QA_AUTOMATION_TOKEN is undefined." >&2
@@ -90,10 +90,12 @@ run_test() {
9090
}
9191

9292
rc=0
93+
# By default we use RS_VERSIONS, but with variants they may need to specify their own redis verisons, hence this file
94+
VERSIONFILE=${HERE}/RS_VERSIONS${VARIANT}
9395
if [[ $QUICK == 1 ]]; then
94-
RS_VERSIONS=$(cat $HERE/RS_VERSIONS | head -1)
96+
RS_VERSIONS=$(cat $VERSIONFILE | head -1)
9597
else
96-
RS_VERSIONS=$(cat $HERE/RS_VERSIONS)
98+
RS_VERSIONS=$(cat $VERSIONFILE)
9799
fi
98100
for RS_VERSION in $RS_VERSIONS; do
99101
run_test $RS_VERSION

0 commit comments

Comments
 (0)