Commit 4518b0b7 authored by Federico G. Schwindt's avatar Federico G. Schwindt

A few more tests

parent eacdb4ff
......@@ -36,9 +36,9 @@ shell -expect "Copyright (c) 2006 Verdens Gang AS" \
shell -err -expect "Usage: varnishstat <options>" \
"varnishstat extra"
shell -err -expect "-t: Range error" \
"varnishstat -n /nonexistent -t -1"
"varnishstat -t -1"
shell -err -expect "-t: Syntax error" \
"varnishstat -n /nonexistent -t foo"
"varnishstat -t foo"
shell -err -expect "Cannot open /nonexistent/_.vsm" \
"varnishstat -n /nonexistent -t 1"
shell -expect "MAIN.uptime" \
......
......@@ -23,6 +23,12 @@ shell -err -expect "Usage: varnishlog <options>" \
"varnishlog extra"
shell -err -expect "Missing -w option" \
"varnishlog -D"
shell -err -expect "Ambiguous grouping type: r" \
"varnishlog -g r"
shell -err -expect "Unknown grouping type: foo" \
"varnishlog -g foo"
shell -err -expect "-k: Invalid number 'foo'" \
"varnishlog -k foo"
shell -err -expect "-L: Range error" \
"varnishlog -L 0"
shell -err -expect {-i: "foo" matches zero tags} \
......@@ -35,6 +41,10 @@ shell -err -expect {-I: "Resp" is ambiguous} \
"varnishlog -I Resp:bar"
shell -err -expect {-I: Regex error at position 4 (missing ))} \
{varnishlog -I "(foo"}
shell -err -expect "-t: Range error" \
"varnishlog -t -1"
shell -err -expect "-t: Syntax error" \
"varnishlog -t foo"
shell -err -expect {-x: Syntax error in "**"} \
{varnishlog -x "**"}
shell -err -expect {-X: Syntax error in "**"} \
......
Markdown is supported
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