This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
libcdio-osx/test/check_paranoia.sh.in
pjcreath 10166d3d88 Changed the underrun+jitter test to use small jitter, since medium jitter
is now broken.  The test should be returned to its former rigor (if not
better) once we squash the medium jitter bug.
2005-10-17 15:10:55 +00:00

80 lines
2.2 KiB
Bash

#!/bin/sh
# $Id: check_paranoia.sh.in,v 1.11 2005/10/17 15:10:55 pjcreath Exp $
# Compare our cd-paranoia with an installed cdparanoia
if test "X$srcdir" = "X" ; then
srcdir=`pwd`
fi
if test "X$top_builddir" = "X" ; then
top_builddir=`pwd`/..
fi
if test "X$top_srcdir" = "X" ; then
top_srcdir=`pwd`/..
fi
if test "@CMP@" != no -a "@BUILD_CD_PARANOIA_TRUE@"X = X ; then
$top_srcdir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -v -r -- "1-"
if test $? -ne 0 ; then
exit 6
fi
dd bs=16 skip=17 if=cdda.raw of=cdda-1.raw
dd bs=16 if=cdda.bin of=cdda-2.raw count=44377
if @CMP@ cdda-1.raw cdda-2.raw ; then
echo "** Raw cdda.bin extraction okay"
else
echo "** Raw cdda.bin extraction differ"
exit 3
fi
mv cdda.raw cdda-good.raw
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 64 -v -r -- "1-"
mv cdda.raw cdda-underrun.raw
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -r -- "1-"
if test $? -ne 0 ; then
exit 6
fi
if @CMP@ cdda-underrun.raw cdda-good.raw ; then
echo "** Under-run correction okay"
else
echo "** Under-run correction problem"
exit 3
fi
# Start out with small jitter
$top_builddir/src/cd-paranoia/cd-paranoia -d $srcdir/cdda.cue -x 5 -v -r -- "1-"
if test $? -ne 0 ; then
exit 6
fi
mv cdda.raw cdda-jitter.raw
if @CMP@ cdda-jitter.raw cdda-good.raw ; then
echo "** Small jitter correction okay"
else
echo "** Small jitter correction problem"
exit 3
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
exit 6
fi
mv cdda.raw cdda-jitter.raw
if @CMP@ cdda-jitter.raw cdda-good.raw ; then
echo "** under-run + jitter correction okay"
else
echo "** under-run + jitter correction problem"
exit 3
fi
### FIXME: medium jitter is known to fail. Investigate.
### FIXME: large jitter is known to fail. Investigate.
exit 0
else
echo "Don't see libcdio cd-paranoia program. Test skipped."
exit 77
fi
fi
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***