"Fossies" - the Fresh Open Source Software Archive

Member "libcdio-2.1.0/test/check_bad_iso.sh" (31 Aug 2018, 719 Bytes) of package /linux/privat/libcdio-2.1.0.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "check_bad_iso.sh": 2.0.0_vs_2.1.0.

    1 #!/bin/sh
    2 
    3 if test -z $srcdir ; then
    4   srcdir=$(pwd)
    5 fi
    6 
    7 if test "X$top_builddir" = "X" ; then
    8   top_builddir=$(pwd)/..
    9 fi
   10 
   11 . ${top_builddir}/test/check_common_fn
   12 
   13 if test ! -x ../src/iso-info ; then
   14   exit 77
   15 fi
   16 
   17 BASE=$(basename $0 .sh)
   18 fname=bad-dir
   19 
   20 RC=0
   21 
   22 opts="--quiet ${srcdir}/../test/data/${fname}.iso"
   23 cmdname=iso-info
   24 cmd=../src/iso-info
   25 if ! "${cmd}" --quiet --no-header ${opts} 2>&1 ; then
   26     echo "$0: unexpected failure"
   27     RC=1
   28 fi
   29 
   30 opts="--quiet ${srcdir}/test/data/${fname}.iso --iso9660"
   31 if "${cmd}" --no-header ${opts} 2>&1 ; then
   32     ((RC+=1))
   33 else
   34     echo "$0: expected failure"
   35 fi
   36 
   37 exit $RC
   38 
   39 #;;; Local Variables: ***
   40 #;;; mode:shell-script ***
   41 #;;; eval: (sh-set-shell "bash") ***
   42 #;;; End: ***