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
233f0fde
Commit
233f0fde
authored
Nov 28, 2012
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trackrdrd: regression test is now independent of the user running it
parent
0fa9482d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
regress.sh
trackrdrd/src/test/regress.sh
+4
-2
test.conf
trackrdrd/src/test/test.conf
+1
-1
No files found.
trackrdrd/src/test/regress.sh
View file @
233f0fde
...
...
@@ -18,9 +18,11 @@ CMD="../trackrdrd -D -f varnish.binlog -l - -d -c test.conf"
# the first sed removes the version/revision from the "initializing" line
# the second sed removes the user under which the child process runs
CKSUM
=
$(
$CMD
|
sed
-e
's/\(initializing\) \(.*\)/\1/'
|
sed
-e
's/\(, running as\) \(.*\)/\1/'
|
cksum
)
# "Not running as root" filtered so that the test is independent of
# the user running it
CKSUM
=
$(
$CMD
|
sed
-e
's/\(initializing\) \(.*\)/\1/'
|
sed
-e
's/\(, running as\) \(.*\)/\1/'
|
grep
-v
'Not running as root'
|
cksum
)
if
[
"
$CKSUM
"
!=
'
4048021999 232297
'
]
;
then
if
[
"
$CKSUM
"
!=
'
1127092118 232241
'
]
;
then
echo
"ERROR: Regression test incorrect cksum:
$CKSUM
"
exit
1
fi
...
...
trackrdrd/src/test/test.conf
View file @
233f0fde
# Test configuration for the varnish log tracking reader
log
.
file
= /
tmp
/
trackrdrd
.
log
pid
.
file
=
/
tmp
/
trackrdrd
.
pid
pid
.
file
=
trackrdrd
.
pid
maxdata
.
scale
=
2
maxopen
.
scale
=
1
monitor
.
interval
=
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