add file index to job stats
[beanstalkd.git] / README
blob31de0ad08fd23ea1991f8591dbbf3dd5199dd88a
1 This is beanstalkd, a fast, general-purpose work queue.
2 See http://kr.github.com/beanstalkd/ for general info.
4 QUICK START
6     $ make
7     $ ./beanstalkd
9 also,
11     $ make 'CFLAGS=-Wall -Werror'
12     $ make 'CFLAGS=-Wall -Werror -g -DDEBUG'
13     $ make check
14     $ make install PREFIX=/usr/local
16 You might need to type "gmake"; our build requires GNU make.
17 Requires Linux (2.6 series or later), Mac OS X, or FreeBSD.
18 See doc/protocol.txt for details of the network protocol.
21 SUBDIRECTORIES
23 adm             files useful for system administrators
24 ct              testing tool; see https://github.com/kr/ct
25 doc             documentation
26 mk              include files for make
27 pkg             miscelaneous files for packagers
28 sh-tests        tests written as shell scripts
31 TESTS
33 There are two kinds of tests here: unit tests and shell tests.
35 == Unit Tests ==
37 Test functions are in *-test.c.
39 == Shell Tests ==
41 Shell tests go in the sh-tests directory and are to be written in pairs:
43     my_test.commands
44     my_test.expected
46 Each .commands file will be nc'd to beanstalkd, and the response diff'd
47 with the appropriate .expected file.  If the response is not identical to the
48 .expected file, the test fails.  At the moment, the test harness bails upon the
49 first failure, but it could easily be extended to finish the tests and print
50 full results.
52 IMPORTANT: Since beanstalkd expects \r\n line endings, you must be sure to
53 include those in your files.  You can tell vim to do this with
54   :set ff=dos
56 Copyright 2007-2011 the authors of beanstalkd.
57 Copyright in contributions to beanstalkd is retained
58 by the original copyright holder of each contribution.
59 See the COPYING file for terms of use.