Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
27688de1
Commit
27688de1
authored
Mar 23, 2012
by
antirez
Browse files
RDB load of different encodings test added.
parent
9b962d10
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/assets/encodings.rdb
0 → 100644
View file @
27688de1
File added
tests/integration/rdb.tcl
0 → 100644
View file @
27688de1
set server_path
[
tmpdir
"server.rdb-encoding-test"
]
# Copy RDB with zipmap encoded hash to server path
exec cp tests/assets/encodings.rdb $server_path
start_server
[
list overrides
[
list
"dir"
$server_path
"dbfilename"
"encodings.rdb"
]]
{
test
"RDB encoding loading test"
{
r select 0
csvdump r
}
{
"compressible"
,
"string"
,
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
"hash"
,
"hash"
,
"a"
,
"1"
,
"aa"
,
"10"
,
"aaa"
,
"100"
,
"b"
,
"2"
,
"bb"
,
"20"
,
"bbb"
,
"200"
,
"c"
,
"3"
,
"cc"
,
"30"
,
"ccc"
,
"300"
,
"ddd"
,
"400"
,
"eee"
,
"5000000000"
,
"hash_zipped"
,
"hash"
,
"a"
,
"1"
,
"b"
,
"2"
,
"c"
,
"3"
,
"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"
,
"list_zipped"
,
"list"
,
"1"
,
"2"
,
"3"
,
"a"
,
"b"
,
"c"
,
"100000"
,
"6000000000"
,
"number"
,
"string"
,
"10"
"set"
,
"set"
,
"1"
,
"100000"
,
"2"
,
"3"
,
"6000000000"
,
"a"
,
"b"
,
"c"
,
"set_zipped_1"
,
"set"
,
"1"
,
"2"
,
"3"
,
"4"
,
"set_zipped_2"
,
"set"
,
"100000"
,
"200000"
,
"300000"
,
"400000"
,
"set_zipped_3"
,
"set"
,
"1000000000"
,
"2000000000"
,
"3000000000"
,
"4000000000"
,
"5000000000"
,
"6000000000"
,
"string"
,
"string"
,
"Hello World"
"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"
,
"zset_zipped"
,
"zset"
,
"a"
,
"1"
,
"b"
,
"2"
,
"c"
,
"3"
,
}
}
tests/test_helper.tcl
View file @
27688de1
...
...
@@ -30,6 +30,7 @@ set ::all_tests {
integration/replication-2
integration/replication-3
integration/aof
integration/rdb
unit/pubsub
unit/slowlog
unit/scripting
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment