Add regression test for fuzzy ISO detection.

Probably will rename iso4 to something else.
This commit is contained in:
rocky
2005-02-08 04:38:05 +00:00
parent a1c206fe3b
commit 693a039f2f
2 changed files with 35 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.45 2005/01/23 00:45:57 rocky Exp $
# $Id: Makefile.am,v 1.46 2005/02/08 04:38:05 rocky Exp $
#
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
#
@@ -49,7 +49,7 @@ testbincue_LDADD = $(LIBCDIO_LIBS)
testbincue_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \
check_iso.sh check_paranoia.sh check_opts.sh
check_iso.sh check_fuzzyiso.sh check_paranoia.sh check_opts.sh
# If we beefed this up so it checked to see if a CD-DA was loaded
# it could be an automatic test. But for now, not so.
# check_paranoia.sh

33
test/check_fuzzyiso.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/sh
#$Id: check_fuzzyiso.sh,v 1.1 2005/02/08 04:38:05 rocky Exp $
if test -z $srcdir ; then
srcdir=`pwd`
fi
check_program="../example/iso4"
if test ! -x $check_program ; then
exit 77
fi
for file in *.bin *.iso *.nrg ; do
case "$file" in
cdda.bin | cdda-mcn.nrg | svcdgs.nrg )
good_rc=1
;;
*)
good_rc=0
;;
esac
$check_program $file
if test $? -ne $good_rc ; then
exit 1
fi
done
exit 0
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***