]> git.saurik.com Git - redis.git/blob - tests/integration/rdb.tcl
Contextualize comment.
[redis.git] / tests / integration / rdb.tcl
1 set server_path [tmpdir "server.rdb-encoding-test"]
2
3 # Copy RDB with different encodings in server path
4 exec cp tests/assets/encodings.rdb $server_path
5
6 start_server [list overrides [list "dir" $server_path "dbfilename" "encodings.rdb"]] {
7 test "RDB encoding loading test" {
8 r select 0
9 csvdump r
10 } {"compressible","string","aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
11 "hash","hash","a","1","aa","10","aaa","100","b","2","bb","20","bbb","200","c","3","cc","30","ccc","300","ddd","400","eee","5000000000",
12 "hash_zipped","hash","a","1","b","2","c","3",
13 "list","list","1","2","3","a","b","c","100000","6000000000","1","2","3","a","b","c","100000","6000000000","1","2","3","a","b","c","100000","6000000000",
14 "list_zipped","list","1","2","3","a","b","c","100000","6000000000",
15 "number","string","10"
16 "set","set","1","100000","2","3","6000000000","a","b","c",
17 "set_zipped_1","set","1","2","3","4",
18 "set_zipped_2","set","100000","200000","300000","400000",
19 "set_zipped_3","set","1000000000","2000000000","3000000000","4000000000","5000000000","6000000000",
20 "string","string","Hello World"
21 "zset","zset","a","1","b","2","c","3","aa","10","bb","20","cc","30","aaa","100","bbb","200","ccc","300","aaaa","1000","cccc","123456789","bbbb","5000000000",
22 "zset_zipped","zset","a","1","b","2","c","3",
23 }
24 }
25