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
0b5a8941
Commit
0b5a8941
authored
Sep 09, 2018
by
Poul-Henning Kamp
Committed by
Dridi Boukelmoune
Oct 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test even more obscure corners of varnishhist
parent
6813e0b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
u00007.vtc
bin/varnishtest/tests/u00007.vtc
+4
-0
u00009.vtc
bin/varnishtest/tests/u00009.vtc
+10
-5
No files found.
bin/varnishtest/tests/u00007.vtc
View file @
0b5a8941
...
...
@@ -37,3 +37,7 @@ shell -err -expect "-P: 'b:BereqAcct:x' is not a valid profile name or definitio
"varnishhist -P b:BereqAcct:x"
shell -err -expect "-P: 'b:BereqAcct:x' is not a valid profile name or definition" \
"varnishhist -P b:BereqAcct:x:"
shell -err -expect "-P: 'b:BereqAcct:' is not a valid profile name or definition" \
"varnishhist -P b:BereqAcct::5:1:a"
shell -err -expect "-p: invalid '0'" \
"varnishhist -P b:BereqAcct::5 -p 0"
bin/varnishtest/tests/u00009.vtc
View file @
0b5a8941
...
...
@@ -2,17 +2,17 @@ varnishtest "trivial run of varnishhist in curses mode"
server s1 {
rxreq
txresp
txresp
-bodylen 32
} -start
varnish v1 -vcl+backend {} -start
process p1 -dump {varnishhist -n ${v1_name}} -start
process p2 -dump {varnishhist -n ${v1_name} -P b:BereqAcct::5:
1:8
} -start
process p2 -dump {varnishhist -n ${v1_name} -P b:BereqAcct::5:
-1:1
} -start
process p3 -dump {varnishhist -n ${v1_name} -P BerespBodytime -B 2} -start
process p1 -expect-text 24 0 {1e2}
process p2 -expect-text 24 0 {1e
2
}
process p2 -expect-text 24 0 {1e
-1
}
process p3 -expect-text 24 0 {1e2}
delay 1
...
...
@@ -22,13 +22,18 @@ client c1 {
rxresp
} -run
varnish v1 -vsl_catchup
process p1 -expect-text 22 0 {#}
process p2 -expect-text 22 80 {#}
client c1 {
txreq
rxresp
} -run
varnish v1 -vsl_catchup
process p1 -expect-text 22 0 { | }
process p1 -expect-text 3 1 {20_}
...
...
@@ -39,12 +44,12 @@ process p1 -winsz 23 80 -need-bytes +10
process p1 -write {0>+-<} -need-bytes +10
process p3 -write {0>+-<x} -need-bytes +10
process p3 -write {0
++++++++++
>+-<x} -need-bytes +10
process p1 -expect-text 2 1 {20_}
process p1 -writehex 0c -need-bytes +10
process p1 -screen_dump -write {q} -wait
process p2 -screen_dump -
write {q}
-wait
process p2 -screen_dump -
kill HUP
-wait
process p3 -screen_dump -write {q} -wait
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