Pieter Noordhuis
ced6709cb9
Make SORT tests use both ziplists and linked lists as input
2010-08-21 11:02:22 +02:00
Pieter Noordhuis
5d4f3a8c85
Move SORT tests around
2010-08-21 10:55:53 +02:00
Pieter Noordhuis
a53ebb4c8e
Don't abort test suite when the server block has a return value
2010-08-21 10:54:31 +02:00
Pieter Noordhuis
87c74dfaa8
Check if stroll return value was clamped
2010-08-20 13:42:42 +02:00
Pieter Noordhuis
aaada3f962
Merge branch 'master' into intset-split
...
Conflicts:
src/Makefile
src/t_set.c
2010-08-20 12:40:55 +02:00
Pieter Noordhuis
3a51bff035
Change output format for non-tty redis-cli execution
2010-08-04 17:46:56 +02:00
Pieter Noordhuis
123a10f7a5
Let the output mode depend on having a tty or not
2010-08-04 17:16:05 +02:00
Pieter Noordhuis
07242c0ccf
Tests for redis-cli in non-interactive mode
...
Minor change in redis-cli output for the (multi-)bulk response but this
will be fixed in the next commit.
2010-08-04 17:02:13 +02:00
Pieter Noordhuis
0439d792c4
Add tests for quotation in an interactive redis-cli session
...
Patched redis-cli to abort on unexpected quotation. This caused
redis-cli to get into an infinite, memory-consuming loop.
2010-08-04 16:15:33 +02:00
Pieter Noordhuis
f2dd4769dd
Tests for the interactive mode of redis-cli
...
Changed redis-cli to output the raw response for a bulk reply when it is
run in interactive mode instead of checking isatty.
2010-08-04 15:28:03 +02:00
antirez
1fb4e8def7
PERSIST: a fix and some basic test
2010-08-03 14:25:22 +02:00
antirez
6146329f1f
replication test with expires
2010-08-03 13:38:39 +02:00
antirez
23d7298b15
Merge remote branch 'pietern/test-encoding-fix' into writeonexpire
2010-08-03 13:09:27 +02:00
antirez
2c572622fb
no longer passing tests due to the new write-on-volatile semantics modified/removed
2010-08-03 13:08:32 +02:00
Pieter Noordhuis
6825491928
Fix assertion function on value encoding
2010-08-01 11:20:26 +02:00
antirez
0c7a9dec65
Merge remote branch 'pietern/list-test'
2010-07-31 13:55:06 +02:00
Pieter Noordhuis
673e1fb7e4
Change getDoubleFromObject to fail on NaN.
...
Return an error when the resulting value is not a number (NaN). Fix
ZUNIONSTORE/ZINTERSTORE to clean up when a weight argument is not a
double value.
2010-07-29 23:05:01 +02:00
Pieter Noordhuis
d9e28bcf00
Fix ZUNIONSTORE/ZINTERSTORE to never store a NaN score.
...
When +inf and -inf are added, the result is NaN. We don't want NaN
scores in a sorted set, so agreed on the result of this operation being
zero.
2010-07-29 23:03:11 +02:00
Pieter Noordhuis
715c801a07
Use a large value to consistently trigger a list encoding,
...
even when the list is swapped out and in again.
2010-07-29 13:56:35 +02:00
Pieter Noordhuis
86d392498b
ensure the value is swapped in before testing its encoding
2010-07-29 13:31:24 +02:00
antirez
a0573260b0
better random dataset creation function in test. master-slave replication test now is able to save the two datasets in CSV when an inconsistency is detected.
2010-07-28 14:08:46 +02:00
antirez
db0c43a70c
removed test code having bad effects...
2010-07-27 14:46:39 +02:00
antirez
dd3f505ff5
Consistency test improved
2010-07-27 14:42:11 +02:00
antirez
80091bbaac
STRLEN command implemented
2010-07-27 10:09:26 +02:00
Pieter Noordhuis
e39c8b5047
exit with non-zero status when there are failed tests
2010-07-23 13:08:35 +02:00
antirez
b056ca39f2
improved random dataset creation in test: del, sunionstore, zunionstore
2010-07-06 18:30:38 +02:00
antirez
8b654e54c4
First implementation of a replication consistency test
2010-07-06 17:24:00 +02:00
antirez
b7a8daef60
WATCH will now consider touched keys target of EXPIRE command after the WATCH is performed, but not before
2010-07-05 19:38:12 +02:00
Pieter Noordhuis
96ffb2fe97
merged intset code into the split files
2010-07-02 19:57:12 +02:00
antirez
af4e866dbb
Merged with split
2010-07-01 16:55:12 +02:00
antirez
e2641e09cc
redis.c split into many different C files.
...
networking related stuff moved into networking.c
moved more code
more work on layout of source code
SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;)
cleanly compiling again after the first split, now splitting it in more C files
moving more things around... work in progress
split replication code
splitting more
Sets split
Hash split
replication split
even more splitting
more splitting
minor change
2010-07-01 14:38:51 +02:00
antirez
b8b8501d70
Merge remote branch 'pietern/zfixes'
2010-06-25 00:23:38 +02:00
Pieter Noordhuis
f483ce5ffe
fix unexpected behavior on an out of range end index for LRANGE and LTRIM
2010-06-24 15:12:42 -07:00
Pieter Noordhuis
c2ff0e90b8
more pub/sub tests
2010-06-16 11:03:23 +02:00
Pieter Noordhuis
4589a823fd
initial basic pub/sub tests
2010-06-16 11:01:42 +02:00
Pieter Noordhuis
5eedc9c65e
tests for BLPOP/BRPOP via an option in the tcl client that defers reading the reply
2010-06-15 21:23:18 +02:00
Pieter Noordhuis
4774a53b24
fix behavior for out-of-range negative end index on ZREMRANGEBYRANK
2010-06-15 16:21:42 +02:00
Pieter Noordhuis
184d74abc6
more tests for zrange and zrevrange; fix behavior for out-of-range negative end index
2010-06-15 15:40:28 +02:00
antirez
d52e588869
Merge branch 'ltrim-tests' of git://github.com/pietern/redis
2010-06-14 10:22:38 +02:00
Pieter Noordhuis
7e79de541a
rename "list" to "linkedlist" to be more verbose
2010-06-14 10:21:23 +02:00
antirez
7d04fc7563
allow running the test suite against an external Redis instance, without auto spawning
2010-06-14 10:19:45 +02:00
Pieter Noordhuis
08b5920750
change ltrim tests to cover all min/max cases and add stronger stresser
2010-06-14 09:45:34 +02:00
Pieter Noordhuis
273f616930
make sure sets have the right encoding when loaded from rdb
2010-06-13 21:42:04 +02:00
Pieter Noordhuis
ab37269c38
use max number of intset entries in tests and make SUNION/SINTER/SDIFF tests use less entries
2010-06-13 21:37:46 +02:00
Pieter Noordhuis
b978abbf02
small refactor of SMOVE and tests for SMOVE on sets with different encoding
2010-06-13 11:16:18 +02:00
Pieter Noordhuis
d0b58d5300
intset encoding for sets, refactored set tests to test both encodings
2010-06-12 22:25:22 +02:00
Pieter Noordhuis
23d3a5feef
make LINSERT return -1 when the value could not be inserted
2010-06-11 17:34:23 +02:00
Pieter Noordhuis
70b4b320ae
check if the list encoding needs to be changed on LPUSHX, RPUSHX, LINSERT
2010-06-11 14:52:35 +02:00
Pieter Noordhuis
244b873b0c
make sure the value to insert is string encoded
2010-06-11 13:27:21 +02:00
Robey Pointer
dedff272f6
squashed merge from robey/twitter3: LINSERT BEFORE|AFTER, LPUSHX, RPUSHX
2010-06-11 10:09:46 +02:00
Pieter Noordhuis
ab193fe452
generated tests for different encodings to avoid test code duplication
2010-06-04 17:05:54 +02:00
Pieter Noordhuis
d4507ec615
refactor list tests to test both encodings; implemented assert functions
2010-06-04 16:31:27 +02:00
Pieter Noordhuis
5a9fcb87ca
tag memory leak check on kill server as "leaks"
2010-06-03 00:27:09 +02:00
Pieter Noordhuis
afbf59145a
tag test with sleep() as slow
2010-06-03 00:26:39 +02:00
Pieter Noordhuis
f6fa411d6c
make sure the config it returned when called without code
2010-06-03 00:25:32 +02:00
Pieter Noordhuis
6b6f101c27
tag more slow tests
2010-06-03 00:16:10 +02:00
Pieter Noordhuis
5713f06b33
change how arguments are passed from the AOF tests
2010-06-03 00:16:02 +02:00
Pieter Noordhuis
7a6ae0a2b2
scope res variable outside test
2010-06-03 00:06:58 +02:00
Pieter Noordhuis
7f7499eeac
tags for existing tests
2010-06-02 23:22:25 +02:00
Pieter Noordhuis
73bd6c583b
pass tags to filter and match via arguments
2010-06-02 23:22:20 +02:00
Pieter Noordhuis
6e0e5bedd9
basic support to tag tests
2010-06-02 22:53:22 +02:00
Pieter Noordhuis
9e5d2e8bd6
changed how server.tcl accepts options to support more directives without requiring more arguments to the proc
2010-06-02 22:23:52 +02:00
Pieter Noordhuis
38273a9ed6
removed obsolete code
2010-06-02 21:53:15 +02:00
Pieter Noordhuis
436f18b618
catch exceptions in the server proc, to be able to kill the entire chain of running servers
2010-06-02 21:53:10 +02:00
antirez
5fc9229c34
Fixed ZINCR Nan bugs leading to server crash and added tests
2010-05-28 12:24:47 +02:00
antirez
4ea93ad3ac
new multi/exec tests
2010-05-27 16:08:44 +02:00
Josiah Carlson
bc000c1db0
allow regular sets to be passed to zunionstore/zinterstore
2010-05-26 16:07:04 +02:00
antirez
9b30e1a207
WATCH is now able to detect keys removed by FLUSHALL and FLUSHDB
2010-05-25 19:30:24 +02:00
antirez
c20c189db5
WATCH tests
2010-05-25 14:04:46 +02:00
antirez
c22b2ec863
by default test with valgrind does not show full leak info
2010-05-21 13:58:04 +02:00
antirez
c4669d257f
tests suite initial support for valgrind, fixed the old test suite until the new one is able to target a specific host/port
2010-05-21 12:00:13 +02:00
Pieter Noordhuis
f166bb1d50
code to enable running tests with the vm enabled
2010-05-20 13:58:58 +02:00
antirez
d6d3f92fb0
added regression for zipmap bug
2010-05-20 12:03:02 +02:00
Pieter Noordhuis
53cbf66caf
initial tests for AOF (and small changes to server.tcl to support these)
2010-05-19 14:54:20 +02:00
Pieter Noordhuis
46b614edf7
Merge branch 'master' into integration
2010-05-19 14:53:57 +02:00
Pieter Noordhuis
fdfb02e7ff
print warnings in redis log when a test raises an exception (very likely to be caused by something like a failed assertion)
2010-05-15 23:48:08 +02:00
antirez
76a224700d
added pid info to the check memory leaks test, so that those tests don't appear to be duplicated
2010-05-15 00:43:43 +02:00
Pieter Noordhuis
85ecc65edc
initial rough integration test for replication
2010-05-14 20:50:58 +02:00
Pieter Noordhuis
1c4114be40
store entire server object on the stack instead of just the client
2010-05-14 20:50:32 +02:00
Pieter Noordhuis
9cf9e6f197
proc to retrieve values from INFO properties
2010-05-14 20:48:57 +02:00
antirez
5d373da96a
ZUNION,ZINTER -> ZUNIONSTORE,ZINTERSTORE
2010-05-14 18:58:37 +02:00
antirez
ab72b4833d
minor fixes to the new test suite, html doc updated
2010-05-14 18:48:33 +02:00