2 // Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4 // This program is free software; you can redistribute it and/or modify it
5 // under the terms of version 2 of the GNU General Public License as
6 // published by the Free Software Foundation.
8 // This program is distributed in the hope that it would be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 // Further, this software is distributed without any warranty that it is
13 // free of the rightful claim of any third person regarding infringement
14 // or the like. Any license provided herein, whether implied or
15 // otherwise, applies only to this software file. Patent licenses, if
16 // any, provided herein do not apply to combinations of this program with
17 // other software, or any other product whatsoever.
19 // You should have received a copy of the GNU General Public License along
20 // with this program; if not, write the Free Software Foundation, Inc., 59
21 // Temple Place - Suite 330, Boston MA 02111-1307, USA.
23 // Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 // Mountain View, CA 94043, or:
28 // For further information regarding this notice, see:
30 // http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32 // This test will use the following files:
34 ctf stf ls_to_copy ctest.c
35 fcntl open_test truncate rd wf
36 read_invis write_invis
37 set_region set_return_on_destroy
38 --------------------------------------------
39 // These setup commands are run before the daemon starts.
40 // They reset the file structure of the test directory
45 $1/stf $1 $real_dir/l??
47 cp $1/ctest.c $real_dir
48 chown $lname $real_dir/l??
49 chown $lname $real_dir/ctest.c
50 $1/set_return_on_destroy $real_dir test
51 --------------------------------------------
52 @@ Standard i/o tests (1 of 26): open
54 $1/open_test $2/ls0 o_rdwr
57 --------------------------------------------
58 @@ Standard i/o tests (2 of 26): open/trunc
60 $1/open_test $2/ls1 o_rdwr o_trunc
64 --------------------------------------------
65 @@ Standard i/o tests (3 of 26): open/trunc/create
67 $1/open_test $2/ls2 o_rdwr o_trunc o_creat
70 --------------------------------------------
71 @@ Standard i/o tests (4 of 26): open/create
73 $1/open_test $2/ls3 o_rdwr o_creat
76 --------------------------------------------
77 @@ Standard i/o tests (5 of 26): new file
79 $1/open_test $2/LS3 o_rdwr o_creat
83 --------------------------------------------
84 @@ Standard i/o tests (6 of 26): append #1
90 file_handle[0] store_in ls4temp
91 --------------------------------------------
92 @@ Standard i/o tests (7 of 26): append #2
97 file_handle[0] matches ls4temp
98 --------------------------------------------
99 @@ Standard i/o tests (8 of 26): remove
107 contents[1] 123456789abcdefghijklmnopqrstuvwxyz
108 --------------------------------------------
109 @@ Standard i/o tests (9 of 26): link
115 --------------------------------------------
116 @@ Standard i/o tests (10 of 26): deleting link
122 --------------------------------------------
123 @@ Standard i/o tests (11 of 26): return_on_destroy #1
126 $1/set_return_on_destroy $real_dir
127 --------------------------------------------
128 @@ Standard i/o tests (12 of 26): return_on_destroy #2
137 --------------------------------------------
138 @@ Standard i/o tests (13 of 26)
140 $1/fcntl f_freesp -o 99999 -l 199999 $2/ls6
144 --------------------------------------------
145 @@ Standard i/o tests (14 of 26)
147 $1/fcntl f_freesp -o 1000 -l 10000 $2/ls6
151 --------------------------------------------
152 @@ Standard i/o tests (15 of 26) truncate #1
154 $1/truncate $2/ls7 99999
158 --------------------------------------------
159 @@ Standard i/o tests (16 of 26) truncate #2
161 $1/truncate $2/ls7 1000
165 --------------------------------------------
166 @@ Standard i/o tests (17 of 26) execute
174 --------------------------------------------
175 @@ Standard i/o tests (18 of 26) symlink
177 ln -s $2/junk $2/symlink
181 --------------------------------------------
182 @@ Standard i/o tests (19 of 26) deleting symlink
189 --------------------------------------------
190 @@ Standard i/o tests (20 of 26) mkdir
192 mkdir $2/unlikely-named-test-dir
196 --------------------------------------------
197 @@ Standard i/o tests (21 of 26) rmdir
199 rmdir $2/unlikely-named-test-dir
204 --------------------------------------------
205 @@ Standard i/o tests (22 of 26) rename
211 --------------------------------------------
212 @@ Standard i/o tests (23 of 26) copy (new)
224 --------------------------------------------
225 @@ Standard i/o tests (24 of 26) copy (onto old)
234 --------------------------------------------
235 @@ Standard i/o tests (25 of 26) memory-mapped i/o
237 // Note to self: don't check event_count
239 cc -o $2/ll0 $2/ctest.c
243 --------------------------------------------
244 @@ Standard i/o tests (26 of 26) executing