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_cue.sh.in

102 lines
2.6 KiB
Bash
Raw Normal View History

2003-03-24 19:01:09 +00:00
#!/bin/sh
2004-05-06 11:12:10 +00:00
#$Id: check_cue.sh.in,v 1.18 2004/05/06 11:12:10 rocky Exp $
# Tests to see that BIN/CUE and BIN/TOC file iamge reading is correct
# (via cd-info).
if test -n "@VCDINFO_LIBS@" ; then
vcd_opt='--no-vcd'
fi
2004-05-06 11:12:10 +00:00
if test -z "$srcdir" ; then
2003-03-24 19:01:09 +00:00
srcdir=`pwd`
fi
. ${srcdir}/check_common_fn
if test ! -x ../src/cd-info ; then
exit 77
fi
2003-03-24 19:01:09 +00:00
BASE=`basename $0 .sh`
fname=cdda
testnum=CD-DA
test_cdinfo "--quiet --cue-file ${srcdir}/${fname}.cue --no-cddb" \
${fname}.dump ${srcdir}/${fname}.right
2003-03-24 19:01:09 +00:00
RC=$?
2003-09-14 04:56:46 +00:00
check_result $RC "cd-info CUE test $testnum"
2003-03-24 19:01:09 +00:00
test_cdinfo "--quiet --bin-file ${srcdir}/${fname}.bin --no-cddb" \
2003-05-18 02:31:59 +00:00
${fname}.dump ${srcdir}/${fname}.right
RC=$?
2003-09-14 04:56:46 +00:00
check_result $RC "cd-info BIN test $testnum"
2003-05-18 02:31:59 +00:00
test_cdinfo "--quiet --toc-file ${srcdir}/${fname}.toc --no-cddb" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cd-info TOC test $testnum"
fname=isofs-m1
testnum='ISO 9660 mode1 CUE'
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "-q --cue-file ${srcdir}/${fname}.cue --iso9660" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
2003-09-14 04:56:46 +00:00
check_result $RC "cd-info CUE test $testnum"
else
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
fi
testnum='ISO 9660 mode1 TOC'
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "-q --toc-file ${srcdir}/${fname}.toc --iso9660" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cd-info TOC test $testnum"
else
echo "Don't see TOC file ${srcdir}/${fname}.bin. Test $testnum skipped."
fi
fname=vcd_demo
if test -z "@VCDINFO_LIBS@" ; then
right=${srcdir}/${fname}.right
else
right=${srcdir}/${fname}_vcdinfo.right
fi
testnum='Video CD'
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "-q -c ${srcdir}/vcd_demo.cue --iso9660" \
${fname}.dump $right
RC=$?
2003-09-14 04:56:46 +00:00
check_result $RC "cd-info CUE test $testnum"
if test -f ${srcdir}/${fname}.toc ; then
test_cdinfo "-q -t ${srcdir}/vcd_demo.toc --iso9660" \
${fname}.dump $right
RC=$?
check_result $RC "cd-info TOC test $testnum"
else
echo "Don't see TOC file ${srcdir}/${fname}.toc. Test $testnum skipped."
fi
else
echo "Don't see CUE file ${srcdir}/${fname}.cue. Test $testnum skipped."
fi
fname=svcd_ogt_test_ntsc
testnum='Super Video CD'
if test -f ${srcdir}/${fname}.bin ; then
test_cdinfo "-q --cue-file ${srcdir}/${fname}.cue $vcd_opt --iso9660" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
2003-09-14 04:56:46 +00:00
check_result $RC "cd-info CUE test $testnum"
else
echo "Don't see CUE file ${srcdir}/${fname}.bin. Test $testnum skipped."
fi
2003-03-24 19:01:09 +00:00
exit $RC
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***