2 // Copyright (c) 2000 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
46 $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 @@ Aborted events testing (1 of 7):
53 @@ Read ls0 successfully.
55 $1/open_test $2/ls0 o_rdwr
58 --------------------------------------------
59 @@ Aborted events testing (2 of 7):
60 @@ Set the daemon to halt events with DM_RESP_ABORT
64 $1/send_msg unfriendly_17
67 msg_str[0] unfriendly_17
68 --------------------------------------------
69 @@ Aborted events testing (3 of 7):
70 @@ Try to read ls0. this should fail with EEXIST.
72 $1/open_test $2/ls0 o_rdwr
76 --------------------------------------------
77 @@ Aborted events testing (4 of 7):
78 @@ Try to read ls1. This should fail with EEXIST.
80 $1/open_test $2/ls1 o_rdwr o_trunc
84 --------------------------------------------
85 @@ Aborted events testing (5 of 7):
86 @@ Reset the daemon to respond with DM_RESP_CONTINUE.
93 --------------------------------------------
94 @@ Aborted events testing (6 of 7):
95 @@ Again, try to read ls0. This should succeed.
97 $1/open_test $2/ls0 o_rdwr
100 --------------------------------------------
101 @@ Aborted events testing (7 of 7):
102 @@ Again, try to read ls1. This time,
103 @@ it should succeed.
105 $1/open_test $2/ls1 o_rdwr o_trunc
109 --------------------------------------------
113 $1/send_msg dmapi-test-foo-abc123
116 msg_str[0] dmapi-test-foo-abc123
117 --------------------------------------------
118 @@ Test of invisible i/o (1 of 2): write
121 $1/write_invis -o 64 -l 16 $2/ls0
123 --------------------------------------------
124 @@ Test of invisible i/o (2 of 2): read
127 $1/read_invis -o 64 -l 16 $2/ls0
129 --------------------------------------------
130 @@ Test of direct i/o (1 of 2): write
132 $1/wf -l 327680 -b 32768 -d $2/ls9
144 --------------------------------------------
145 @@ Test of direct i/o (2 of 2): read
147 $1/rd -b 32768 -d $2/ls9