an error if it can't be read cd-info: give more info by default - source location and driver. test/*: as a result of cd-info changes need now to pass option --quiet.
34 lines
684 B
Bash
Executable File
34 lines
684 B
Bash
Executable File
#!/bin/sh
|
|
#$Id: check_opts.sh,v 1.5 2003/10/06 04:04:05 rocky Exp $
|
|
# Check cd-info options
|
|
if test -z "$srcdir" ; then
|
|
srcdir=`pwd`
|
|
fi
|
|
|
|
. ${srcdir}/check_common_fn
|
|
|
|
if test ! -x ../src/cd-info ; then
|
|
exit 77
|
|
fi
|
|
|
|
BASE=`basename $0 .sh`
|
|
|
|
fname=isofs-m1
|
|
i=0
|
|
for opt in '-T' '--no-tracks' '-A' '--no-analyze' '-I' '--no-ioctl' \
|
|
'-q' '--quiet' ; do
|
|
testname=${BASE}$i
|
|
test_cdinfo "--cue-file ${srcdir}/${fname}.cue $opt --quiet" \
|
|
${testname}.dump ${srcdir}/${testname}.right
|
|
RC=$?
|
|
check_result $RC "cd-info option test $opt"
|
|
i=`expr $i + 1`
|
|
done
|
|
|
|
exit $RC
|
|
|
|
#;;; Local Variables: ***
|
|
#;;; mode:shell-script ***
|
|
#;;; eval: (sh-set-shell "bash") ***
|
|
#;;; End: ***
|