34 lines
695 B
Bash
Executable File
34 lines
695 B
Bash
Executable File
#!/bin/sh
|
|
#$Id: check_opts.sh.in,v 1.2 2003/04/19 19:12:06 rocky Exp $
|
|
# Check cdinfo options
|
|
if test -n "@CDDB_LIB@" ; then
|
|
cddb_opt='--no-cddb'
|
|
fi
|
|
|
|
if test -z "$srcdir" ; then
|
|
srcdir=`pwd`
|
|
fi
|
|
|
|
. ${srcdir}/check_common_fn
|
|
|
|
BASE=`basename $0 .sh`
|
|
|
|
fname=fsf-tompox
|
|
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 $cddb_opt $opt" \
|
|
${testname}.dump ${srcdir}/${testname}.right
|
|
RC=$?
|
|
check_result $RC "cdinfo option test $i"
|
|
i=`expr $i + 1`
|
|
done
|
|
|
|
exit $RC
|
|
|
|
#;;; Local Variables: ***
|
|
#;;; mode:shell-script ***
|
|
#;;; eval: (sh-set-shell "bash") ***
|
|
#;;; End: ***
|