This is beanstalkd, a fast, general-purpose work queue. See http://kr.github.com/beanstalkd/ for general info.
$ make $ ./beanstalkd
$ make CFLAGS=-g $ make CC=clang $ make check $ make install $ make install PREFIX=/usr
You might need to type "gmake"; our build requires GNU make. Requires Linux (2.6.17 or later), Mac OS X, or FreeBSD. See doc/protocol.txt for details of the network protocol.
adm files useful for system administrators ct testing tool; see https://github.com/kr/ct doc documentation mk include files for make pkg miscelaneous files for packagers sh-tests tests written as shell scripts
There are two kinds of tests here: unit tests and shell tests.
== Unit Tests ==
Test functions are in *-test.c.
== Shell Tests ==
Shell tests go in the sh-tests directory and are to be written in pairs:
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