Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
varnishevent3
Commits
367e8492
Commit
367e8492
authored
Oct 13, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: add the vslarg.sh test
parent
54e40db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletion
+40
-1
Makefile.am
bin/varnishevent/test/Makefile.am
+1
-1
vslarg.sh
bin/varnishevent/test/vslarg.sh
+39
-0
No files found.
bin/varnishevent/test/Makefile.am
View file @
367e8492
TESTS
=
regress.sh ncsa.sh
TESTS
=
regress.sh ncsa.sh
vslarg.sh
bin/varnishevent/test/vslarg.sh
0 → 100755
View file @
367e8492
#!/bin/bash
echo
echo
"TEST:
$0
"
echo
"... testing standard VSL args"
echo
"... -k keep"
CKSUM
=
$(
../varnishevent
-k
1000
-r
varnish.binlog |
cksum
)
if
[
"
$CKSUM
"
!=
'3569862329 1119'
]
;
then
echo
"ERROR: -k keep incorrect cksum:
$CKSUM
"
exit
1
fi
echo
"... -m tag:regex"
CKSUM
=
$(
../varnishevent
-m
RxURL:manual
-m
RxURL:pt-br
-r
varnish.binlog |
cksum
)
if
[
"
$CKSUM
"
!=
'968394035 24419'
]
;
then
echo
"ERROR: -m tag:regex incorrect cksum:
$CKSUM
"
exit
1
fi
echo
"... -s skip"
CKSUM
=
$(
../varnishevent
-s
20000
-r
varnish.binlog |
cksum
)
if
[
"
$CKSUM
"
!=
'1846333159 3668220'
]
;
then
echo
"ERROR: -s skip incorrect cksum:
$CKSUM
"
exit
1
fi
echo
"... -X regex"
CKSUM
=
$(
../varnishevent
-X
manual
-r
varnish.binlog |
cksum
)
if
[
"
$CKSUM
"
!=
'1394076397 3663437'
]
;
then
echo
"ERROR: -X regex incorrect cksum:
$CKSUM
"
exit
1
fi
exit
0
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