summaryrefslogtreecommitdiff
path: root/tests/support
Commit message (Collapse)AuthorAgeFilesLines
* Fix test "server is up" detection after logging changes.antirez2016-12-191-1/+1
|
* various cleanups and minor fixesOran Agra2016-04-251-6/+0
|
* Fix to Cluster test to support @busport format.antirez2016-02-021-2/+4
|
* Test: support for stack logging for OSX malloc/leaks.antirez2015-10-011-0/+2
|
* Test: csvdump now scans all DBs.antirez2015-08-051-32/+36
|
* Test: be more patient waiting for servers to exit.antirez2015-03-311-1/+6
| | | | | This should likely fix a false positive when running with the --valgrind option.
* Add --track-origins=yes to valgrindMatt Stancliff2015-01-211-1/+1
|
* Cluster test: also write from Lua script in resharding test.antirez2015-01-091-0/+2
|
* Add quicklist implementationMatt Stancliff2015-01-021-2/+5
| | | | | | | | This replaces individual ziplist vs. linkedlist representations for Redis list operations. Big thanks for all the reviews and feedback from everybody in https://github.com/antirez/redis/pull/2143
* Test: wait for actual startup in start_server.antirez2014-11-281-0/+6
| | | | | | | | | start_server now uses return value from Tcl exec to get the server pid, however this introduces errors that depend from timing: a lot of the testing code base assumed the server to be actually up and running when server_start returns. So the old code that waits to see the pid in the log file was restored.
* Test: try to cleanup still running Redis instances on exit.antirez2014-11-281-8/+8
| | | | | It's hard to run the Redis test continuously if it leaks processes on exceptions / errors.
* Remove trailing spaces from testsMatt Stancliff2014-09-292-6/+6
|
* Fix spelling in some test casesMatt Stancliff2014-09-291-1/+1
|
* Stop tests from leaving a black backgroundMariano Pérez Rodríguez2014-08-251-1/+1
| | | | | | | | Uses ANSI "default background" color code after closing tests so any non-black terminals don't remain polluted. Fixes #1649 Closes #1912
* Test: AOF rewrite during write load.antirez2014-07-101-0/+12
|
* Test: find_available_port: check that cluster port is free as well.antirez2014-06-301-4/+6
| | | | | The function will only return ports that have also port+10000 free, so that Redis Cluster instances can be executed at the returned port.
* Test: Tcl client initial support for automatic reconnection.antirez2014-06-181-14/+53
|
* Test: tcl client, unset deferred var on close.antirez2014-06-181-0/+1
|
* Fix test framework to detect proper server PIDMatt Stancliff2014-05-231-1/+1
| | | | | | | | | | | | | | Previously the PID format was: [PID] Timestamp But it recently changed to: PID:X Timestamp The tcl testing framework was grabbing the PID from \[\d+\], but that's not valid anymore. Now we grab the pid from "PID: <PID>" in the part of Redis startup output to the right of the ASCII logo.
* cluster.tcl: fix redis links leak in refresh_nodes_map.antirez2014-05-141-1/+7
|
* cluster.tcl: saner error handling.antirez2014-05-141-4/+18
| | | | | | | | | | Better handling of connection errors in order to update the table and recovery, populate the startup nodes table after fetching the list of nodes. More work to do about it, it is still not as reliable as redis-rb-cluster implementation which is the minimal reference implementation for Redis Cluster clients.
* redis.tcl: return I/O error message when peer closes connection.antirez2014-05-141-1/+4
|
* Test: handle new osx 'leaks' error.antirez2014-05-071-1/+2
| | | | | | Sometimes the process is still there but no longer in a state that can be checked (after being killed). This used to happen after a call to SHUTDOWN NOSAVE in the scripting unit, causing a false positive.
* Cluster: Tcl cluster client: handle MOVED/ASK.antirez2014-05-021-5/+24
|
* Cluster: Tcl cluster client: slots-nodes map and close method.antirez2014-05-021-2/+25
| | | | | Now the client is able to actually run commands in a Redis Cluster assuming the slots->nodes map is stable.
* Cluster: Tcl cluster client: build nodes representation.antirez2014-05-021-5/+39
|
* Cluster: Tcl cluster client: get nodes description.antirez2014-05-021-6/+60
|
* Cluster: Tcl cluster client key -> hashslot.antirez2014-04-301-1/+61
|
* Cluster test: Tcl cluster library initial skeleton.antirez2014-04-302-2/+95
|
* Test: do not complain when "leaks" can't run because process died.antirez2014-03-251-0/+4
|
* Sentinel test: framework improved and conf-update unit added.antirez2014-02-221-2/+8
| | | | | | | | | It is now possible to kill and restart sentinel or redis instances for more real-world testing. The 01 unit tests the capability of Sentinel to update the configuration of Sentinels rejoining the cluster, however the test is pretty trivial and more tests should be added.
* Test: colorstr moved to util.tcl.antirez2014-02-172-30/+30
|
* Test: code to test server availability refactored.antirez2014-02-172-12/+33
| | | | | | Some inline test moved into server_is_up procedure. Also find_available_port was moved into util since it is going to be used for the Sentinel test as well.
* Test: randomInt() behavior commented.antirez2013-06-251-0/+2
|
* Tests added for min-slaves feature.antirez2013-05-301-0/+4
|
* Return a specific NOAUTH error if authentication is required.antirez2013-02-121-2/+2
|
* Test: fixed osx "leaks" support in test.antirez2012-12-031-1/+3
| | | | | | Due to changes in recent releases of osx leaks utility, the osx leak detection no longer worked. Now it is fixed in a way that should be backward compatible.
* fix a typo in a commentYAMAMOTO Takashi2012-10-241-1/+1
|
* New test: hash ziplist -> hashtable encoding conversion.antirez2012-06-111-3/+11
| | | | | | | | A new stress test was added to stress test the code converting a ziplist into an hash table. In this commit also randomValue helper function was modified to also return negative values.
* EVAL replication test: less false positives.antirez2012-06-021-1/+1
| | | | | | | | | wait_for_condition is now used instead of the usual "after 1000" (that is the way to sleep in Tcl). This should avoid to find the replica in a state where it is loading the RDB in memory, returning -LOADING error. This test used to fail when running the test over valgrind, due to the added latencies.
* Tests modified to account for INFO fields renaming.antirez2012-05-251-2/+2
| | | | | | Commit 33e1db36fa3948c8b9baa3991fd40e7f6b31fb9e modified the name of a few INFO fields. This commit changes the Redis test to account for this changes.
* Redis test: include bug report on crash.antirez2012-05-221-1/+5
| | | | | | | | | | | Due to a change in the format of the bug report in case of crash of failed assertion the test suite was no longer able to properly log it. Instead just a protocol error was logged by the Redis TCL client that provided no clue about the actual problem. This commit resolves the issue by logging everything from the first line of the log including the string REDIS BUG REPORT, till the end of the file.
* Redis test: More reliable BRPOPLPUSH replication test.antirez2012-04-261-1/+1
| | | | | | 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.
* Redis test: scripting EVALSHA replication test more reliable.antirez2012-04-261-0/+17
| | | | | | A new primitive wait_for_condition was introduced in the scripting engine that makes waiting for events simpler, so that it is simpler to write tests that are more resistant to timing issues.
* Replace unnecessary calls to echo and catMichael Schlenker2012-04-171-1/+1
| | | | | Tcl's exec can send data to stdout itself, no need to call cat/echo for that usually.
* redis.tcl: no longer leave unread replies if an error happens during a ↵antirez2012-04-061-1/+7
| | | | MULTI/EXEC block.
* in kill_server send the signal once, then wait for up to 5sec before sending ↵Premysl Hruby2012-04-031-2/+7
| | | | lethal SIGKILL
* Redis test: regexp to check if valgrind reported errors modified. Now we no ↵antirez2012-03-281-1/+1
| | | | longer look at the total count because this includes "possibly lost" bytes that are not interesting for Redis (tons of false positives because of how sds.c works).
* Merge remote-tracking branch 'origin/unstable' into unstableantirez2012-03-241-1/+1
|\
| * DEBUG should not be flagged as w otherwise we can not call DEBUG DIGEST and ↵antirez2012-03-201-1/+1
| | | | | | | | other commands against read only slaves.