Add a test of new -l option on cd-paranoia.

This commit is contained in:
rocky
2008-03-06 01:34:09 +00:00
parent b78955226e
commit fd2da5c2ad
3 changed files with 17 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
# $Id: check_paranoia.sh.in,v 1.12 2008/02/29 11:34:15 rocky Exp $
# $Id: check_paranoia.sh.in,v 1.13 2008/03/06 01:34:10 rocky Exp $
# Compare our cd-paranoia with known good results.
if test "X$srcdir" = "X" ; then
@@ -41,7 +41,7 @@ if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
exit 3
fi
# Start out with small jitter
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 5 -v -r -- "1-"
$top_builddir/src/cd-paranoia/cd-paranoia -l ./cd-paranoia.log -d $srcdir/cdda.cue -x 5 -v -r -- "1-"
if test $? -ne 0 ; then
exit 6
fi
@@ -52,6 +52,14 @@ if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
echo "** Small jitter correction problem"
exit 3
fi
tail -3 ./cd-paranoia.log > ./cd-paranoia-filtered.log
if @CMP@ ./cd-paranoia-log.right ./cd-paranoia-filtered.log ; then
echo "** --log option okay"
rm ./cd-paranoia.log ./cd-paranoia-filtered.log
else
echo "** --log option problem"
exit 4
fi
# A more massive set of failures: underrun + small jitter
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 69 -v -r -- "1-"
if test $? -ne 0 ; then