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
d242c32c
Commit
d242c32c
authored
Oct 12, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: adding make check tests
parent
057dcfd7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
0 deletions
+38
-0
Makefile.am
bin/varnishevent/Makefile.am
+2
-0
Makefile.am
bin/varnishevent/test/Makefile.am
+1
-0
ncsa.sh
bin/varnishevent/test/ncsa.sh
+34
-0
varnish.binlog
bin/varnishevent/test/varnish.binlog
+0
-0
configure.ac
configure.ac
+1
-0
No files found.
bin/varnishevent/Makefile.am
View file @
d242c32c
...
...
@@ -2,6 +2,8 @@
INCLUDES
=
-I
$(top_srcdir)
/include
SUBDIRS
=
test
bin_PROGRAMS
=
varnishevent
dist_man_MANS
=
varnishevent.1
...
...
bin/varnishevent/test/Makefile.am
0 → 100644
View file @
d242c32c
TESTS
=
ncsa.sh
bin/varnishevent/test/ncsa.sh
0 → 100755
View file @
d242c32c
#!/bin/bash
# Outputs of varnishevent and varnishncsa for client formats are
# identical, except that varnishevent emits empty strings for data
# from headers that are empty, and varnishnca emits a '-'.
echo
echo
"TEST:
$0
"
echo
"... testing (near) equivalence of output with varnishncsa"
EVENT
=
"../varnishevent"
NCSA
=
"../../varnishncsa/varnishncsa"
EVENT_CKSUM
=
$(
$EVENT
-r
varnish.binlog |
sed
's/-//g'
|
cksum
)
NCSA_CKSUM
=
$(
$NCSA
-r
varnish.binlog |
sed
's/-//g'
|
cksum
)
if
[
"
$EVENT_CKSUM
"
!=
"
$NCSA_CKSUM
"
]
;
then
echo
"ERROR: cksums of no-arg varnishevent and varnishncsa differ"
echo
"varnishevent cksum =
$EVENT_CKSUM
"
echo
"varnishncsa cksum =
$NCSA_CKSUM
"
exit
1
fi
EVENT_CKSUM
=
$(
$EVENT
-r
varnish.binlog
-f
|
sed
's/-//g'
|
cksum
)
NCSA_CKSUM
=
$(
$NCSA
-r
varnish.binlog
-f
|
sed
's/-//g'
|
cksum
)
if
[
"
$EVENT_CKSUM
"
!=
"
$NCSA_CKSUM
"
]
;
then
echo
"ERROR: cksums of no-arg varnishevent/varnishncsa -f differ"
echo
"varnishevent cksum =
$EVENT_CKSUM
"
echo
"varnishncsa cksum =
$NCSA_CKSUM
"
exit
1
fi
exit
0
bin/varnishevent/test/varnish.binlog
0 → 100644
View file @
d242c32c
File added
configure.ac
View file @
d242c32c
...
...
@@ -563,6 +563,7 @@ AC_CONFIG_FILES([
bin/varnishadm/Makefile
bin/varnishd/Makefile
bin/varnishevent/Makefile
bin/varnishevent/test/Makefile
bin/varnishlog/Makefile
bin/varnishhist/Makefile
bin/varnishncsa/Makefile
...
...
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