Commit 93743a47 authored by Steve Kemp's avatar Steve Kemp
Browse files

Added test for substring'd vhosts.

parent c4b17eab
...@@ -20,7 +20,8 @@ clean: ...@@ -20,7 +20,8 @@ clean:
test: test-strip.c test: test-strip.c
gcc -Wall -Werror -o test-strip test-strip.c gcc -Wall -Werror -o test-strip test-strip.c
mkdir -p /tmp/foo.com || true mkdir -p /tmp/foo.com || true
mkdir -p /tmp/blog.foo.com || true
./test-strip 2>/dev/null ./test-strip 2>/dev/null
install: install:
......
...@@ -143,6 +143,10 @@ main (int argc, char *argv[]) ...@@ -143,6 +143,10 @@ main (int argc, char *argv[])
"/tmp/.foo.com/public/htdocs", "/tmp/.foo.com/public/htdocs",
"/tmp/foo.com/public/htdocs", "/tmp/foo.com/public/htdocs",
}, },
{
"/tmp/blog.foo.com/public/htdocs",
"/tmp/blog.foo.com/public/htdocs",
},
{ {
"/tmp/this.is.insane.foo.com/public/htdocs", "/tmp/this.is.insane.foo.com/public/htdocs",
"/tmp/foo.com/public/htdocs", "/tmp/foo.com/public/htdocs",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment