This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
libcdio-osx/test/check_nrg.sh.in

69 lines
1.5 KiB
Bash
Raw Normal View History

2003-03-24 19:01:09 +00:00
#!/bin/sh
#$Id: check_nrg.sh.in,v 1.10 2004/05/31 13:32:19 rocky Exp $
if test -n "@VCDINFO_LIBS@" ; then
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
if test ! -x ../src/cd-info ; then
exit 77
fi
2003-04-24 02:45:04 +00:00
BASE=`basename $0 .sh`
test_name=videocd
2003-04-24 02:45:04 +00:00
test_cdinfo "--quiet --nrg-file ${srcdir}/${test_name}.nrg $vcd_opt --iso9660 " \
${test_name}.dump ${srcdir}/${test_name}.right
2003-04-24 02:45:04 +00:00
RC=$?
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`
nrg_file=${srcdir}/monvoisin.nrg
2003-03-24 19:01:09 +00:00
if test -f $nrg_file ; then
test_cdinfo "-q --nrg-file $nrg_file $vcd_opt --iso9660 " \
monvoisin.dump ${srcdir}/monvoisin.right
RC=$?
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."
exit 0
2003-04-22 01:32:39 +00:00
fi
test_name='svcdgs'
nrg_file=${srcdir}/${test_name}.nrg
2003-04-22 01:32:39 +00:00
if test -f $nrg_file ; then
test_cdinfo "-q --nrg-file $nrg_file $vcd_opt --iso9660" \
${test_name}.dump ${srcdir}/${test_name}.right
2003-04-22 01:32:39 +00:00
RC=$?
check_result $RC "cd-info NRG $test_name"
else
echo "Don't see NRG file ${nrg_file}. Test skipped."
exit $SKIP_TEST_EXITCODE
fi
test_name='cdda-mcn'
nrg_file=${srcdir}/${test_name}.nrg
if test -f $nrg_file ; then
test_cdinfo "-q --nrg-file $nrg_file --no-cddb" \
${test_name}.dump ${srcdir}/${test_name}.right
RC=$?
check_result $RC "cd-info NRG $test_name"
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: ***