Merge pull request #3 from tair-opensource/add-list

feat: add support for list
This commit is contained in:
bodong.ybd 2023-07-17 10:07:53 +08:00 committed by GitHub
commit c3bfd9fabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 778 additions and 6 deletions

View File

@ -22,7 +22,7 @@ optional arguments:
--port PORT the redis port --port PORT the redis port
--password PASSWORD the redis password --password PASSWORD the redis password
--testfile TESTFILE the redis compatibility test cases --testfile TESTFILE the redis compatibility test cases
--specific-version {1.0.0,2.8.0,4.0.0,5.0.0,6.0.0,6.2.0,7.0.0} --specific-version {1.0.0, 2.8.0, 3.2.0, 4.0.0, 5.0.0, 6.0.0, 6.2.0, 7.0.0}
the redis version the redis version
--show-failed show details of failed tests --show-failed show details of failed tests
--cluster server is a node of the Redis cluster --cluster server is a node of the Redis cluster
@ -33,11 +33,12 @@ Examples:
Test whether host:port is compatible with redis 6.2.0 and display failure case: Test whether host:port is compatible with redis 6.2.0 and display failure case:
``` ```
$ python3 redis_compatibility_test.py -h host -p port --testfile cts.json --specific-version 6.2.0 --show-failed $ python3 redis_compatibility_test.py -h host -p port --testfile cts.json --specific-version 6.2.0 --show-failed
test: pexpiretime command version skipped Connecting to 127.0.0.1:6379 use standalone client
test: persist command passed test: del command passed
test: unlink command passed
... ...
test: set command passed test: rpushx with multiple element passed
-------- The result of tests -------- -------- The result of tests --------
version: 6.2.0, total tests: 17, passed: 17, rate: 100.0% version: 6.2.0, total tests: 62, passed: 62, rate: 100.0%
``` ```
More examples are shown `python3 redis_compatibility_test.py -h`. More examples are shown `python3 redis_compatibility_test.py -h`.

773
cts.json

File diff suppressed because it is too large Load Diff