"Fossies" - the Fresh Open Source Software Archive

Member "libcdio-2.1.0/test/check_udf.sh.in" (12 Aug 2018, 1465 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. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #   Copyright (C) 2012 Rocky Bernstein <rocky@gnu.org>
    3 #
    4 #   This program is free software: you can redistribute it and/or modify
    5 #   it under the terms of the GNU General Public License as published by
    6 #   the Free Software Foundation, either version 3 of the License, or
    7 #   (at your option) any later version.
    8 #
    9 #   This program is distributed in the hope that it will be useful,
   10 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 #   GNU General Public License for more details.
   13 #
   14 #   You should have received a copy of the GNU General Public License
   15 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
   16 #
   17 # Tests to see that CD reading is correct (via cd-read). 
   18 
   19 if test "X$abs_top_srcdir" = "X" ; then
   20   abs_top_srcdir=@abs_top_srcdir@
   21 fi
   22 
   23 if test "X$top_builddir" = "X" ; then
   24   top_builddir=@abs_top_builddir@
   25 fi
   26 
   27 if test ! -x $top_builddir/example/extract ; then
   28   exit 77
   29 fi
   30 
   31 . ${top_builddir}/test/check_common_fn
   32 
   33 extract_dir=/tmp/udf-$$
   34 if test -d $extract_dir ; then
   35     rm -fr $extract_dir
   36 fi
   37 
   38 udf_iso=$abs_top_srcdir/test/data/test-udf1.iso
   39 extract_program=$top_builddir/example/extract
   40 cmd="$extract_program $udf_iso $extract_dir"
   41 $cmd
   42 RC=$?
   43 check_result $RC "$cmd"
   44 
   45 if test $RC -eq 0 ; then
   46     rm -fr $extract_dir
   47 fi
   48 
   49 exit $RC
   50 
   51 #;;; Local Variables: ***
   52 #;;; mode:shell-script ***
   53 #;;; eval: (sh-set-shell "bash") ***
   54 #;;; End: ***