From b4a6bc22c54ba489aa057370705fe4bfee471d70 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 24 Apr 2003 02:45:04 +0000 Subject: [PATCH] Add a single NRG test. --- test/Makefile.am | 3 ++- test/check_nrg.sh | 10 +++++++++- test/videocd.right | 20 ++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 test/videocd.right diff --git a/test/Makefile.am b/test/Makefile.am index d8bdfa91..285fd1be 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.1 2003/04/22 12:09:09 rocky Exp $ +# $Id: Makefile.am,v 1.2 2003/04/24 02:45:04 rocky Exp $ # # Copyright (C) 2003 Rocky Bernstein # @@ -23,6 +23,7 @@ check_SCRIPTS = check_nrg.sh check_cue.sh check_opts.sh check_DATA = vcd_demo.right \ + videocd.right videocd.nrg \ cdda.right cdda.cue cdda.bin \ isofs-m1.right isofs-m1.cue isofs-m1.bin \ check_opts0.right check_opts1.right check_opts2.right \ diff --git a/test/check_nrg.sh b/test/check_nrg.sh index 6992b108..f4f45f7c 100755 --- a/test/check_nrg.sh +++ b/test/check_nrg.sh @@ -1,5 +1,5 @@ #!/bin/sh -#$Id: check_nrg.sh,v 1.1 2003/04/22 12:09:09 rocky Exp $ +#$Id: check_nrg.sh,v 1.2 2003/04/24 02:45:04 rocky Exp $ if test -z $srcdir ; then srcdir=`pwd` @@ -7,6 +7,14 @@ fi . ${srcdir}/check_common_fn +BASE=`basename $0 .sh` +fname=videocd + +test_cdinfo "--nrg-file ${srcdir}/${fname}.nrg" \ + ${fname}.dump ${srcdir}/${fname}.right +RC=$? +check_result $RC 'cdinfo NRG test 1' + BASE=`basename $0 .sh` nrg_file=${srcdir}/monvoisin.nrg diff --git a/test/videocd.right b/test/videocd.right new file mode 100644 index 00000000..7cdc4dda --- /dev/null +++ b/test/videocd.right @@ -0,0 +1,20 @@ +CD Info 2.0 | (c) 2003 Gerd Knorr, Heiko Eifeldt & 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 - 5) + #: MSF LSN Type + 1: 00:02:00 000000 XA + 2: 00:13:01 000826 XA + 3: 00:16:01 001051 XA + 4: 00:19:01 001276 XA + 5: 00:22:01 001501 XA +170: 00:25:01 001726 leadout +__________________________________ +try to find out what sort of CD this is +CD-ROM with CD-RTOS and ISO 9660 filesystem +ISO 9660: 676 blocks, label `SVIDEOCD ' +XA sectors +session #2 starts at track 2, LSN: 826, ISO 9660 blocks: 676 +ISO 9660: 676 blocks, label `9 P @M4H'