diff --git a/Makefile b/Makefile index 9afc504..9c51095 100644 --- a/Makefile +++ b/Makefile @@ -14,3 +14,6 @@ c2t-96h: c2t-96h.c c2t.h c2t.h: mon/dos33.boot1.mon mon/dos33.boot2.mon asm/autoload.s asm/diskload2.s asm/diskload3.s asm/diskload8000.s asm/diskload9600.s asm/fastload8000.s asm/fastload9600.s asm/fastloadcd.s asm/inflate.s ./makeheader + +test: c2t-96h + ./test.sh diff --git a/c2t-96h b/c2t-96h index 0891e2d..e338e62 100755 Binary files a/c2t-96h and b/c2t-96h differ diff --git a/c2t-96h.c b/c2t-96h.c index b447ca1..6661b92 100644 --- a/c2t-96h.c +++ b/c2t-96h.c @@ -1849,8 +1849,8 @@ void printevents(event *events, int rate) { int i; - printf("Play List:\n\n"); + fprintf(stderr,"Play List:\n\n"); for(i=0;i/dev/null 2>&1 + + ./c2t-96h ${BASENAME} test.aif + + osascript test.scrp test.${FILETYPE} + + S1=$(md5sum ${BASENAME} | awk '{print $1}') + S2=$(md5sum test.$FILETYPE | awk '{print $1}') + + echo "$BASENAME $S1 $S2" + + if [ "$S1" = "$S2" ] + then + rm -f test.$FILETYPE test.aif + return 0 + fi + return 1 +} + +for i in zork.dsk dangerous_dave.po +do + if dsk_test $i + then + echo "$i passed" + else + echo "$i failed" + exit 1 + fi +done + +exit 0 +