Add regression test to check cdinfo options processing.
This commit is contained in:
30
tests/check_opts.sh
Executable file
30
tests/check_opts.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
#$Id: check_opts.sh,v 1.1 2003/04/14 08:51:14 rocky Exp $
|
||||
# Check cdinfo options
|
||||
|
||||
if test -z $srcdir ; then
|
||||
srcdir=`pwd`
|
||||
fi
|
||||
|
||||
. ${srcdir}/check_common_fn
|
||||
|
||||
BASE=`basename $0 .sh`
|
||||
|
||||
fname=fsf
|
||||
opts=('-T' '--no-tracks' '-A', '--no-analyze' '-I' '-no-ioctl'
|
||||
'-q' '--quiet')
|
||||
|
||||
for (( i=0 ; i<${#opts[@]} ; i++ )) ; do
|
||||
testname=${BASE}$i
|
||||
test_cdinfo "--cue-file ${srcdir}/${fname}.cue --no-cddb ${opts[$i]}" \
|
||||
${testname}.dump ${srcdir}/${testname}.right
|
||||
RC=$?
|
||||
check_result $RC "cdinfo option test $i"
|
||||
done
|
||||
|
||||
exit $RC
|
||||
|
||||
#;;; Local Variables: ***
|
||||
#;;; mode:shell-script ***
|
||||
#;;; eval: (sh-set-shell "bash") ***
|
||||
#;;; End: ***
|
||||
Reference in New Issue
Block a user