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