Add information about resetting the read-write database on
[ZOOM-Perl-moved-to-github.git] / archive / test-server / README
1 These files are used to run the server that the ZOOM-Perl test-suite's
2 "packages" scripts run against.
3
4 README -- this file
5 update-client -- notes on using update facilities in YAZ.
6 test-server.notes -- notes on running the test server.
7 test-server.init -- script to run the test server from /etc/init.d
8 test-server.cfg -- Zebra configuration file for the test server.
9 test-server.pw -- password file for test server's Zebra configuration.
10
11 --
12
13 Over time, the Zebra database where the ZOOM-Perl package read-write
14 tests take place becomes bloated and unclean: when I checked on 15
15 October 2010, there were over 15000 "sort<NUMBER>-0.mf" files!  As a
16 result, the test-suite becomes slower, to the point where
17 26-packages.t takes two and half minutes to run.
18
19 When this happens, reset the database to a clean state:
20
21 $ ssh mike@z3950.indexdata.com
22 $ cd ZOOM-Perl/archive/test-server
23 $ sudo /etc/init.d/zoom-perl-server stop
24 $ sudo zebraidx-2.0 -c test-server.cfg init
25         (This may take a few minutes!)
26 $ sudo /etc/init.d/zoom-perl-server start
27 $ exit
28
29 Once this has been done, the time to run 26-packages.t should drop
30 back down to four or five seconds!