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/tests/check_cue.sh

61 lines
1.4 KiB
Bash
Raw Normal View History

2003-03-24 19:01:09 +00:00
#!/bin/sh
#$Id: check_cue.sh,v 1.6 2003/04/20 15:34:31 rocky Exp $
if test -n "-lcddb" ; then
cddb_opt='--no-cddb'
fi
2003-03-24 19:01:09 +00:00
if test -z $srcdir ; then
srcdir=`pwd`
fi
. ${srcdir}/check_common_fn
BASE=`basename $0 .sh`
fname=cdda
testnum=CD-DA
test_cdinfo "--cue-file ${srcdir}/${fname}.cue $cddb_opt" \
${fname}.dump ${srcdir}/${fname}.right
2003-03-24 19:01:09 +00:00
RC=$?
check_result $RC "cdinfo CUE test $testnum"
2003-03-24 19:01:09 +00:00
fname=vcd_demo
testnum=2
if test -f ${srcdir}/${fname}.cue ; then
test_cdinfo "-c ${srcdir}/vcd_demo.cue" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cdinfo CUE test $testnum"
else
echo "Don't see CUE file ${srcdir}/${fname}.cue. Test $testum skipped."
fi
fname=svcd_ogt_test_ntsc
testnum=3
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "--cue-file ${srcdir}/${fname}.cue" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cdinfo CUE test $testnum"
else
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
fi
fname=fsf
testnum=4
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "--cue-file ${srcdir}/${fname}.cue --no-cddb" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cdinfo CUE test $testnum"
else
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testum skipped."
fi
2003-03-24 19:01:09 +00:00
exit $RC
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***