aboutsummaryrefslogtreecommitdiff
path: root/regress/runtime
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-06 18:28:43 +0000
committerOmar Polo <op@omarpolo.com>2021-02-06 18:28:43 +0000
commite3ddf390950bf51d0c6c9cc6b931879006936e4c (patch)
treeb5c8af6e5209006b99b4a65f222bbf169483c57e /regress/runtime
parentafc025ff600c11e5cbe8794b944b560492290cce (diff)
add the ``entrypoint'' option
Diffstat (limited to 'regress/runtime')
-rwxr-xr-xregress/runtime10
1 files changed, 10 insertions, 0 deletions
diff --git a/regress/runtime b/regress/runtime
index 4d53f1c..9492b1d 100755
--- a/regress/runtime
+++ b/regress/runtime
@@ -255,4 +255,14 @@ echo OK GET /bigfile with strip and block
check "should be running"
+# test the entrypoint
+
+config '' 'entrypoint "/env"'
+checkconf
+restart
+
+eq "$(head /foo/bar)" "20 text/plain; lang=en" "Unknown head for /foo/bar"
+eq "$(get /foo/bar|grep PATH_INFO)" "PATH_INFO=/foo/bar" "Unexpected PATH_INFO"
+echo OK GET /foo/bar with entrypoint
+
quit