Add up-to-date autotools pieces to dmapi tests
[xfstests-dev.git] / dmapi / src / suite2 / DMAPI_aliases
1 #
2 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
3
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.
7
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.
11
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.
18
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.
22
23 # Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 # Mountain View, CA  94043, or:
25
26 # http://www.sgi.com 
27
28 # For further information regarding this notice, see: 
29
30 # http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
31
32 #---------------------------------------------------------------------------
33 # CONFIGURATION SECTION:  
34 #    Configure this script by changing the variables in this section.
35 #    Please change ONLY this section!
36 #---------------------------------------------------------------------------
37
38 # Base directory:
39 base_dir="~jayw/test"
40
41 # Primary username:
42 p_user="jayw"
43
44 # Path to the mountpoint of the test filesystem:
45 m_main="/dmitest"
46
47 # m_main concatenated with d_name == the full test directory path
48 #
49 # EXAMPLE:  If m_main is "/dmitest", and the test directory
50 # is "/dmitest/test", set this to "/test"
51 #
52 d_name="/test"
53
54 # Path to the mountpoint of the nfs2 test filesystem:
55 m_nfs2="/dmiv2"
56
57 # Path to the mountpoint of the nfs3 test filesystem:
58 m_nfs3="/dmiv3"
59
60 # Path to the mountpoint of the realtime test filesystem:
61 m_rt="/dmf"
62 # Path to the realtime test directory:
63 d_rt="$m_rt/kcm"
64
65 #--------------------------------------------------------------------
66 # END OF CONFIGURATION SECTION:
67 #    No changes should be made past this point!  Please change only   
68 #    the above shell variables to configure this script.
69 #--------------------------------------------------------------------
70
71 # Path to the "bindir" directory:
72 bin="$base_dir/bindir"
73
74 # Path to the "generic file" (a copy of ls): 
75 ls_path="$bin/ls_to_copy"
76
77 # Path to the main test directory:
78 d_main="$m_main$d_name"
79
80 # Path to the nfs2 test directory:
81 d_nfs2="$m_nfs2$d_name"
82
83 # Path to the nfs3 test directory:
84 d_nfs3="$m_nfs2$d_name"
85
86 #---------------------------------------------------------------------------
87 # Tests that run without a daemon
88 #---------------------------------------------------------------------------
89
90 # Automated C programs to test DMAPI functions 
91 alias do_dmattr="$bin/test_dmattr $ls_path $tdir"
92 alias do_eventlist="$bin/test_eventlist $ls_path $tdir"
93 alias do_fileattr="$bin/test_fileattr $ls_path $tdir"
94 alias do_hole="$bin/test_hole $ls_path $tdir"
95 alias do_invis="$bin/test_invis $ls_path $tdir"
96 alias do_region="$bin/test_region  $ls_path $tdir"
97 alias do_efault="$bin/test_efault $ls_path $tdir"
98 alias do_rights="$bin/test_rights $ls_path $tdir"
99
100 # Verbose versions of the above
101 alias dov_dmattr="$bin/test_dmattr -v $ls_path $tdir"
102 alias dov_eventlist="$bin/test_eventlist -v $ls_path $tdir"
103 alias dov_fileattr="$bin/test_fileattr -v $ls_path $tdir"
104 alias dov_hole="$bin/test_hole -v $ls_path $tdir"
105 alias dov_invis="$bin/test_invis -v $ls_path $tdir"
106 alias dov_region="$bin/test_region -v $ls_path $tdir"
107 alias dov_efault="$bin/efault -v $ls_path $tdir"
108 alias dov_rights="$bin/test_rights -v $ls_path $tdir"
109
110 # Scripts to test dm_get_allocinfo
111 alias do_allocinfo_1="$bin/test_allocinfo_1 $bin $tdir"
112 alias do_allocinfo_2="$bin/test_allocinfo_2  $bin $tdir"
113
114 #-------------------------------------------------------------------------------------------------
115 # Tests that load a DMAPI daemon and examine the generated events
116 #-------------------------------------------------------------------------------------------------
117
118 # Standard battery of tests:
119 alias do_standard="$bin/run_test -u $p_user -f standard.dat $bin $tdir $mdir"
120 alias do_standard_nfs2="$bin/run_test -u $p_user -F nfs2 -M $m_nfs2 -R $tdir -f standard_nfs.dat $bin $d_nfs2 $mdir"
121 alias do_standard_nfs3="$bin/run_test -u $p_user -F nfs3 -M $m_nfs3 -R $tdir -f standard_nfs.dat $bin $d_nfs3 $mdir"
122
123 # Some other, more specific tests:
124 alias do_main="$bin/run_test -u $p_user $bin $tdir $mdir"
125 alias do_nfs2="$bin/run_test -u $p_user -F nfs2 -M $m_nfs2 -R $tdir -f nfs.dat $bin $d_nfs2 $mdir"
126 alias do_nfs3="$bin/run_test -u $p_user -F nfs3 -M $m_nfs3 -R $tdir -f nfs.dat $bin $d_nfs3 $mdir"
127
128 alias do_pending="$bin/run_test -u $p_user -f pending.dat $bin $tdir $mdir"
129 alias do_pending_nfs2="$bin/run_test -u $p_user -F nfs2 -M $m_nfs2 -R $tdir -f pending_nfs.dat $bin $d_nfs2 $mdir"
130 alias do_pending_nfs3="$bin/run_test -u $p_user -F nfs3 -M $m_nfs3 -R $tdir -f pending_nfs.dat $bin $d_nfs3 $mdir"
131
132 alias do_failure="$bin/run_test -u $p_user -f fail.dat $bin $tdir $mdir"
133 alias do_failure_nfs2="$bin/run_test -u $p_user -F nfs2 -M $m_nfs2 -R $tdir -f fail.dat $bin $d_nfs2 $mdir"
134 alias do_failure_nfs3="$bin/run_test -u $p_user -F nfs3 -M $m_nfs3 -R $tdir -f fail.dat $bin $d_nfs3 $mdir"
135
136 # Realtime test:
137 alias do_realtime="$bin/run_test -u $p_user -f realtime.dat $bin $m_rt $d_rt"
138
139 # Small event queue test:  Set dm_max_queued to about 5 or so before running!
140 alias do_smallq="$bin/run_test -u $p_user -s 2 -f smallq.dat $bin $tdir $mdir"
141
142 #-------------------------------------------------------------------------------------------------
143 # Additional tools (these are NOT tests):
144 #-------------------------------------------------------------------------------------------------
145
146 alias check_for_daemon="ps -el | grep daemon"
147 alias do_daemon="$bin/dm_test_daemon $mdir"