#!/bin/sh

file="$1"

if [ "$file " = " " ]; then
   echo "$0 file_name"
   echo "This script can be used to compare the actual output of one"
   echo " of the test_parse* programs with its actual output"
   exit
fi

eval ./$file | sed -e 's/0x[a-z0-9]*/0xffff/g' -e 's/Parse:://g' \
   -e 's/Bar:://g' > t

sed -e 's/0x[a-z0-9]*/0xffff/g' ${file}.out > t2

diff t2 t
