#!/bin/sh
#$Id: check_iso.sh.in,v 1.11 2006/06/03 00:04:54 rocky Exp $
if test -z $srcdir ; then
srcdir=`pwd`
fi
. ${srcdir}/check_common_fn
if test ! -x ../src/iso-info ; then
exit 77
BASE=`basename $0 .sh`
fname=copying
opts="--quiet ${srcdir}/${fname}.iso --iso9660 "
test_iso_info "$opts" ${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC 'iso-info basic test' "$ISO_INFO $opts"
opts="--image ${srcdir}/${fname}.iso --extract $fname "
test_iso_read "$opts" ${fname} ${srcdir}/copying.gpl
check_result $RC 'iso-read basic test' "$ISO_READ $opts"
if test -n "@HAVE_ROCK@"; then
fname=copying-rr
check_result $RC 'iso-info Rock Ridge test' "$ISO_INFO $opts"
if test -n "@HAVE_JOLIET@" ; then
fname=joliet
test_iso_info "$opts" ${fname}-nojoliet.dump ${srcdir}/${fname}.right
check_result $RC 'iso-info Joliet test' "$cmdline"
opts="--quiet ${srcdir}/${fname}.iso --iso9660 --no-joliet "
test_iso_info "$opts" ${fname}-nojoliet.dump \
${srcdir}/${fname}-nojoliet.right
check_result $RC 'iso-info --no-joliet test' "$cmdline"
exit $RC
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***