Commit 233f0fde authored by Geoff Simmons's avatar Geoff Simmons

trackrdrd: regression test is now independent of the user running it

parent 0fa9482d
......@@ -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
......
# 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment