summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2017-12-15 05:07:10 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2017-12-15 05:07:10 (GMT)
commit739c7292539dc0fce8e6ec8c924fe5eba09eb832 (patch) (side-by-side diff)
tree435c16e37f897511749d010ec7a29c8c9acb6cf7
parent8da9e46a4cafdc3e6a5314aaf72bc1f152706ca9 (diff)
downloadacpp-739c7292539dc0fce8e6ec8c924fe5eba09eb832.tar.gz
acpp-739c7292539dc0fce8e6ec8c924fe5eba09eb832.tar.bz2
Add a testcase
* t/01include04.t: New file.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--t/01include04.t38
1 files changed, 38 insertions, 0 deletions
diff --git a/t/01include04.t b/t/01include04.t
new file mode 100644
index 0000000..79d430a
--- a/dev/null
+++ b/t/01include04.t
@@ -0,0 +1,38 @@
+# -*- perl -*-
+use lib qw(t lib);
+use strict;
+use Test;
+plan test => 1;
+
+use TestPreproc;
+# Test whether a file can be included non-recursively multiple times
+my $obj = new TestPreproc -expand => [qw(include)];
+ok($obj->dump_raw, $obj->dump_expect);
+
+__DATA__
+!>httpd.conf
+ServerType standalone
+ServerRoot "$server_root"
+<VirtualHost *:80>
+ ServerName foo.bar.example.com
+ Include req.conf
+</VirtualHost>
+<VirtualHost *:80>
+ ServerName quux.example.com
+ Include req.conf
+</VirtualHost>
+!>req.conf
+Require all granted
+!=
+ServerType standalone
+ServerRoot "$server_root"
+<VirtualHost *:80>
+ ServerName foo.bar.example.com
+Require all granted
+</VirtualHost>
+<VirtualHost *:80>
+ ServerName quux.example.com
+Require all granted
+</VirtualHost>
+!$
+

Return to:

Send suggestions and report system problems to the System administrator.