Commit 367e8492 authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: add the vslarg.sh test

parent 54e40db4
TESTS = regress.sh ncsa.sh
TESTS = regress.sh ncsa.sh vslarg.sh
#!/bin/bash
echo
echo "TEST: $0"
echo "... testing standard VSL args"
echo "... -k keep"
CKSUM=$( ../varnishevent -k 1000 -r varnish.binlog | cksum)
if [ "$CKSUM" != '3569862329 1119' ]; then
echo "ERROR: -k keep incorrect cksum: $CKSUM"
exit 1
fi
echo "... -m tag:regex"
CKSUM=$( ../varnishevent -m RxURL:manual -m RxURL:pt-br -r varnish.binlog | cksum)
if [ "$CKSUM" != '968394035 24419' ]; then
echo "ERROR: -m tag:regex incorrect cksum: $CKSUM"
exit 1
fi
echo "... -s skip"
CKSUM=$( ../varnishevent -s 20000 -r varnish.binlog | cksum)
if [ "$CKSUM" != '1846333159 3668220' ]; then
echo "ERROR: -s skip incorrect cksum: $CKSUM"
exit 1
fi
echo "... -X regex"
CKSUM=$( ../varnishevent -X manual -r varnish.binlog | cksum)
if [ "$CKSUM" != '1394076397 3663437' ]; then
echo "ERROR: -X regex 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