2 // Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4 // This test will use the following files:
6 ctf stf ls_to_copy ctest.c
7 fcntl open_test truncate rd wf
9 set_region set_return_on_destroy
10 --------------------------------------------
11 // These setup commands are run before the daemon starts.
12 // They reset the file structure of the test directory
17 $1/stf $1 $real_dir/l??
19 cp $1/ctest.c $real_dir
20 chown $lname $real_dir/l??
21 chown $lname $real_dir/ctest.c
22 $1/set_return_on_destroy $real_dir test
23 --------------------------------------------
24 @@ Standard i/o tests (1 of 26): open
26 $1/open_test $2/ls0 o_rdwr
29 --------------------------------------------
30 @@ Standard i/o tests (2 of 26): open/trunc
32 $1/open_test $2/ls1 o_rdwr o_trunc
36 --------------------------------------------
37 @@ Standard i/o tests (3 of 26): open/trunc/create
39 $1/open_test $2/ls2 o_rdwr o_trunc o_creat
42 --------------------------------------------
43 @@ Standard i/o tests (4 of 26): open/create
45 $1/open_test $2/ls3 o_rdwr o_creat
48 --------------------------------------------
49 @@ Standard i/o tests (5 of 26): new file
51 $1/open_test $2/LS3 o_rdwr o_creat
55 --------------------------------------------
56 @@ Standard i/o tests (6 of 26): append #1
62 file_handle[0] store_in ls4temp
63 --------------------------------------------
64 @@ Standard i/o tests (7 of 26): append #2
69 file_handle[0] matches ls4temp
70 --------------------------------------------
71 @@ Standard i/o tests (8 of 26): remove
79 contents[1] 123456789abcdefghijklmnopqrstuvwxyz
80 --------------------------------------------
81 @@ Standard i/o tests (9 of 26): link
87 --------------------------------------------
88 @@ Standard i/o tests (10 of 26): deleting link
94 --------------------------------------------
95 @@ Standard i/o tests (11 of 26): return_on_destroy #1
98 $1/set_return_on_destroy $real_dir
99 --------------------------------------------
100 @@ Standard i/o tests (12 of 26): return_on_destroy #2
109 --------------------------------------------
110 @@ Standard i/o tests (13 of 26)
112 $1/fcntl f_freesp -o 99999 -l 199999 $2/ls6
116 --------------------------------------------
117 @@ Standard i/o tests (14 of 26)
119 $1/fcntl f_freesp -o 1000 -l 10000 $2/ls6
123 --------------------------------------------
124 @@ Standard i/o tests (15 of 26) truncate #1
126 $1/truncate $2/ls7 99999
130 --------------------------------------------
131 @@ Standard i/o tests (16 of 26) truncate #2
133 $1/truncate $2/ls7 1000
137 --------------------------------------------
138 @@ Standard i/o tests (17 of 26) execute
146 --------------------------------------------
147 @@ Standard i/o tests (18 of 26) symlink
149 ln -s $2/junk $2/symlink
153 --------------------------------------------
154 @@ Standard i/o tests (19 of 26) deleting symlink
161 --------------------------------------------
162 @@ Standard i/o tests (20 of 26) mkdir
164 mkdir $2/unlikely-named-test-dir
168 --------------------------------------------
169 @@ Standard i/o tests (21 of 26) rmdir
171 rmdir $2/unlikely-named-test-dir
176 --------------------------------------------
177 @@ Standard i/o tests (22 of 26) rename
183 --------------------------------------------
184 @@ Standard i/o tests (23 of 26) copy (new)
196 --------------------------------------------
197 @@ Standard i/o tests (24 of 26) copy (onto old)
206 --------------------------------------------
207 @@ Standard i/o tests (25 of 26) memory-mapped i/o
209 // Note to self: don't check event_count
211 cc -o $2/ll0 $2/ctest.c
215 --------------------------------------------
216 @@ Standard i/o tests (26 of 26) executing