2 // Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
4 // This test will use the following files:
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
15 rm $real_dir/realtime.?
17 chown $lname $real_dir/*
18 $1/stf $1 $real_dir/realtime.?
19 $1/set_return_on_destroy $real_dir test
20 --------------------------------------------
21 @@ Test of invisible i/o (1 of 2): write
24 $1/write_invis -o 64 -l 16 $2/realtime.0
26 --------------------------------------------
27 @@ Test of invisible i/o (2 of 2): read
30 $1/read_invis -o 64 -l 16 $2/realtime.0
32 --------------------------------------------
33 @@ Test of direct i/o (1 of 2): write
35 $1/wf -l 327680 -b 32768 -d $2/realtime.1
47 --------------------------------------------
48 @@ Test of direct i/o (2 of 2): read
50 $1/rd -b 32768 -d $2/realtime.1
63 --------------------------------------------
64 @@ Standard i/o tests (1 of 7): open
66 $1/open_test $2/realtime.2 o_rdwr
69 --------------------------------------------
70 @@ Standard i/o tests (2 of 7): open/trunc
72 $1/open_test $2/realtime.3 o_rdwr o_trunc
76 --------------------------------------------
77 @@ Standard i/o tests (3 of 7): open/trunc/create
79 $1/open_test $2/realtime.4 o_rdwr o_trunc o_creat
82 --------------------------------------------
83 @@ Standard i/o tests (4 of 7): open/create
85 $1/open_test $2/realtime.5 o_rdwr o_creat
88 --------------------------------------------
89 @@ Standard i/o tests (5 of 7): append #1
91 echo j >> $2/realtime.6
94 file_handle[0] store_in ls4temp
95 --------------------------------------------
96 @@ Standard i/o tests (6 of 7): append #2
98 echo w >> $2/realtime.6
101 file_handle[0] matches ls4temp
102 --------------------------------------------
103 @@ Standard i/o tests (7 of 7): remove
105 /bin/rm $2/realtime.6
111 contents[1] 123456789abcdefghijklmnopqrstuvwxyz