File: README

package info (click to toggle)
apache-perl 1.3.9-14.1-1.21.20000309-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,524 kB
  • ctags: 1,743
  • sloc: ansic: 9,017; perl: 7,822; sh: 864; makefile: 695
file content (43 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download | duplicates (5)
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
Self test suite for the mod_perl library 
(adapted from the libwww-perl test suite)
-------------------------------------------

Tests are invoked by running the ./TEST script, but usually you run
the tests with "make test" at the top mod_perl directory which automates
all of these steps for you.  Use -v option for verbose tests.  
You might run an individual test like this:

  ./TEST -v net/http-get

or all tests in a directory like this

  ./TEST net

You enable network tests by creating the "net/config.pl" file.  A good
start is to make a copy of the "net/config.pl.dist" file.  For network
tests you should also make a link from the perl directory of your
http server to the "net/perl" directory.  

You *must* have libwww-perl installed:
http://www.perl.com/cgi-bin/cpan_mod?module=LWP

You will also need to modify httpd.conf and start an httpd with the mod_perl
configuration specified in httpd.conf-dist

The following setup works for my site:

  cp conf/httpd.conf-dist conf/httpd.conf
  emacs conf/httpd.conf			     #modify for your system	
  cp net/config.pl.dist net/config.pl
  emacs net/config.pl                        # fix if necessary
  httpd -X -d `pwd` & 	
  ./TEST net
  kill `cat /tmp/mod_perl_httpd.pid`
  rm -f /tmp/mod_perl_*