summaryrefslogtreecommitdiff
path: root/tests/var-include-sub.conf
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2015-08-22 20:51:08 +0000
committerStefan Bühler <stbuehler@web.de>2015-08-22 20:51:08 +0000
commit87c5ec96517b9f551f5a6100c9e689073369a669 (patch)
tree5ebb8e804634a3414221e57def275a7594edfa81 /tests/var-include-sub.conf
parent5c48617737796edb53fe9d89dbc179465fec5cb9 (diff)
downloadlighttpd1.4-87c5ec96517b9f551f5a6100c9e689073369a669.tar.gz
lighttpd1.4-87c5ec96517b9f551f5a6100c9e689073369a669.zip
[tests] search for perl in PATH instead of /usr/bin; whitespace + test config cleanups
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3019 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/var-include-sub.conf')
-rw-r--r--tests/var-include-sub.conf38
1 files changed, 21 insertions, 17 deletions
diff --git a/tests/var-include-sub.conf b/tests/var-include-sub.conf
index 3e0c3b9c..d8f16969 100644
--- a/tests/var-include-sub.conf
+++ b/tests/var-include-sub.conf
@@ -1,34 +1,38 @@
# file to be included
$HTTP["host"] =~ "^" + server.name + "$" {
url.redirect = (
- "^/include$" => "/good_include",
- "^/concat$" => "/good_" + "concat",
- "^/servername1$" => "/good_" + server.name,
- "^/servername2$" => server.name + "/good_",
- "^/servername3$" => "/good_" + server.name + "/",
- "^/var.myvar$" => "/good_var_myvar" + var.myvar,
- "^/myvar$" => "/good_myvar" + myvar,
- "^/number1$" => "/good_number" + one,
- "^/number2$" => one + "/good_number",
- "^/env$" => "/" + env.env_test,
- )
+ "^/include$" => "/good_include",
+ "^/concat$" => "/good_" + "concat",
+ "^/servername1$" => "/good_" + server.name,
+ "^/servername2$" => server.name + "/good_",
+ "^/servername3$" => "/good_" + server.name + "/",
+ "^/var.myvar$" => "/good_var_myvar" + var.myvar,
+ "^/myvar$" => "/good_myvar" + myvar,
+ "^/number1$" => "/good_number" + one,
+ "^/number2$" => one + "/good_number",
+ "^/env$" => "/" + env.env_test,
+ )
+
num = 1
num2 = 2
num2 += 1
+
# without var prefix
mystr = "string"
mystr += "_append"
+
# from parent
one += 1
+
url.redirect += (
- "^/array_append$" => "/good_array_append",
- "^/string_append$" => "/good_" + mystr,
- "^/number_append$" => "/good_" + one,
- )
+ "^/array_append$" => "/good_array_append",
+ "^/string_append$" => "/good_" + mystr,
+ "^/number_append$" => "/good_" + one,
+ )
cmd = "echo cmd_ok=456"
include_shell cmd
url.redirect += (
- "^/include_shell$" => "/good_include_shell_" + cmd_ok,
- )
+ "^/include_shell$" => "/good_include_shell_" + cmd_ok,
+ )
}