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_iso.sh.in
rocky 6869e97bb2 configure.ac: Add --disable-joliet and disable joliet if iconv is not around
iso9660_fs.c: Setting string length on of UCBE wrong?
test/*: add joliet regression test.
2004-10-28 11:13:40 +00:00

47 lines
1.2 KiB
Bash

#!/bin/sh
#$Id: check_iso.sh.in,v 1.4 2004/10/28 11:13:40 rocky Exp $
if test -z $srcdir ; then
srcdir=`pwd`
fi
. ${srcdir}/check_common_fn
if test ! -x ../src/iso-info ; then
exit 77
fi
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
RC=$?
check_result $RC 'iso-read test 1' "iso-read $opts"
if test -n "@HAVE_JOLIET@" ; then
BASE=`basename $0 .sh`
fname=joliet
opts="--quiet ${srcdir}/${fname}.iso --iso9660 "
test_iso_info "$opts" ${fname}-nojoliet.dump ${srcdir}/${fname}.right
RC=$?
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
RC=$?
check_result $RC 'iso-info --no-joliet test' "$cmdline"
fi
exit $RC
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***