Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent
Commits
1779d902
Commit
1779d902
authored
Apr 19, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more tests for the -g option
parent
76be6c01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
raw.conf
src/test/raw.conf
+6
-0
vslarg.sh
src/test/vslarg.sh
+20
-2
No files found.
src/test/raw.conf
0 → 100644
View file @
1779d902
# varnishevent test configuration for raw transactions
monitor
.
interval
=
0
cformat
=
rformat
=%
t
%{%
F
-%
T
.%
i
}
t
%{
tag
:
Begin
}
x
src/test/vslarg.sh
View file @
1779d902
...
...
@@ -4,8 +4,7 @@ echo
echo
"TEST:
$0
"
echo
"... testing standard VSL args"
echo
"... -g grouping"
echo
"... -g vxid"
# For grouping, use the larger test log that has some backend transactions,
# since the two groupings have the effect of exchanging the order of some
# output lines (no difference with the smaller log).
...
...
@@ -17,6 +16,7 @@ if [ "$CKSUM" != '3589078266 20793576' ]; then
exit
1
fi
echo
"... -g request"
CKSUM
=
$(
../varnishevent
-g
request
-r
sw-doc.log
-f
varnishevent.conf |
cksum
)
if
[
"
$CKSUM
"
!=
'2107709581 20793576'
]
;
then
...
...
@@ -24,6 +24,24 @@ if [ "$CKSUM" != '2107709581 20793576' ]; then
exit
1
fi
echo
"... -g raw"
# Timestamps for raw grouping are always the time at which the tx was read,
# even for binary file reads. So we check against the last three columns.
CKSUM
=
$(
../varnishevent
-g
raw
-r
varnish-doc.log
-f
raw.conf |
awk
'{print $(NF-2), $(NF-1), $NF}'
|
cksum
)
if
[
"
$CKSUM
"
!=
'2652535054 3311'
]
;
then
echo
"ERROR: -g raw unexpected cksum:
$CKSUM
"
exit
1
fi
echo
'... -g session'
../varnishevent
-g
session
if
[
"
$?
"
!=
"1"
]
;
then
echo
"ERROR: -g session did not exit with failure as expected"
exit
1
fi
exit
0
echo
"... -m tag:regex"
...
...
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