summaryrefslogtreecommitdiff
path: root/t/01include01.t
diff options
context:
space:
mode:
Diffstat (limited to 't/01include01.t')
-rw-r--r--t/01include01.t34
1 files changed, 34 insertions, 0 deletions
diff --git a/t/01include01.t b/t/01include01.t
new file mode 100644
index 0000000..98ea840
--- /dev/null
+++ b/t/01include01.t
@@ -0,0 +1,34 @@
+# -*- perl -*-
+use lib qw(t lib);
+use strict;
+use Test;
+plan test => 1;
+
+use TestPreproc;
+# Test include by globbing pattern
+my $obj = new TestPreproc -expand => [qw(include)];
+ok($obj->dump_raw, $obj->dump_expect);
+__DATA__
+!>httpd.conf
+ServerType standalone
+ServerRoot "$server_root"
+Include conf.d/*.conf
+PidFile logs/httpd.pid
+!>conf.d/a.conf
+Timeout 300
+!>conf.d/b.conf
+MaxKeepAliveRequests 100
+!>conf.d/c
+Other Statement
+!>conf.d/z.conf
+User apache
+Group apache
+!=
+ServerType standalone
+ServerRoot "$server_root"
+Timeout 300
+MaxKeepAliveRequests 100
+User apache
+Group apache
+PidFile logs/httpd.pid
+!$

Return to:

Send suggestions and report system problems to the System administrator.