File: httpdconf.t

package info (click to toggle)
libapache-mod-perl 1.21.20000309-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,632 kB
  • ctags: 1,295
  • sloc: perl: 7,049; ansic: 5,214; sh: 356; makefile: 171
file content (28 lines) | stat: -rw-r--r-- 407 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

use Apache::test;

$^W=0;

my $i = 0;

print "1..5\n";

use Apache::httpd_conf ();

mkdir httpd_conf => 0755;

my $conf = Apache::httpd_conf->new(base => "httpd_conf");
$conf->write(Port => 8888);


test ++$i, $conf->Port == 8888;

for (qw(conf/httpd.conf)) {
    test ++$i, -e "httpd_conf/$_";
}

for (qw(DocumentRoot ErrorLog Port)) {
    print "$_ = ", $conf->$_(), "\n";
    test ++$i, $conf->$_();
}