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
6813e0b1
Commit
6813e0b1
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 more distant corners of varnishhist
parent
b0b82f39
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
varnishhist.c
bin/varnishhist/varnishhist.c
+1
-2
u00007.vtc
bin/varnishtest/tests/u00007.vtc
+13
-3
u00009.vtc
bin/varnishtest/tests/u00009.vtc
+3
-1
No files found.
bin/varnishhist/varnishhist.c
View file @
6813e0b1
...
...
@@ -657,8 +657,7 @@ main(int argc, char **argv)
ident
=
VSM_Dup
(
vut
->
vsm
,
"Arg"
,
"-i"
);
else
ident
=
strdup
(
""
);
if
(
pthread_create
(
&
thr
,
NULL
,
do_curses
,
NULL
)
!=
0
)
VUT_Error
(
vut
,
1
,
"pthread_create(): %s"
,
strerror
(
errno
));
AZ
(
pthread_create
(
&
thr
,
NULL
,
do_curses
,
NULL
));
vut
->
dispatch_f
=
accumulate
;
vut
->
dispatch_priv
=
NULL
;
vut
->
sighup_f
=
sighup
;
...
...
bin/varnishtest/tests/u00007.vtc
View file @
6813e0b1
...
...
@@ -11,12 +11,14 @@ shell -match "Usage: .*varnishhist <options>" \
"varnishhist -h"
shell -expect "Copyright (c) 2006 Verdens Gang AS" \
"varnishhist -V"
shell -err -match "Usage: .*varnishhist <options>" \
"varnishhist -K"
shell -err -match "Usage: .*varnishhist <options>" \
"varnishhist extra"
shell -err -expect "-p: invalid '0'" \
"varnishhist -p 0"
shell -err -expect "-B: being able to bend time does not mean we can stop it" \
"varnishhist -B 0"
"varnishhist -
p 2.0 -
B 0"
shell -err -expect "-B: being able to bend time does not mean we can make it go backwards" \
"varnishhist -B -1"
shell -err -expect "Invalid grouping mode: raw" \
...
...
@@ -25,5 +27,13 @@ shell -err -expect "-P: No such profile 'foo'" \
"varnishhist -P foo"
shell -err -expect "-P: 'Timestamp:' is not a valid profile name or definition" \
"varnishhist -P Timestamp::"
shell -err -expect "-P: 'foo::0:0:0' is not a valid tag name" \
"varnishhist -P foo::0:0:0"
shell -err -expect "-P: 'b:' is not a valid profile name or definition" \
"varnishhist -P b:"
shell -err -expect "-P: 'foo:' is not a valid tag name" \
"varnishhist -P foo:"
shell -err -expect "-P: 'b:Debug:' is an unsafe or binary record" \
"varnishhist -P b:Debug:"
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:x' is not a valid profile name or definition" \
"varnishhist -P b:BereqAcct:x:"
bin/varnishtest/tests/u00009.vtc
View file @
6813e0b1
...
...
@@ -9,7 +9,7 @@ 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 p3 -dump {varnishhist -n ${v1_name} -P BerespBodytime} -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 {1e2}
...
...
@@ -39,6 +39,8 @@ process p1 -winsz 23 80 -need-bytes +10
process p1 -write {0>+-<} -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
...
...
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