Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (17 sloc) 0.821 kB
= Testing Beanstalkd =
There are two kinds of tests here: unit tests and shell tests.
== Unit Tests ==
These go in tests/test_*.c. See the CUT documentation for more info.
http://sourceforge.net/projects/cut/
== Shell Tests ==
Shell tests go in the sh-tests directory and are to be written in pairs:
-my_test.commands
-my_test.expected
Each .commands file will be nc'd to beanstalkd, and the response diff'd
with the appropriate .expected file. If the response is not identical to the
.expected file, the test fails. At the moment, the test harness bails upon the
first failure, but it could easily be extended to finish the tests and print
full results.
IMPORTANT: Since beanstalkd expects \r\n line endings, you must be sure to
include those in your files. You can tell vim to do this with
:set ff=dos
Jump to Line
Something went wrong with that request. Please try again.