5 # drive the src/nametest program
6 # which does a heap of open(create)/unlink/stat
7 # and checks that error codes make sense with its
8 # memory of the files created.
10 #-----------------------------------------------------------------------
11 # Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
13 # This program is free software; you can redistribute it and/or modify it
14 # under the terms of version 2 of the GNU General Public License as
15 # published by the Free Software Foundation.
17 # This program is distributed in the hope that it would be useful, but
18 # WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 # Further, this software is distributed without any warranty that it is
22 # free of the rightful claim of any third person regarding infringement
23 # or the like. Any license provided herein, whether implied or
24 # otherwise, applies only to this software file. Patent licenses, if
25 # any, provided herein do not apply to combinations of this program with
26 # other software, or any other product whatsoever.
28 # You should have received a copy of the GNU General Public License along
29 # with this program; if not, write the Free Software Foundation, Inc., 59
30 # Temple Place - Suite 330, Boston MA 02111-1307, USA.
32 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
33 # Mountain View, CA 94043, or:
37 # For further information regarding this notice, see:
39 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
40 #-----------------------------------------------------------------------
43 owner=tes@sherman.melbourne.sgi.com
46 echo "QA output created by $seq"
50 status=0 # success is the default!
51 trap "_cleanup; exit \$status" 0 1 2 3 15
59 # get standard environment, filters and checks
63 # real QA test starts here
64 status=1 # default failure
65 sourcefile=$tmp.nametest
70 # need to create an input file with a list of
71 # filenames on each line
73 while [ $i -le $num_filenames ]; do
74 echo "nametest.$i" >>$sourcefile
80 $here/src/nametest -l $sourcefile -s $seed -i $iterations -z
83 #optional stuff if your test has verbose output to help resolve problems
85 #echo "If failure, check $seq.full (this) and $seq.full.ok (reference)"