Only describe test-server stuff.
[ZOOM-Perl-moved-to-github.git] / archive / test-server / test-server.notes
1 $Id: test-server.notes,v 1.4 2005-12-14 10:27:47 mike Exp $
2
3 To run the test-suite, this module needs an up-to-date Zebra server
4 (as of Tue Dec 13 17:41:05 GMT 2005) running on test.indexdata.com
5 port 2118, using isam:b and recognising a normal user "user" with
6 password "frog" and an administrator "admin" with password "fish".
7
8 To provide this, I needed to build an up-to-date Zebra in a custom
9 universe, so as not to interfere with the Debian packages used
10 elsewhere on test, and to start the server with appropriate
11 configuration.  Here's how I did it:
12
13         ssh test
14         mkdir -p universe/src
15         cd universe/src
16         cvs -q -d ":pserver:mike@bagel.indexdata.dk:/home/cvsroot" co yaz
17         cvs -q -d ":pserver:mike@bagel.indexdata.dk:/home/cvsroot" co zebra
18         cvs -q -d ":pserver:mike@bagel.indexdata.dk:/home/cvsroot" co ZOOM-Perl
19         cd yaz
20         ./buildconf.sh
21         LDFLAGS=-L/home/mike/universe/lib CPPFLAGS=-I/home/mike/universe/include ./configure --prefix=/home/mike/universe
22         make
23         make check
24         make install
25         cd ../zebra
26         ./buildconf.sh
27         LDFLAGS=-L/home/mike/universe/lib CPPFLAGS=-I/home/mike/universe/include ./configure --prefix=/home/mike/universe
28         make
29         make check
30         make install
31         cd ../ZOOM-Perl/archive
32         sudo cp -p test-server.init /etc/init.d/zoom-perl-server
33         sudo chmod +x /etc/init.d/zoom-perl-server
34         cd /etc/rc2.d
35         sudo ln -s ../init.d/zoom-perl-server S99zoom-perl-server
36         sudo /etc/init.d/zoom-perl-server start
37
38 On test, two ranges of ports are left open through the firewall:
39         2100-2120 are open, meant for Z servers
40         8001-8020 are open, meant for web services
41 We arbitrarily choose port 2118 for this service.
42