2003-03-24 19:01:09 +00:00
|
|
|
#!/bin/sh
|
2003-09-30 03:26:11 +00:00
|
|
|
#$Id: check_nrg.sh.in,v 1.8 2003/09/30 03:26:11 rocky Exp $
|
2003-04-26 14:24:44 +00:00
|
|
|
|
2003-09-30 03:26:11 +00:00
|
|
|
if test -n "@VCDINFO_LIBS@" ; then
|
2003-04-26 14:24:44 +00:00
|
|
|
vcd_opt='--no-vcd'
|
|
|
|
|
fi
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
if test -z $srcdir ; then
|
|
|
|
|
srcdir=`pwd`
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
. ${srcdir}/check_common_fn
|
|
|
|
|
|
2003-09-20 00:28:31 +00:00
|
|
|
if test ! -x ../src/cd-info ; then
|
2003-08-29 11:10:01 +00:00
|
|
|
exit 77
|
|
|
|
|
fi
|
|
|
|
|
|
2003-04-24 02:45:04 +00:00
|
|
|
BASE=`basename $0 .sh`
|
|
|
|
|
fname=videocd
|
|
|
|
|
|
2003-09-01 02:02:59 +00:00
|
|
|
test_cdinfo "--nrg-file ${srcdir}/${fname}.nrg $vcd_opt --iso9660 " \
|
2003-04-24 02:45:04 +00:00
|
|
|
${fname}.dump ${srcdir}/${fname}.right
|
|
|
|
|
RC=$?
|
2003-04-26 14:24:44 +00:00
|
|
|
check_result $RC 'cd-info NRG test 1'
|
2003-04-24 02:45:04 +00:00
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
BASE=`basename $0 .sh`
|
2003-04-19 19:12:06 +00:00
|
|
|
nrg_file=${srcdir}/monvoisin.nrg
|
2003-03-24 19:01:09 +00:00
|
|
|
|
2003-04-19 19:12:06 +00:00
|
|
|
if test -f $nrg_file ; then
|
2003-09-01 02:02:59 +00:00
|
|
|
test_cdinfo "--nrg-file $nrg_file $vcd_opt --iso9660 " \
|
2003-04-19 19:12:06 +00:00
|
|
|
monvoisin.dump ${srcdir}/monvoisin.right
|
|
|
|
|
RC=$?
|
2003-08-31 06:59:23 +00:00
|
|
|
check_result $RC 'cd-info NRG test 2'
|
2003-04-22 01:32:39 +00:00
|
|
|
else
|
|
|
|
|
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
2003-05-16 21:11:18 +00:00
|
|
|
exit 0
|
2003-04-22 01:32:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
nrg_file=${srcdir}/svcdgs.nrg
|
|
|
|
|
if test -f $nrg_file ; then
|
2003-09-01 02:02:59 +00:00
|
|
|
test_cdinfo "--nrg-file $nrg_file $vcd_opt --iso9660" \
|
2003-04-22 01:32:39 +00:00
|
|
|
svcdgs.dump ${srcdir}/svcdgs.right
|
|
|
|
|
RC=$?
|
2003-08-31 06:59:23 +00:00
|
|
|
check_result $RC 'cd-info NRG test 3'
|
2003-04-19 19:12:06 +00:00
|
|
|
|
|
|
|
|
exit $RC
|
|
|
|
|
else
|
|
|
|
|
echo "Don't see NRG file ${nrg_file}. Test skipped."
|
|
|
|
|
exit $SKIP_TEST_EXITCODE
|
|
|
|
|
fi
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
#;;; Local Variables: ***
|
|
|
|
|
#;;; mode:shell-script ***
|
|
|
|
|
#;;; eval: (sh-set-shell "bash") ***
|
|
|
|
|
#;;; End: ***
|