#!/bin/sh
#
PM1DUMP=$1
GREP="grep -A1"
ECM="ecm -resume -"
#
if !(test -x $PM1DUMP) then
    echo "usage: ./check <pm1dump_binary>";
    exit 1;
fi
#
echo -n "Test 10 "
if !($PM1DUMP -m test-lowm.txt -c m0032768 | cmp - test-10.out)
then
    echo "failed!";
    exit 1;
else
    echo "passed."
fi
#
echo -n "Test 11 "
if !($PM1DUMP -p test-lowp.txt -c l0000709 | cmp - test-11.out)
then
    echo "failed!";
    exit 1;
else
    echo "passed."
fi
#
echo "*** All tests passed ***"
exit 0
