Start another cd-paranoia test. This one uses image reading so it

doesn't require a CD-DA loaded.
This commit is contained in:
rocky
2005-01-15 10:17:17 +00:00
parent 9137470a8e
commit a9832ae495
2 changed files with 16 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.40 2005/01/14 21:40:33 rocky Exp $ # $Id: Makefile.am,v 1.41 2005/01/15 10:17:17 rocky Exp $
# #
# Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com> # Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
# #
@@ -49,7 +49,7 @@ testbincue_LDADD = $(LIBCDIO_LIBS)
testbincue_CFLAGS = -DTEST_DIR=\"$(srcdir)\" testbincue_CFLAGS = -DTEST_DIR=\"$(srcdir)\"
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \ check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \
check_iso.sh check_opts.sh check_iso.sh check_paranoia.sh check_opts.sh
# If we beefed this up so it checked to see if a CD-DA was loaded # 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. # it could be an automatic test. But for now, not so.
# check_paranoia.sh # check_paranoia.sh

View File

@@ -1,29 +1,23 @@
#!/bin/sh #!/bin/sh
# $Id: check_paranoia.sh.in,v 1.1 2004/12/19 00:02:09 rocky Exp $ # $Id: check_paranoia.sh.in,v 1.2 2005/01/15 10:17:17 rocky Exp $
# Compare our cd-paranoia with an installed cdparanoia # Compare our cd-paranoia with an installed cdparanoia
if test "@OLD_CDPARANOIA@" != no -a -x @OLD_CDPARANOIA@ ; then if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
if test "@CMP@" != no -a -x @OLD_CDPARANOIA@ ; then ../src/cd-paranoia/cd-paranoia -d ./cdda.cue -v -r -- "1-"
for opt in '' '-r' '-p' '-f' '-a' ; do dd bs=16 skip=17 if=./cdda.raw of=./cdda-1.raw
frames='"1[:130]-1[:134]"' dd bs=16 if=./cdda.bin of=cdda-2.raw count=44377
../src/cd-paranoia/cd-paranoia $frames cdda-try.wav if @CMP@ ./cdda-1.raw ./cdda-2.raw ; then
@OLD_CDPARANOIA@ $frames cdda-orig.wav echo "** Raw cdda.bin extraction okay"
if @CMP@ cdda-try.wav cdda-orig.wav ; then
echo "** New and old paranoia output are identical using option '$opt'"
else
echo "** New and old paranoia output differ using option $opt"
exit 3
fi
done
exit 0
else else
echo "Don't see libcdio cd-paranoia program. Test skipped." echo "** Raw cdda.bin extraction differ"
exit 77 exit 3
fi fi
exit 0
else else
echo "Don't see non-libcdio cdparanoia program. Test skipped." echo "Don't see libcdio cd-paranoia program. Test skipped."
exit 77 exit 77
fi fi
fi
#;;; Local Variables: *** #;;; Local Variables: ***
#;;; mode:shell-script *** #;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") *** #;;; eval: (sh-set-shell "bash") ***