diff options
author | antirez <antirez@gmail.com> | 2011-01-09 19:42:56 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-01-09 19:42:56 +0100 |
commit | 322ea972fe945a8cf439e9e3577de624f3e3e10b (patch) | |
tree | dc4343f51f4e54f4f20f49a596a6a97c8e188116 /tests/unit | |
parent | a5062bbab0a1619523a9562cec2256de16149c29 (diff) | |
download | redis-322ea972fe945a8cf439e9e3577de624f3e3e10b.tar.gz |
run both inmemory and diskstore tests.
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/other.tcl | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/tests/unit/other.tcl b/tests/unit/other.tcl index 15fb55b4f..f30505d10 100644 --- a/tests/unit/other.tcl +++ b/tests/unit/other.tcl @@ -120,34 +120,36 @@ start_server {tags {"other"}} { list $e1 $e2 } {1 1} - test {PIPELINING stresser (also a regression for the old epoll bug)} { - set fd2 [socket $::host $::port] - fconfigure $fd2 -encoding binary -translation binary - puts -nonewline $fd2 "SELECT 9\r\n" - flush $fd2 - gets $fd2 - - for {set i 0} {$i < 100000} {incr i} { - set q {} - set val "0000${i}0000" - append q "SET key:$i $val\r\n" - puts -nonewline $fd2 $q - set q {} - append q "GET key:$i\r\n" - puts -nonewline $fd2 $q - } - flush $fd2 - - for {set i 0} {$i < 100000} {incr i} { - gets $fd2 line - gets $fd2 count - set count [string range $count 1 end] - set val [read $fd2 $count] - read $fd2 2 - } - close $fd2 - set _ 1 - } {1} + tags {protocol nodiskstore} { + test {PIPELINING stresser (also a regression for the old epoll bug)} { + set fd2 [socket $::host $::port] + fconfigure $fd2 -encoding binary -translation binary + puts -nonewline $fd2 "SELECT 9\r\n" + flush $fd2 + gets $fd2 + + for {set i 0} {$i < 100000} {incr i} { + set q {} + set val "0000${i}0000" + append q "SET key:$i $val\r\n" + puts -nonewline $fd2 $q + set q {} + append q "GET key:$i\r\n" + puts -nonewline $fd2 $q + } + flush $fd2 + + for {set i 0} {$i < 100000} {incr i} { + gets $fd2 line + gets $fd2 count + set count [string range $count 1 end] + set val [read $fd2 $count] + read $fd2 2 + } + close $fd2 + set _ 1 + } {1} + } test {MUTLI / EXEC basics} { r del mylist |