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_opts.sh
rocky 8b1d6fce22 Invalid substituiton variable.
Allow cd-info tests to be skipped.
2003-08-29 11:10:01 +00:00

34 lines
675 B
Bash
Executable File

#!/bin/sh
#$Id: check_opts.sh,v 1.3 2003/08/29 11:10:01 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" \
${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: ***