Commit 26c023d9 authored by Nils Goroll's avatar Nils Goroll

leave trace files from vslarg.sh for analysis

parent afa9a185
......@@ -7,7 +7,15 @@ TESTS = test_data test_strfTIM test_hdrtrie test_format test_writer \
ncsa.sh vslarg.sh regress.sh
# artifacts of the regression test
CLEANFILES = test.log output.log
CLEANFILES = \
test.log \
output.log \
vslarg.sh.trc.dash-C \
vslarg.sh.trc.no \
vslarg.sh.trc.query \
vslarg.sh.trc.raw \
vslarg.sh.trc.request \
vslarg.sh.trc.vxid
check_PROGRAMS = test_data test_strfTIM test_format test_writer test_hdrtrie
......
......@@ -7,13 +7,17 @@ echo "... testing standard VSL args"
IN=varnish-4.1.0-doc.log
CONF=varnishevent.conf
LOG=/dev/null
TRC=$(basename $0).trc
rm -rf ${TRC}
mkdir ${TRC}
# Ensure that the local time date formatters produce the same output
# wherever the test is run.
export TZ=UTC
echo "... no VSL args"
CKSUM=$( ../varnishevent -r ${IN} -f ${CONF} -l ${LOG} | cksum)
CKSUM=$( ../varnishevent -r ${IN} -f ${CONF} -l ${LOG} | tee ${TRC}.no | cksum)
if [ "$CKSUM" != '2542287168 442191' ]; then
echo "ERROR: no VSL args unexpected cksum: $CKSUM"
......@@ -21,7 +25,8 @@ if [ "$CKSUM" != '2542287168 442191' ]; then
fi
echo "... -g vxid"
CKSUM=$( ../varnishevent -g vxid -r ${IN} -f ${CONF} -l ${LOG} | cksum)
CKSUM=$( ../varnishevent -g vxid -r ${IN} -f ${CONF} -l ${LOG} |
tee ${TRC}.vxid | cksum)
# Same as default (no -g arg)
if [ "$CKSUM" != '2542287168 442191' ]; then
......@@ -30,7 +35,8 @@ if [ "$CKSUM" != '2542287168 442191' ]; then
fi
echo "... -g request"
CKSUM=$( ../varnishevent -g request -r ${IN} -f ${CONF} -l ${LOG} | cksum)
CKSUM=$( ../varnishevent -g request -r ${IN} -f ${CONF} -l ${LOG} |
tee ${TRC}.request | cksum)
if [ "$CKSUM" != '3970366484 443186' ]; then
echo "ERROR: -g request unexpected cksum: $CKSUM"
......@@ -42,7 +48,8 @@ echo "... -g raw"
# even for binary file reads. So we check against the last four columns.
# The query restricts output to Begin records; the previous invocation
# rendered every record with just the VXIDs.
CKSUM=$( ../varnishevent -g raw -r ${IN} -f raw.conf -l ${LOG} -q 'Begin' | cut -d' ' -f4- | cksum)
CKSUM=$( ../varnishevent -g raw -r ${IN} -f raw.conf -l ${LOG} -q 'Begin' |
cut -d' ' -f4- | tee ${TRC}.raw | cksum)
if [ "$CKSUM" != '3267477005 21053' ]; then
echo "ERROR: -g raw with query unexpected cksum: $CKSUM"
......@@ -66,7 +73,8 @@ if [ "$?" != "1" ]; then
fi
echo "... -q query"
CKSUM=$( ../varnishevent -q 'ReqURL ~ "_static"' -r ${IN} -l ${LOG} | cksum)
CKSUM=$( ../varnishevent -q 'ReqURL ~ "_static"' -r ${IN} -l ${LOG} |
tee ${TRC}.query | cksum)
if [ "$CKSUM" != '805680033 830' ]; then
echo "ERROR: -q query unexpected cksum: $CKSUM"
......@@ -81,7 +89,8 @@ if [ "$?" != "1" ]; then
fi
echo "... -C"
CKSUM=$( ../varnishevent -C -q 'ReqURL ~ "_STATIC"' -r ${IN} -l ${LOG} | cksum)
CKSUM=$( ../varnishevent -C -q 'ReqURL ~ "_STATIC"' -r ${IN} -l ${LOG} |
tee ${TRC}.dash-C | cksum)
if [ "$CKSUM" != '805680033 830' ]; then
echo "ERROR: -q query unexpected cksum: $CKSUM"
......
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