2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
7 # drive the src/nametest program
8 # which does a heap of open(create)/unlink/stat
9 # and checks that error codes make sense with its
10 # memory of the files created.
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=0 # success is the default!
19 trap "_cleanup; exit \$status" 0 1 2 3 15
28 # get standard environment, filters and checks
32 # real QA test starts here
37 status=1 # default failure
38 sourcefile=$tmp.nametest
43 # need to create an input file with a list of
44 # filenames on each line
46 while [ $i -le $num_filenames ]; do
47 echo "nametest.$i" >>$sourcefile
54 $here/src/nametest -l $sourcefile -s $seed -i $iterations -z