summaryrefslogtreecommitdiff
path: root/t/01include02.t
blob: 51dec9fb1fbf79ab55ef5350fab1cd579a20191f (plain)
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
# -*- perl -*-
use lib qw(t lib);
use strict;
use Test;
plan test => 1;

use TestPreproc;
# Test nested includes
my $obj = new TestPreproc -expand => [qw(include)];
ok($obj->dump_raw, $obj->dump_expect);

__DATA__
!>httpd.conf
# Main configuration
ServerType standalone
ServerRoot "$server_root"
Include "level1.conf"
PidFile logs/httpd.pid
!>level1.conf
# First-level include file
Timeout 300
Include level2.conf
KeepAlive On
!>level2.conf
# Second-level include file
MaxKeepAliveRequests 100
KeepAliveTimeout 15
!=
# Main configuration
ServerType standalone
ServerRoot "$server_root"
# First-level include file
Timeout 300
# Second-level include file
MaxKeepAliveRequests 100
KeepAliveTimeout 15
KeepAlive On
PidFile logs/httpd.pid
!$

Return to:

Send suggestions and report system problems to the System administrator.