Add test of iso-info program (which means, of course, another test of

libiso9660).
This commit is contained in:
rocky
2004-02-29 04:41:57 +00:00
parent f93bfeea62
commit c57db82a2c
5 changed files with 46 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ Makefile
Makefile.in
check_cue.sh
check_common_fn
check_iso.sh
check_nrg.sh
check_sizeof
testassert

View File

@@ -1,6 +1,6 @@
# $Id: Makefile.am,v 1.15 2003/10/03 01:10:50 rocky Exp $
# $Id: Makefile.am,v 1.16 2004/02/29 04:41:57 rocky Exp $
#
# Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
# Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -34,7 +34,8 @@ testischar_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS)
testiso9660_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS)
check_sizeof_LDADD = $(LIBISO9660_LIBS) $(LIBCDIO_LIBS)
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh check_opts.sh
check_SCRIPTS = check_nrg.sh check_cue.sh check_cd_read.sh \
check_iso.sh check_opts.sh
check_PROGRAMS = $(hack)
@@ -48,7 +49,7 @@ check_DATA = vcd_demo.right \
isofs-m1-read.right cdda-read.right
EXTRA_DIST = $(check_SCRIPTS) $(check_DATA) \
check_common_fn check_cue.sh.in check_nrg.sh.in
check_common_fn check_cue.sh.in check_nrg.sh.in check_iso.sh.in
TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
XFAIL_TESTS = testassert

27
test/check_iso.sh.in Normal file
View File

@@ -0,0 +1,27 @@
#!/bin/sh
#$Id: check_iso.sh.in,v 1.1 2004/02/29 04:41:57 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
test_isoinfo "--quiet ${srcdir}/${fname}.iso --iso9660 " \
${fname}.dump ${srcdir}/${fname}.right
RC=$?
check_result $RC 'iso-info test 1'
exit $RC
#;;; Local Variables: ***
#;;; mode:shell-script ***
#;;; eval: (sh-set-shell "bash") ***
#;;; End: ***

10
test/copying.right Normal file
View File

@@ -0,0 +1,10 @@
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
__________________________________
ISO-9660 Information
/:
Jan 10 2004 00:47 .
Jan 10 2004 00:47 ..
Jan 10 2004 00:47 copying