"Fossies" - the Fresh Open Source Software Archive

Member "libcdio-2.1.0/test/check_fuzzyiso.sh" (20 Jan 2019, 1025 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_fuzzyiso.sh": 2.0.0_vs_2.1.0.

    1 #!/bin/sh
    2 #$Id: check_fuzzyiso.sh,v 1.6 2008/03/20 03:45:43 edsdead Exp $
    3 
    4 if test "X$srcdir" = "X" ; then
    5   srcdir=`pwd`
    6 fi
    7 
    8 if test "X$top_srcdir" = "X" ; then
    9   top_srcdir=`pwd`/..
   10 fi
   11 
   12 if test "X$top_builddir" = "X" ; then
   13   top_builddir=`pwd`/..
   14 fi
   15 
   16 check_program="$top_builddir/example/isofuzzy"
   17 
   18 if test ! -x $check_program ; then
   19   exit 77
   20 fi
   21 
   22 cd $srcdir; src_dir=`pwd`
   23 for file in $src_dir/data/*.bin $src_dir/data/*.iso $src_dir/data/*.nrg ; do 
   24   case "$file" in
   25   $src_dir/data/p1.nrg | $src_dir/data/p1.bin | $src_dir/data/cdda.bin | $src_dir/data/cdda_4_5.bin | $src_dir/data/cdtextfile.bin | $src_dir/data/cdda-mcn.nrg | $src_dir/data/svcdgs.nrg | $src_dir/data/cdtext.bin | $src_dir/data/udf102.iso )
   26     good_rc=1
   27     ;;
   28   *) 
   29     good_rc=0
   30     ;;
   31   esac
   32   $check_program $file
   33   if test $? -ne $good_rc ; then 
   34     echo "$0: failed running:"
   35     echo "  $check_program $file"
   36     exit 1
   37   fi
   38 done
   39 exit 0
   40 
   41 #;;; Local Variables: ***
   42 #;;; mode:shell-script ***
   43 #;;; eval: (sh-set-shell "bash") ***
   44 #;;; End: ***