# this tests the various assemblers' instruction lists by
# comparing with pre-assembled .hex files in the ref sub-directory

function testit()
{
   #echo "=========="
   /bin/echo -n "Testing $1:"
   #echo ""
   ../palwiz $1.pal >$1.jed

   diff -q $1.jed ref/$1.jed
   #diff $1.jed ref/$1.jed

   if [ $? -ne 0 ]; then
       echo " FAIL"
   else
       echo " pass"
       rm $1.jed
   fi
}

echo ""

testit 2600_8K
testit 78_pok
testit 78sc_144
testit 78sc_low
testit 78sc_meg
testit 78sc_pok
testit 78sc_r16
testit cc_multi_pak
testit coleco32-20V8C
testit coleco32-20V8R
testit coleco32-20V8S
testit coleco32-22V10
testit genesis4
testit test
testit test2

echo ""
