diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-04-05 18:09:11 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-04-08 06:33:02 -0400 |
commit | 7258624e51b4bdb1b79f19f6c31ca7814cabcee1 (patch) | |
tree | 19052efb2817dc39961552ee13e0ca7bc254d81c /tests/condition.conf | |
parent | dcb5f2318b163028f4bb7a18b2211facbd997713 (diff) | |
download | lighttpd-git-7258624e51b4bdb1b79f19f6c31ca7814cabcee1.tar.gz |
[tests] able to run tests when built w/o pcre
perl test framework now runs most tests even when lighttpd has been
built without pcre support, though some tests which rely on regex
are skipped (tests/core-condition.t)
Diffstat (limited to 'tests/condition.conf')
-rw-r--r-- | tests/condition.conf | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/condition.conf b/tests/condition.conf index 55e2959a..aca6ce7f 100644 --- a/tests/condition.conf +++ b/tests/condition.conf @@ -25,21 +25,21 @@ mimetype.assign = ( ) url.redirect = ( - "^" => "/default", + "" => "/default", ) $HTTP["host"] == "www.example.org" { server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "www.example.org" url.redirect = ( - "^" => "/match_1", + "" => "/match_1", ) } else $HTTP["host"] == "test1.example.org" { server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test1.example.org" url.redirect = ( - "^" => "/match_2", + "" => "/match_2", ) } # comments @@ -47,7 +47,7 @@ else $HTTP["host"] == "test2.example.org" { server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test2.example.org" url.redirect = ( - "^" => "/match_3", + "" => "/match_3", ) } @@ -57,13 +57,13 @@ else $HTTP["host"] == "test3.example.org" { server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test3.example.org" url.redirect = ( - "^" => "/match_4", + "" => "/match_4", ) # comments $HTTP["url"] == "/index.html" { url.redirect = ( - "^" => "/match_5", + "" => "/match_5", ) } } @@ -72,12 +72,12 @@ else $HTTP["host"] == "test4.example.org" { server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" server.name = "test4.example.org" url.redirect = ( - "^" => "/match_6", + "" => "/match_6", ) - $HTTP["url"] =~ "^/subdir/" { + $HTTP["url"] =^ "/subdir/" { url.redirect = ( - "^" => "/match_7", + "" => "/match_7", ) } } @@ -86,7 +86,7 @@ else $HTTP["host"] == "test.example.org" { server.name = "test.example.org" var.myvar = "good" var.one = 1 - include "var-include-sub.conf" + include env.condition_include_file } $HTTP["url"] != "/show/other/server-tag" { |