Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
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
trackrdrd
Commits
88eee905
Commit
88eee905
authored
Feb 07, 2024
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update regression test with binary log from Varnish 7.4.2.
parent
9f47f465
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
regress.sh
src/test/regress.sh
+4
-8
test.conf
src/test/test.conf
+3
-2
varnish.legacy.binlog
src/test/varnish.legacy.binlog
+0
-0
No files found.
src/test/regress.sh
View file @
88eee905
...
...
@@ -42,7 +42,7 @@ function regress {
# the second sed removes the user under which the child process runs
# "Not running as root" filtered so that the test is independent of
# the user running it
CKSUM
=
$(
grep
-v
'Worker 1'
$LOG
|
sed
-e
's/\(initializing\) \(.*\)/\1/'
|
sed
-e
's/\(Running as\) \([a-zA-Z0-9]*\)$/\1/'
|
grep
-v
'Not running as root'
|
cksum
)
CKSUM
=
$(
grep
-v
'Worker 1'
$LOG
|
sed
-e
's/\(initializing\) \(.*\)/\1/'
|
sed
-e
's/\(Running as\) \([a-zA-Z0-9]*\)$/\1/'
-e
's/\(Reader: took\) [0-9]* \(free\)/\1 \2/'
|
grep
-v
'Not running as root'
|
cksum
)
if
[
"
$CKSUM
"
!=
"
$2
"
]
;
then
echo
"ERROR: Regression test incorrect reader log cksum:
$CKSUM
"
exit
1
...
...
@@ -67,15 +67,11 @@ function regress {
}
echo
'... standard VCL_Log syntax'
regress
'varnish.binlog'
'4193098095 333282'
'1274763305 56045'
\
'1485621276 46141'
echo
'... legacy VCL_Log syntax'
regress
'varnish.legacy.binlog'
'3334052518 375477'
'3908916621 57319'
\
'1139478852 48689'
regress
'varnish.binlog'
'3797708781 290937096'
'1401120156 33507479'
\
'3845964878 33359820'
if
[
"
$TESTDIR
"
!=
"."
]
;
then
rm
-f
varnish.binlog
varnish.legacy.binlog
test.conf file_mq.conf
rm
-f
varnish.binlog test.conf file_mq.conf
fi
exit
0
src/test/test.conf
View file @
88eee905
# Test configuration for the varnish log tracking reader
log
.
file
= /
tmp
/
trackrdrd
.
log
pid
.
file
=
trackrdrd
.
pid
max
.
reclen
=
4096
max
.
records
=
1024
max
.
reclen
=
8192
max
.
records
=
4096
tx
.
limit
=
1500
monitor
.
interval
=
0
nworkers
=
1
mq
.
module
= ../
mq
/
file
/.
libs
/
libtrackrdr
-
file
.
so
...
...
src/test/varnish.legacy.binlog
deleted
100644 → 0
View file @
9f47f465
File deleted
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