From: Brian Aker Date: Fri, 14 Dec 2007 08:35:13 +0000 (-0800) Subject: Fixed test cases (hackathon item) X-Git-Tag: 0.13~30 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7f81aa3896f928233b3eacfc5bea7fed5174ae67;p=m6w6%2Flibmemcached Fixed test cases (hackathon item) --- diff --git a/tests/Makefile.am b/tests/Makefile.am index cb4269b3..dc8ee2d2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,6 +23,8 @@ testapp_LDADD = $(LDADDS) record: ./testapp > output.res + +client-record: sh t/memcat.test > r/memcat.res sh t/memcp.test > r/memcp.res sh t/memrm.test > r/memrm.res diff --git a/tests/output.res b/tests/output.res index a1a8e656..7da758fb 100644 --- a/tests/output.res +++ b/tests/output.res @@ -35,6 +35,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -109,6 +110,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -183,6 +185,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -257,6 +260,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -331,6 +335,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -405,6 +410,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -479,6 +485,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -553,6 +560,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -627,6 +635,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -701,6 +710,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -775,6 +785,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -849,6 +860,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -923,6 +935,7 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time @@ -997,6 +1010,82 @@ Error 26 -> COULD NOT OPEN UNIX SOCKET Error 27 -> ACTION NOT SUPPORTED Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED +Found key pid +Found key uptime +Found key time +Found key version +Found key pointer_size +Found key rusage_user +Found key rusage_system +Found key curr_items +Found key total_items +Found key bytes +Found key curr_connections +Found key total_connections +Found key connection_structures +Found key cmd_get +Found key cmd_set +Found key get_hits +Found key get_misses +Found key evictions +Found key bytes_read +Found key bytes_written +Found key limit_maxbytes +Found key threads +Found key pid +Found key uptime +Found key time +Found key version +Found key pointer_size +Found key rusage_user +Found key rusage_system +Found key curr_items +Found key total_items +Found key bytes +Found key curr_connections +Found key total_connections +Found key connection_structures +Found key cmd_get +Found key cmd_set +Found key get_hits +Found key get_misses +Found key evictions +Found key bytes_read +Found key bytes_written +Found key limit_maxbytes +Found key threads +Error 0 -> SUCCESS +Error 1 -> FAILURE +Error 2 -> HOSTNAME LOOKUP FAILURE +Error 3 -> CONNECTION FAILURE +Error 4 -> CONNECTION BIND FAILURE +Error 5 -> WRITE FAILURE +Error 6 -> READ FAILURE +Error 7 -> UNKNOWN READ FAILURE +Error 8 -> PROTOCOL ERROR +Error 9 -> CLIENT ERROR +Error 10 -> SERVER ERROR +Error 11 -> CONNECTION SOCKET CREATE FAILURE +Error 12 -> CONNECTION DATA EXISTS +Error 13 -> CONNECTION DATA DOES NOT EXIST +Error 14 -> NOT STORED +Error 15 -> STORED +Error 16 -> NOT FOUND +Error 17 -> MEMORY ALLOCATION FAILURE +Error 18 -> PARTIAL READ +Error 19 -> SOME ERRORS WERE REPORTED +Error 20 -> NO SERVERS DEFINED +Error 21 -> SERVER END +Error 22 -> SERVER DELETE +Error 23 -> SERVER VALUE +Error 24 -> STAT VALUE +Error 25 -> SYSTEM ERROR +Error 26 -> COULD NOT OPEN UNIX SOCKET +Error 27 -> ACTION NOT SUPPORTED +Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED +Error 29 -> FETCH WAS NOT COMPLETED +Error 30 -> A TIMEOUT OCCURRED Found key pid Found key uptime Found key time