Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b5e64a92
Commit
b5e64a92
authored
Jan 10, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve previous tests and add a few more
parent
9d29b386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
u00005.vtc
bin/varnishtest/tests/u00005.vtc
+9
-0
u00006.vtc
bin/varnishtest/tests/u00006.vtc
+16
-3
No files found.
bin/varnishtest/tests/u00005.vtc
View file @
b5e64a92
...
...
@@ -8,9 +8,18 @@ server s1 {
varnish v1 -vcl+backend {} -start
process p1 "exec varnishstat -n ${v1_name} -h" -run
shell {grep -q "Usage: varnishstat <options>" ${tmpdir}/p1/stderr}
process p2 "exec varnishstat -n ${v1_name} -l" -run
shell {grep -q "Varnishstat -f option fields:" ${tmpdir}/p2/stdout}
process p3 "exec varnishstat -n ${v1_name} -V" -run
shell {grep -q "Copyright (c) 2006 Verdens Gang AS" ${tmpdir}/p3/stderr}
process p4 "exec varnishstat -n ${v1_name} -1" -run
shell {grep -q "MAIN.uptime" ${tmpdir}/p4/stdout}
process p5 "exec varnishstat -n ${v1_name} -x" -run
shell {grep -q "<type>MAIN</type>" ${tmpdir}/p5/stdout}
process p6 "exec varnishstat -n ${v1_name} -j" -run
shell {grep -q "MAIN.uptime\":" ${tmpdir}/p6/stdout}
process p7 "exec varnishstat -n ${v1_name} extra" -run
shell {grep -q "Usage: varnishstat <options>" ${tmpdir}/p7/stderr}
process p8 "exec varnishstat -n /nonexistent" -run
shell {grep -q "Cannot open /nonexistent/_.vsm" ${tmpdir}/p8/stderr}
bin/varnishtest/tests/u00006.vtc
View file @
b5e64a92
...
...
@@ -8,7 +8,20 @@ server s1 {
varnish v1 -vcl+backend {} -start
process p1 "exec varnishlog -n ${v1_name} -g raw -k 1" -start
process p2 "exec varnishlog -n ${v1_name} -h" -run
process p3 "exec varnishlog -n ${v1_name} -V" -run
process p4 "exec varnishlog -n ${v1_name} extra" -run
process p2 {
exec varnishlog -n ${v1_name} -g raw -k 1 -w ${tmpdir}/p2/output -A
} -start
process p3 "exec varnishlog -n ${v1_name} -h" -run
shell {grep -q "Usage: varnishlog <options>" ${tmpdir}/p3/stderr}
process p4 "exec varnishlog -n ${v1_name} -V" -run
shell {grep -q "Copyright (c) 2006 Verdens Gang AS" ${tmpdir}/p4/stderr}
process p5 "exec varnishlog -n ${v1_name} extra" -run
shell {grep -q "Usage: varnishlog <options>" ${tmpdir}/p5/stderr}
process p6 "exec varnishlog -n ${v1_name} -D" -run
shell {grep -q "Missing -w option" ${tmpdir}/p6/stderr}
process p7 "exec varnishlog -n ${v1_name} -L 0" -run
shell {grep -q -- "-L: Range error" ${tmpdir}/p7/stderr}
process p1 -wait
shell {grep -q "0 CLI" ${tmpdir}/p1/stdout}
process p2 -wait
shell {grep -q "0 CLI" ${tmpdir}/p2/output}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment