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 mmap_cp
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
16 rm $real_dir/mmap_cp_testfile
18 $1/stf $1 $real_dir/l??
20 cp $1/ctest.c $real_dir
21 chown $lname $real_dir/l??
22 chown $lname $real_dir/ctest.c
23 $1/set_return_on_destroy $real_dir test
24 --------------------------------------------
25 @@ Memory-mapped copying test: (1 of 3)
27 $1/mmap_cp $2/ll1 $2/mmap_cp_testfile
32 --------------------------------------------
33 @@ Memory-mapped copying test: (2 of 3)
35 $1/mmap_cp $2/ll1 $2/mmap_cp_testfile
38 --------------------------------------------
39 @@ Memory-mapped copying test: (3 of 3)
41 $1/mmap_cp $2/ll1 $2/ll2
45 --------------------------------------------
46 @@ Preunmount/unmount test
47 @@ (note: if you abort before the next test, the
48 @@ filesystem will remain unmounted)
55 fs_handle[0] matches fs_handle[1]
56 fs_handle[0] store_in fsh
57 root_handle[0] store_in rh
58 unmount_mode[0] NOFORCE
59 unmount_mode[1] NOFORCE
60 --------------------------------------------
62 @@ (Note: assorted settings will be restored in next tests)
68 fs_handle[0] matches fsh
69 mountpoint_handle[0] <BAD_HANDLE_hlen_0>
70 mountpoint_path[0] /dmitest
72 root_handle matches rh
73 --------------------------------------------
74 @@ (after remount: restoring event dispositions on fs)
81 --------------------------------------------
82 @@ (after remount: restoring managed regions on files
83 @@ and setting destroy events to return "test" attribute)
86 $1/stf $1 $real_dir/l??
87 $1/set_return_on_destroy $real_dir test
88 -------------------------------------------
89 @@ Standard i/o tests (1 of 26): open
91 $1/open_test $2/ls0 o_rdwr
94 --------------------------------------------
95 @@ Standard i/o tests (2 of 26): open/trunc
97 $1/open_test $2/ls1 o_rdwr o_trunc
101 --------------------------------------------
102 @@ Standard i/o tests (3 of 26): open/trunc/create
104 $1/open_test $2/ls2 o_rdwr o_trunc o_creat
107 --------------------------------------------
108 @@ Standard i/o tests (4 of 26): open/create
110 $1/open_test $2/ls3 o_rdwr o_creat
113 --------------------------------------------
114 @@ Standard i/o tests (5 of 26): new file
116 $1/open_test $2/LS3 o_rdwr o_creat
120 --------------------------------------------
121 @@ Standard i/o tests (6 of 26): append #1
126 file_handle[0] store_in ls4temp
127 --------------------------------------------
128 @@ Standard i/o tests (7 of 26): append #2
133 file_handle[0] matches ls4temp
134 --------------------------------------------
135 @@ Standard i/o tests (8 of 26): remove
143 contents[1] 123456789abcdefghijklmnopqrstuvwxyz
144 --------------------------------------------
145 @@ Standard i/o tests (9 of 26): link
151 --------------------------------------------
152 @@ Standard i/o tests (10 of 26): deleting link
158 --------------------------------------------
159 @@ Standard i/o tests (11 of 26): return_on_destroy #1
162 $1/set_return_on_destroy $real_dir
163 --------------------------------------------
164 @@ Standard i/o tests (12 of 26): return_on_destroy #2
173 --------------------------------------------
174 @@ Standard i/o tests (13 of 26)
176 $1/fcntl f_freesp -o 99999 -l 199999 $2/ls6
180 --------------------------------------------
181 @@ Standard i/o tests (14 of 26)
183 $1/fcntl f_freesp -o 1000 -l 10000 $2/ls6
187 --------------------------------------------
188 @@ Standard i/o tests (15 of 26) truncate #1
190 $1/truncate $2/ls7 99999
194 --------------------------------------------
195 @@ Standard i/o tests (16 of 26) truncate #2
197 $1/truncate $2/ls7 1000
201 --------------------------------------------
202 @@ Standard i/o tests (17 of 26) execute
212 file_handle[0] matches file_handle[1]
213 file_handle[0] matches file_handle[2]
214 file_handle[0] matches file_handle[3]
215 --------------------------------------------
216 @@ Standard i/o tests (18 of 26) symlink
218 ln -s $2/junk $2/symlink
222 --------------------------------------------
223 @@ Standard i/o tests (19 of 26) deleting symlink
230 --------------------------------------------
231 @@ Standard i/o tests (20 of 26) mkdir
233 mkdir $2/unlikely-named-test-dir
237 --------------------------------------------
238 @@ Standard i/o tests (21 of 26) rmdir
240 rmdir $2/unlikely-named-test-dir
245 --------------------------------------------
246 @@ Standard i/o tests (22 of 26) rename
252 --------------------------------------------
253 @@ Standard i/o tests (23 of 26) copy (new)
266 --------------------------------------------
267 @@ Standard i/o tests (24 of 26) copy (onto old)
276 --------------------------------------------
277 @@ Standard i/o tests (25 of 26) memory-mapped i/o
279 // Note to self: don't check event_count
281 cc -o $2/ll0 $2/ctest.c
287 --------------------------------------------
288 @@ Standard i/o tests (26 of 26) executing