210 Commits

Author SHA1 Message Date
antirez
b0a2093956 Fixed issue #516 (ZINTERSTORE mixing sets and zsets).
Weeks ago trying to fix an harmless GCC warning I introduced a bug in
the ziplist-encoded implementations of sorted sets.

The bug completely broke zuiNext() iterator, that is used in the
ZINTERSTORE and ZUNIONSTORE implementation, so those two commands are no
longer reliable starting from Redis version 2.4.12 and latest 2.6.0-RC
releases.

This commit fixes the problem and adds a regression test.
2012-05-23 11:08:33 +02:00
antirez
59b084b7cf If the computer running the Redis test is slow, we revert to --clients 1 to avoid false positives. 2012-05-12 09:34:12 +02:00
antirez
fc7ea2f7cd Properly wait the slave to sync with master in BRPOPLPUSH test. 2012-04-30 11:50:42 +02:00
antirez
fb38fd3c89 A more lightweight implementation of issue 141 regression test. 2012-04-30 11:48:32 +02:00
antirez
9e066ae051 Redis test: More reliable BRPOPLPUSH replication test.
Now it uses the new wait_for_condition testing primitive.
Also wait_for_condition implementation was fixed in this commit to properly
escape the expr command and its argument.
2012-04-30 11:48:16 +02:00
antirez
28500d193f Testing framework fixes and improvements backported from 2.6. 2012-04-30 11:47:47 +02:00
antirez
df10c797e0 Limit memory used by big SLOWLOG entries.
Two limits are added:

1) Up to SLOWLOG_ENTRY_MAX_ARGV arguments are logged.
2) Up to SLOWLOG_ENTRY_MAX_STRING bytes per argument are logged.
3) slowlog-max-len is set to 128 by default (was 1024).

The number of remaining arguments / bytes is logged in the entry
so that the user can understand better the nature of the logged command.
2012-04-21 21:50:25 +02:00
antirez
f0c3b249cb Issue #330 regression test. 2012-02-16 16:15:13 +01:00
antirez
8b8261edc3 Possible fix for false positives in issue 141 regression test 2012-01-12 16:24:41 +01:00
antirez
2c2b6159d3 Regression test for the main problem causing issue #141. Minor changes/fixes/additions to the test suite itself needed to write the test. 2012-01-07 12:52:42 +01:00
antirez
d4945b253b Redis test: when assertion fails print not just the expression but also expanded values in the error message. 2012-01-07 12:52:32 +01:00
antirez
53785789a0 Regression tests for protocol desync bug related to Issue #141 2012-01-07 12:51:22 +01:00
antirez
5bb2565959 Added regression test for ZUNIONSTORE creating NaN (github issue #264) 2011-12-23 09:34:41 +01:00
antirez
2e689217d5 Redis test: vaoid two false positives while running under valgrind. 2011-12-20 10:35:33 +01:00
antirez
b76088845c Redis test: two redundant tests removed as they tend to create issues when running the test with valgrind. 2011-12-20 10:35:23 +01:00
antirez
8a625029e7 Redis test port allocation fixed. 2011-12-20 10:34:51 +01:00
antirez
8a6b21da61 unit/introspection.tcl added 2011-12-19 10:22:04 +01:00
antirez
c08eb8e74d unit/introspection added among tests executed by default 2011-12-19 10:19:12 +01:00
antirez
bc62bc5eac Fixed SORT bugs (issue #224) with regression tests. 2011-12-01 16:08:30 +01:00
antirez
901120f8e6 --quiet option implemented in the Redis test. Output improved a bit. 2011-11-30 09:36:30 +01:00
antirez
fcf5783632 Added regression tests for issue #209 2011-11-25 12:27:00 +01:00
antirez
6662806a26 Regression test for issue #142 added 2011-10-17 10:40:11 +02:00
antirez
c7d23f3ed1 Fix for issue #132. Now AUTH raises an error if no server password is configured. 2011-10-10 22:22:27 +02:00
antirez
a6e312bf9a Added two new tests for RENAME, currently both will fail because of bug #128. 2011-10-10 15:25:22 +02:00
antirez
cd0458470e Redis test ports selection made more robust. This prevents the test from hanging if an already bound port is selected but the TCP server listening to it does not cause a protocol error with a Redis client PING. Also base port moved away from the range near to the Redis Cluster gossip ports. 2011-10-04 10:07:29 +02:00
antirez
481a05cd23 commenting out aof-race test for now, waiting for a fix to issue #80 2011-09-16 15:43:27 +02:00
Pieter Noordhuis
b9a65682fb Failing test related to AOF rewrite buffers 2011-09-16 11:24:08 +02:00
antirez
00c7f312cc regression test for bug 593 added 2011-09-12 10:54:43 +02:00
antirez
a57bd791e9 243b783fdc4a77968f7a3dd4a246e43b226a4316 2011-07-29 15:50:15 +02:00
antirez
ed9f997ce5 fixed assert proc on Redis test 2011-07-29 15:49:31 +02:00
Pieter Noordhuis
9c3a89853c HDEL: Abort deleting fields when hash is removed 2011-07-27 12:30:35 +02:00
antirez
619174117d new test engine backported to 2.4 2011-07-12 09:40:54 +02:00
antirez
99509ab257 slow log merged into 2.4 2011-07-02 00:24:11 +02:00
antirez
1ecfcb9380 Variadic SADD tests 2011-06-20 17:17:10 +02:00
Pieter Noordhuis
eb48b10738 SETNX regression tests. 2011-06-14 16:59:50 +02:00
antirez
6c194dae58 VM tests commented out for 2.4 2011-06-09 12:35:56 +02:00
antirez
5fca35da3f disabled development test entry, tests moved in the right place 2011-05-31 20:37:59 +02:00
antirez
d260b9a499 Variadic ZADD tests 2011-05-31 20:37:52 +02:00
antirez
83533b622e ZREM tests 2011-05-31 20:34:02 +02:00
antirez
51501514e9 Fix for the variadic version of SREM. Regression test added. 2011-05-31 20:15:25 +02:00
antirez
09843df1dd test for the BRPOPLPUSH issue 561 related issues 2011-05-31 12:16:16 +02:00
antirez
1f036c6587 Comment typo fixed 2011-05-24 10:43:19 +02:00
antirez
d89db584fa Merge branch '2.4' of github.com:antirez/redis into 2.4 2011-05-20 11:44:38 +02:00
antirez
1f2af715cb Print version info before running the test 2011-05-20 11:44:32 +02:00
antirez
10e4b58312 Fix for ZUNIONSTORE bug when there is an empty set among input sets. Regression test added. 2011-05-19 17:59:13 +02:00
antirez
604d26ffde ZINTERSTORE regressiont test with two sets, intset+hashtable 2011-05-12 20:20:25 +02:00
antirez
338e44a6e7 replication with expire test modified to produce no or less false failures 2011-05-12 20:17:07 +02:00
Pieter Noordhuis
992fe21706 Use correct argc/argv for cleanup when loading AOF 2011-04-22 09:42:38 +02:00
Pieter Noordhuis
2f170ad733 Reformat AOF tests 2011-04-22 09:42:38 +02:00
antirez
29a87f23b1 Variadic SREM backported from unstable 2011-04-21 17:31:10 +02:00