#!/bin/sh
# PCP QA Test No. 996
# pmdiff - sorting and reporting
#
# Copyright (c) 2014 Ken McDonell.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

status=1	# failure is the default!
trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15

_filter()
{
    sed -e "s,$here,HERE,g"
}

# real QA test starts here
echo "=== tolerance 1 ==="
pmdiff -z -q 1 archives/diff1 archives/diff2 | _filter

echo
echo "=== default tolerance ==="
pmdiff -z archives/diff1 archives/diff2 | _filter

# success, all done
status=0

exit
