Add small cdda test.

cdio.c: cdio_open was opening image drivers.
This commit is contained in:
rocky
2003-04-20 15:34:31 +00:00
parent b0d26dcda4
commit 1e935d3bf1
8 changed files with 37 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
# $Id: Makefile.am,v 1.7 2003/04/19 19:12:06 rocky Exp $
# $Id: Makefile.am,v 1.8 2003/04/20 15:34:31 rocky Exp $
#
# Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
#
@@ -23,6 +23,7 @@
check_SCRIPTS = check_nrg.sh check_cue.sh check_opts.sh
check_DATA = vcd_demo.right \
cdda.right cdda.cue cdda.bin \
fsf-tompox.right fsf-tompox.cue fsf-tompox.bin \
check_opts0.right check_opts1.right check_opts2.right \
check_opts3.right check_opts4.right check_opts5.right \

BIN
tests/cdda.bin Normal file

Binary file not shown.

3
tests/cdda.cue Normal file
View File

@@ -0,0 +1,3 @@
FILE "BOING.BIN" BINARY
TRACK 01 AUDIO
INDEX 01 00:00:00

12
tests/cdda.right Normal file
View File

@@ -0,0 +1,12 @@
CD Info 2.0 | (c) 2003 Gerd Knorr, Heiko Ei<45>feldt & R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
__________________________________
CD-ROM Track List (1 - 1)
#: MSF LSN Type
1: 00:02:00 000000 audio
170: 00:06:02 000302 leadout
__________________________________
try to find out what sort of CD this is
Audio CD, CDDB disc ID is 02000401

View File

@@ -1,5 +1,8 @@
#!/bin/sh
#$Id: check_cue.sh,v 1.5 2003/04/19 19:12:06 rocky Exp $
#$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
if test -z $srcdir ; then
srcdir=`pwd`
@@ -9,9 +12,9 @@ fi
BASE=`basename $0 .sh`
fname=fsf-tompox
testnum=1
test_cdinfo "--cue-file ${srcdir}/${fname}.cue" \
fname=cdda
testnum=CD-DA
test_cdinfo "--cue-file ${srcdir}/${fname}.cue $cddb_opt" \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC "cdinfo CUE test $testnum"