Commit f474ead3 authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: added regression test

parent ef9e1567
TESTS = ncsa.sh
TESTS = regress.sh ncsa.sh
#!/bin/bash
echo
echo "TEST: $0"
echo "... testing output against a known checksum"
CMD="../varnishevent -G varnishevent.conf -r varnish.binlog"
# sed removes the version/revision from the "initializing" line
CKSUM=$( $CMD | sed -e 's/\(initializing\) \(.*\)/\1/' | cksum)
if [ "$CKSUM" != '561362531 23303920' ]; then
echo "ERROR: Regression test incorrect cksum: $CKSUM"
exit 1
fi
exit 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