Permalink
Browse files

varnishhist coverage

  • Loading branch information...
1 parent 12bad7a commit 1836d1ffb46b0ba16c89cb7221e63eb969d09b88 @fgsch fgsch committed Jan 12, 2017
Showing with 25 additions and 0 deletions.
  1. +25 −0 bin/varnishtest/tests/u00007.vtc
@@ -0,0 +1,25 @@
+varnishtest "varnishhist coverage"
+
+server s1 {
+ rxreq
+ txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+process p1 "exec varnishhist -n ${v1_name} -h" -run
+shell {grep -q "Usage: varnishhist <options>" ${tmpdir}/p1/stderr}
+err_shell "Usage: varnishhist <options>" \
+ "varnishhist -n ${v1_name} extra 2>&1"
+err_shell "-p: invalid '0'" "varnishhist -n ${v1_name} -p 0 2>&1"
+err_shell "-B: being able to bend time does not mean we can stop it" \
+ "varnishhist -n ${v1_name} -B 0 2>&1"
+err_shell "-B: being able to bend time does not mean we can make it go backwards" "varnishhist -n ${v1_name} -B -1 2>&1"
+err_shell "Invalid grouping mode: raw" \
+ "varnishhist -n ${v1_name} -g raw 2>&1"
+err_shell "-P: No such profile 'foo'" \
+ "varnishhist -n ${v1_name} -P foo 2>&1"
+err_shell "-P: 'foo:bar' is not a valid profile name or definition" \
+ "varnishhist -n ${v1_name} -P foo:bar 2>&1"
+err_shell "-P: 'foo:0:0:0' is not a valid tag name" \
+ "varnishhist -n ${v1_name} -P foo:0:0:0 2>&1"

0 comments on commit 1836d1f

Please sign in to comment.