3 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of version 2 of the GNU General Public License as
7 # published by the Free Software Foundation.
9 # This program is distributed in the hope that it would be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 # Further, this software is distributed without any warranty that it is
14 # free of the rightful claim of any third person regarding infringement
15 # or the like. Any license provided herein, whether implied or
16 # otherwise, applies only to this software file. Patent licenses, if
17 # any, provided herein do not apply to combinations of this program with
18 # other software, or any other product whatsoever.
20 # You should have received a copy of the GNU General Public License along
21 # with this program; if not, write the Free Software Foundation, Inc., 59
22 # Temple Place - Suite 330, Boston MA 02111-1307, USA.
24 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25 # Mountain View, CA 94043, or:
29 # For further information regarding this notice, see:
31 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
37 # generic initialization
41 trap "rm -f /tmp/$$.; exit" 0 1 2 3 15
50 echo "Creating the group index ..."
51 cat <<'End-of-File' >group
54 # define groups and default group owners
55 # do not start group name with a digit
62 # test-group association ... one line per test
70 echo "Warning: making the index file \"group\" writeable"
77 echo "Warning: make failed -- some tests may be missing"
80 last=`grep '^[0-9][0-9]* ' group | sort | tail -1 | sed -e 's/[ ].*//'`
81 # get rid of leading 0s as can be interpreted as octal
82 last=`echo $last | sed 's/^0*//'`
83 id=`$AWK_PROG </dev/null 'BEGIN{printf "%03d\n",'$last'+1}'`
84 echo "Next test is $id"
88 echo "Error: test $id already exists!"
93 echo -n "Creating skeletal script for you to edit ..."
95 cat <<End-of-File >$id
101 #-----------------------------------------------------------------------
102 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
104 # This program is free software; you can redistribute it and/or modify it
105 # under the terms of version 2 of the GNU General Public License as
106 # published by the Free Software Foundation.
108 # This program is distributed in the hope that it would be useful, but
109 # WITHOUT ANY WARRANTY; without even the implied warranty of
110 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
112 # Further, this software is distributed without any warranty that it is
113 # free of the rightful claim of any third person regarding infringement
114 # or the like. Any license provided herein, whether implied or
115 # otherwise, applies only to this software file. Patent licenses, if
116 # any, provided herein do not apply to combinations of this program with
117 # other software, or any other product whatsoever.
119 # You should have received a copy of the GNU General Public License along
120 # with this program; if not, write the Free Software Foundation, Inc., 59
121 # Temple Place - Suite 330, Boston MA 02111-1307, USA.
123 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
124 # Mountain View, CA 94043, or:
128 # For further information regarding this notice, see:
130 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
131 #-----------------------------------------------------------------------
134 owner=$USER@`_get_fqdn`
137 echo "QA output created by \$seq"
141 status=1 # failure is the default!
142 trap "_cleanup; exit \\\$status" 0 1 2 3 15
150 # get standard environment, filters and checks
154 # real QA test starts here
156 # Modify as appropriate.
157 _supported_fs xfs udf nfs
158 _supported_os IRIX Linux
163 # optional stuff if your test has verbose output to help resolve problems
165 #echo "If failure, check \$seq.full (this) and \$seq.full.ok (reference)"
172 sleep 2 # latency to read messages to this point
182 echo -n "Add to group(s) [other] (? for list): "
184 [ -z "$ans" ] && ans=other
185 if [ "X$ans" = "X?" ]
188 BEGIN { text = "# ???" }
189 /^[a-zA-z]/ { printf "%-16.16s %s\n",$1,text; text = "# ???"; next }
198 # expert mode, groups are on the command line
202 if grep "^$g[ ]" group >/dev/null
206 echo "Warning: group \"$g\" not defined in ./group"
212 echo -n "Adding $id to group index ..."
213 echo "$id $ans" >>group