summaryrefslogtreecommitdiff
path: root/test.c
AgeCommit message (Collapse)Author
2011-06-19Revert "Add function to retrieve formatted reply"Pieter Noordhuis
This reverts commit 77540aa31694aa1e14d41f60a0452e49a2fed86a. The change in buffer strategy is too large to put in a minor release. It is put in a separate branch in the meantime, so it can be refined and released together with a minor version bump.
2011-06-18Remove private feature macros for Solaris from compiler flagsPieter Noordhuis
2011-06-18Fix compiler warningsPieter Noordhuis
2011-06-09Fix for issue #45Pieter Noordhuis
2011-06-09Flag to disable throughput testsPieter Noordhuis
2011-05-29Exit with a non-zero status when tests failedPieter Noordhuis
2011-05-22More control over host/port and unix path in test.cPieter Noordhuis
2011-05-22Add "make check" target (useful for automated tests).Piotr Sikora
While there, add "-p" option to "hiredis-test", so that we could run tests without interrupting Redis instance running on the default port.
2011-05-05Add function to retrieve formatted replyPieter Noordhuis
This is done by only truncating the read buffer once a full reply has been read. The buffer is no longer truncated halfway through reading a reply. In addition: pass offset/length of protocol and content via the read tasks.
2011-04-21Reflect rename in testsPieter Noordhuis
2011-04-21Create protocol reader when creating contextPieter Noordhuis
2011-04-21State should not be reset after protocol errorPieter Noordhuis
2011-04-19Use variable for throughput test iteration countPieter Noordhuis
2011-03-31Add pipelined throughput testsPieter Noordhuis
2011-03-06Fix formatCommand to work with all empty interpolationsPieter Noordhuis
2011-01-27Properly reset state after protocol error in reply readerPieter Noordhuis
2011-01-27Avoid warnings with -Wstrict-prototypesPieter Noordhuis
2011-01-07Return error on socket timeout for a blocking contextPieter Noordhuis
2010-12-02Add (nearly) full printf support by delegating to vsprintfPieter Noordhuis
2010-11-24Set error on unexpected nesting of multi bulksPieter Noordhuis
2010-11-22Make error messages consistent in casingPieter Noordhuis
2010-11-22Tests for behavior when connecting failsPieter Noordhuis
2010-11-22Make test for formatting commands using a vector more robustPieter Noordhuis
2010-11-22Fix formatting literal percent charactersPieter Noordhuis
2010-11-22Correctly format commands with empty interpolated valuesPieter Noordhuis
2010-11-19Don't do a write(2) after QUITPieter Noordhuis
This causes non-deterministic error messages because sometimes the socket will already be closed and sometimes it is yet to be closed.
2010-11-15Don't print when testing can continuePieter Noordhuis
2010-11-15Redis >=2.1 replies with OK on QUIT, so make the test conditionalPieter Noordhuis
2010-11-05Include signal.hPieter Noordhuis
2010-11-04Finding \r\n without strstr is a little harderPieter Noordhuis
2010-11-04Return the reply type when the reply object function set is NULLPieter Noordhuis
2010-11-03Check replies in throughput testPieter Noordhuis
2010-11-03Allow to connect using a unix socket from hiredisPieter Noordhuis
2010-11-02Change error reporting to have an explicit typePieter Noordhuis
When there is an I/O error, errno should be used to find out what is wrong. In other cases, errno cannot be used. So, use an explicit type in Hiredis to define the different error scenarios that can occur.
2010-10-31Remove reply object functions from connect functionsPieter Noordhuis
2010-10-31First step in decoupling reply callbacks from internalsPieter Noordhuis
2010-10-31Format a command using an argument vectorPieter Noordhuis
2010-10-30Status replies should have type REDIS_REPLY_STATUSPieter Noordhuis
2010-10-30Drop dependency on sds.h for exposed APIPieter Noordhuis
2010-10-19Run pending callbacks with NULL reply on redisDisconnect()Pieter Noordhuis
2010-10-19Test helper for creating a non-blocking connectionPieter Noordhuis
2010-10-19Revert e5dd32d8 that added the const qualifier for command callbacksPieter Noordhuis
2010-10-19Revert privdata in context callbacks to being non-constPieter Noordhuis
2010-10-18Test callback sequence in non-blocking contextPieter Noordhuis
2010-10-18Change redisWriteBuffer to return OK on an empty bufferPieter Noordhuis
2010-10-18Tests for context callbacks in non-blocking modePieter Noordhuis
2010-10-18Rearrange tests to isolated functionsPieter Noordhuis
2010-10-18The QUIT commands returns OK on masterPieter Noordhuis
2010-10-06Make error messages more consistent (e.g. no newline)Pieter Noordhuis
2010-10-06c->error is no longer a redisReply object, but rather a plain C-stringPieter Noordhuis