Commit 3d51e2df authored by Geoff Simmons's avatar Geoff Simmons

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

parent 9cebbb8a
...@@ -18,9 +18,11 @@ CMD="../trackrdrd -D -f varnish.binlog -l - -d -c test.conf" ...@@ -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 first sed removes the version/revision from the "initializing" line
# the second sed removes the user under which the child process runs # 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" echo "ERROR: Regression test incorrect cksum: $CKSUM"
exit 1 exit 1
fi fi
......
# Test configuration for the varnish log tracking reader # Test configuration for the varnish log tracking reader
log.file = /tmp/trackrdrd.log log.file = /tmp/trackrdrd.log
pid.file = /tmp/trackrdrd.pid pid.file = trackrdrd.pid
maxdata.scale = 2 maxdata.scale = 2
maxopen.scale = 1 maxopen.scale = 1
monitor.interval = 0 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