check_nrg.sh is now derived since we may or may not have Video CD info

displayed.
This commit is contained in:
rocky
2003-04-28 02:02:41 +00:00
parent 65e6cf33ca
commit 9c8efaab0e
2 changed files with 4 additions and 4 deletions

51
test/check_nrg.sh.in Executable file
View File

@@ -0,0 +1,51 @@
#!/bin/sh
#$Id: check_nrg.sh.in,v 1.1 2003/04/28 02:02:41 rocky Exp $
if test -n "@VCDINFO_LIB@" ; then
vcd_opt='--no-vcd'
fi
if test -z $srcdir ; then
srcdir=`pwd`
fi
. ${srcdir}/check_common_fn
BASE=`basename $0 .sh`
fname=videocd
test_cdinfo "--nrg-file ${srcdir}/${fname}.nrg $vcd_opt " \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC 'cd-info NRG test 1'
BASE=`basename $0 .sh`
nrg_file=${srcdir}/monvoisin.nrg
if test -f $nrg_file ; then
test_cdinfo "--nrg-file $nrg_file $vcd_opt " \
monvoisin.dump ${srcdir}/monvoisin.right
RC=$?
check_result $RC 'cd-info NRG test 1'
else
echo "Don't see NRG file ${nrg_file}. Test skipped."
exit $SKIP_TEST_EXITCODE
fi
nrg_file=${srcdir}/svcdgs.nrg
if test -f $nrg_file ; then
test_cdinfo "--nrg-file $nrg_file" \
svcdgs.dump ${srcdir}/svcdgs.right
RC=$?
check_result $RC 'cd-info NRG test 2'
exit $RC
else
echo "Don't see NRG file ${nrg_file}. Test skipped."
exit $SKIP_TEST_EXITCODE
fi
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***