aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-11-12 11:22:29 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-11-12 11:22:29 +0200
commit0a8d5fdb52f479e4526ca7ee2ddfd0df2a202928 (patch)
tree475d3545113ba17984e54e4d5fd1257519fd5302 /README
parent2862e10791592ce9ce5f6b4d66c68798c74e19da (diff)
downloadvmod-dbrw-0a8d5fdb52f479e4526ca7ee2ddfd0df2a202928.tar.gz
vmod-dbrw-0a8d5fdb52f479e4526ca7ee2ddfd0df2a202928.tar.bz2
Update docs. Rename DBRW_TEST_NAME to DBRW_TEST_DATABASE.
Diffstat (limited to 'README')
-rw-r--r--README61
1 files changed, 60 insertions, 1 deletions
diff --git a/README b/README
index 4c22ea4..68fbe04 100644
--- a/README
+++ b/README
@@ -114,7 +114,66 @@ Once configured, do
114This will build the module. Finally, do the following command as root: 114This will build the module. Finally, do the following command as root:
115 115
116 make install 116 make install
117 117
118* Testing
119
120Testing the module requires access to an SQL database which will be
121populated with the test data. You can either create the database
122and SQL user, or just an SQL user and give him rights for creating it.
123For example:
124
125 GRANT ALL PRIVILEGES on dbrw_test.* to dbrw_test@localhost;
126
127Once done, supply the SQL credentials and the database name with
128extra arguments to configure, as shown in the example below:
129
130 ./configure --with-varnish-source=/usr/src/varnish-3.0.1\
131 DBRW_TEST_DATABASE=dbrw_test\
132 DBRW_TEST_USER=dbrw_test
133
134You can use the following variables:
135
136** DBRW_TEST_DATABASE
137
138Name of the test database. This one must be supplied in order to
139enable the tests.
140
141** DBRW_TEST_DEBUG
142
143Debugging level to use during the test. If greater than 0, debugging
144info will be logged via syslog channel daemon.debug.
145
146** DBRW_TEST_DBTYPE
147
148Type of the database to use. Either mysql or pgsql. By default,
149mysql is used, if enabled.
150
151** DBRW_TEST_PARAMS
152
153Any additional parameters. These must be in the format understood
154by dbrw.config function (see vmod_dbrw(3)).
155
156** DBRW_TEST_SERVER
157
158Name or IP address of SQL server. Defaults to localhost.
159
160** DBRW_TEST_USER
161
162Database user.
163
164** DBRW_TEST_PASS
165
166Password to connect to the server (if necessary).
167
168After running make, do
169
170 make check
171
172to run the tests. Ideally, they should succeed. The tests will be skipped
173if the supplied credentials are insufficient to access the SQL server.
174If they fail, the file testsuite.log will contain detailed logs.
175Additional information can then be found in the directory testsuite.dir.
176
118* Bug reporting 177* Bug reporting
119 178
120Send bug reports and suggestions to <gray@gnu.org> 179Send bug reports and suggestions to <gray@gnu.org>

Return to:

Send suggestions and report system problems to the System administrator.