forked from beanstalkd/beanstalkd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
59 lines (40 loc) · 1.6 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
This is beanstalkd, a fast, general-purpose work queue.
See http://kr.github.com/beanstalkd/ for general info.
QUICK START
$ make
$ ./beanstalkd
also,
$ make 'CFLAGS=-Wall -Werror'
$ make 'CFLAGS=-Wall -Werror -g -DDEBUG'
$ make check
$ make install PREFIX=/usr/local
You might need to type "gmake"; our build requires GNU make.
Requires Linux (2.6 series or later), Mac OS X, or FreeBSD.
See doc/protocol.txt for details of the network protocol.
SUBDIRECTORIES
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
TESTS
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:
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
Copyright 2007-2011 the authors of beanstalkd.
Copyright in contributions to beanstalkd is retained
by the original copyright holder of each contribution.
See the COPYING file for terms of use.