Break most of the larger regression tests into a separate package.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: Makefile.am,v 1.6 2003/04/14 10:03:27 rocky Exp $
|
||||
# $Id: Makefile.am,v 1.7 2003/04/19 19:12:06 rocky Exp $
|
||||
#
|
||||
# Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||
#
|
||||
@@ -22,9 +22,8 @@
|
||||
#
|
||||
check_SCRIPTS = check_nrg.sh check_cue.sh check_opts.sh
|
||||
|
||||
check_DATA = monvoisin.right svcd_ogt_test_ntsc.right vcd_demo.right \
|
||||
fsf-tompox.right fsf-tompox.cue fsf-tompox.bin monvoisin.nrg \
|
||||
fsf.right fsf.bin fsf.cue \
|
||||
check_DATA = vcd_demo.right \
|
||||
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 \
|
||||
check_opts6.right check_opts7.right
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# $Id: check_common_fn,v 1.1 2003/03/24 19:01:10 rocky Exp $
|
||||
# $Id: check_common_fn,v 1.2 2003/04/19 19:12:06 rocky Exp $
|
||||
SKIP_TEST_EXITCODE=77
|
||||
|
||||
have_cmp() {
|
||||
if cmp /dev/null /dev/null > /dev/null 2>&1; then
|
||||
@@ -20,7 +21,7 @@ check_result() {
|
||||
shift
|
||||
msg=$*
|
||||
if test $RC -ne 0 ; then
|
||||
if test $RC -ne 77 ; then
|
||||
if test $RC -ne $SKIP_TEST_EXITCODE ; then
|
||||
echo "$0: $msg failed."
|
||||
exit $RC
|
||||
else
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
#$Id: check_cue.sh,v 1.4 2003/04/14 08:51:14 rocky Exp $
|
||||
#$Id: check_cue.sh,v 1.5 2003/04/19 19:12:06 rocky Exp $
|
||||
|
||||
if test -z $srcdir ; then
|
||||
srcdir=`pwd`
|
||||
@@ -9,32 +9,44 @@ fi
|
||||
|
||||
BASE=`basename $0 .sh`
|
||||
|
||||
fname=fsf
|
||||
test_cdinfo "--cue-file ${srcdir}/${fname}.cue --no-cddb" \
|
||||
${fname}.dump ${srcdir}/${fname}.right
|
||||
RC=$?
|
||||
check_result $RC 'cdinfo CUE test 1'
|
||||
|
||||
fname=fsf-tompox
|
||||
testnum=1
|
||||
test_cdinfo "--cue-file ${srcdir}/${fname}.cue" \
|
||||
${fname}.dump ${srcdir}/${fname}.right
|
||||
RC=$?
|
||||
check_result $RC 'cdinfo CUE test 2'
|
||||
|
||||
fname=svcd_ogt_test_ntsc
|
||||
if test -f ${srcdir}/${fname}.cue ; then
|
||||
test_cdinfo "--cue-file ${srcdir}/${fname}.cue" \
|
||||
${fname}.dump ${srcdir}/${fname}.right
|
||||
RC=$?
|
||||
check_result $RC 'cdinfo CUE test 3'
|
||||
fi
|
||||
check_result $RC "cdinfo CUE test $testnum"
|
||||
|
||||
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 4'
|
||||
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
|
||||
|
||||
exit $RC
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
#$Id: check_nrg.sh,v 1.1 2003/03/24 19:01:10 rocky Exp $
|
||||
#$Id: check_nrg.sh,v 1.2 2003/04/19 19:12:06 rocky Exp $
|
||||
|
||||
if test -z $srcdir ; then
|
||||
srcdir=`pwd`
|
||||
@@ -8,13 +8,19 @@ fi
|
||||
. ${srcdir}/check_common_fn
|
||||
|
||||
BASE=`basename $0 .sh`
|
||||
nrg_file=${srcdir}/monvoisin.nrg
|
||||
|
||||
test_cdinfo "--nrg-file ${srcdir}/monvoisin.nrg" \
|
||||
monvoisin.dump ${srcdir}/monvoisin.right
|
||||
RC=$?
|
||||
check_result $RC 'cdinfo NRG test 1'
|
||||
|
||||
exit $RC
|
||||
if test -f $nrg_file ; then
|
||||
test_cdinfo "--nrg-file $nrg_file" \
|
||||
monvoisin.dump ${srcdir}/monvoisin.right
|
||||
RC=$?
|
||||
check_result $RC 'cdinfo NRG test 1'
|
||||
|
||||
exit $RC
|
||||
else
|
||||
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
||||
exit $SKIP_TEST_EXITCODE
|
||||
fi
|
||||
|
||||
#;;; Local Variables: ***
|
||||
#;;; mode:shell-script ***
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
#$Id: check_opts.sh.in,v 1.1 2003/04/14 10:03:27 rocky Exp $
|
||||
#$Id: check_opts.sh.in,v 1.2 2003/04/19 19:12:06 rocky Exp $
|
||||
# Check cdinfo options
|
||||
if test -n "@CDDB_LIB@" ; then
|
||||
cddb_opt='--no-cddb'
|
||||
@@ -13,7 +13,7 @@ fi
|
||||
|
||||
BASE=`basename $0 .sh`
|
||||
|
||||
fname=fsf
|
||||
fname=fsf-tompox
|
||||
i=0
|
||||
for opt in '-T' '--no-tracks' '-A' '--no-analyze' '-I' '-no-ioctl' \
|
||||
'-q' '--quiet' ; do
|
||||
|
||||
@@ -4,4 +4,5 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
try to find out what sort of CD this is
|
||||
Audio CD, CDDB disc ID is 02006c01
|
||||
CD-ROM with ISO 9660 filesystem and joliet extension level 3
|
||||
ISO 9660: 1744 blocks, label `Free Software Song '
|
||||
|
||||
@@ -4,4 +4,5 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
try to find out what sort of CD this is
|
||||
Audio CD, CDDB disc ID is 02006c01
|
||||
CD-ROM with ISO 9660 filesystem and joliet extension level 3
|
||||
ISO 9660: 1744 blocks, label `Free Software Song '
|
||||
|
||||
@@ -5,5 +5,5 @@ PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
170: 01:50:20 008120 leadout
|
||||
1: 00:02:00 000000 data
|
||||
170: 00:25:34 001759 leadout
|
||||
|
||||
@@ -5,5 +5,5 @@ PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
170: 01:50:20 008120 leadout
|
||||
1: 00:02:00 000000 data
|
||||
170: 00:25:34 001759 leadout
|
||||
|
||||
@@ -5,8 +5,9 @@ PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
170: 01:50:20 008120 leadout
|
||||
1: 00:02:00 000000 data
|
||||
170: 00:25:34 001759 leadout
|
||||
__________________________________
|
||||
try to find out what sort of CD this is
|
||||
Audio CD, CDDB disc ID is 02006c01
|
||||
CD-ROM with ISO 9660 filesystem and joliet extension level 3
|
||||
ISO 9660: 1744 blocks, label `Free Software Song '
|
||||
|
||||
@@ -5,8 +5,9 @@ PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
170: 01:50:20 008120 leadout
|
||||
1: 00:02:00 000000 data
|
||||
170: 00:25:34 001759 leadout
|
||||
__________________________________
|
||||
try to find out what sort of CD this is
|
||||
Audio CD, CDDB disc ID is 02006c01
|
||||
CD-ROM with ISO 9660 filesystem and joliet extension level 3
|
||||
ISO 9660: 1744 blocks, label `Free Software Song '
|
||||
|
||||
@@ -5,8 +5,9 @@ PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
170: 01:50:20 008120 leadout
|
||||
1: 00:02:00 000000 data
|
||||
170: 00:25:34 001759 leadout
|
||||
__________________________________
|
||||
try to find out what sort of CD this is
|
||||
Audio CD, CDDB disc ID is 02006c01
|
||||
CD-ROM with ISO 9660 filesystem and joliet extension level 3
|
||||
ISO 9660: 1744 blocks, label `Free Software Song '
|
||||
|
||||
@@ -5,8 +5,9 @@ PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
170: 01:50:20 008120 leadout
|
||||
1: 00:02:00 000000 data
|
||||
170: 00:25:34 001759 leadout
|
||||
__________________________________
|
||||
try to find out what sort of CD this is
|
||||
Audio CD, CDDB disc ID is 02006c01
|
||||
CD-ROM with ISO 9660 filesystem and joliet extension level 3
|
||||
ISO 9660: 1744 blocks, label `Free Software Song '
|
||||
|
||||
Reference in New Issue
Block a user