Expand PMF_FN_* macros.
[netbsd-mini2440.git] / lib / libc / DB / hash / tests / testit
bloba4ece01fe0191b4b5c943906086fb961826524f7
1 #!/bin/csh -f
3 # Copyright (c) 1991 The Regents of the University of California.
4 # All rights reserved.
6 # This code is derived from software contributed to Berkeley by
7 # Margo Seltzer.
9 # Redistribution and use in source and binary forms, with or without
10 # modification, are permitted provided that the following conditions
11 # are met:
12 # 1. Redistributions of source code must retain the above copyright
13 # notice, this list of conditions and the following disclaimer.
14 # 2. Redistributions in binary form must reproduce the above copyright
15 # notice, this list of conditions and the following disclaimer in the
16 # documentation and/or other materials provided with the distribution.
17 # 3. All advertising materials mentioning features or use of this software
18 # must display the following acknowledgement:
19 # This product includes software developed by the University of
20 # California, Berkeley and its contributors.
21 # 4. Neither the name of the University nor the names of its contributors
22 # may be used to endorse or promote products derived from this software
23 # without specific prior written permission.
25 # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 # SUCH DAMAGE.
37 # @(#)testit 5.1 (Berkeley) 9/4/91
40 echo ""
41 echo "PAGE FILL "
42 set name=WORDS
43 set i = 256
44 foreach j ( 11 14 21 )
45 ./thash4 $i $j 25000 65536 $name < $name
46 end
47 set i = 512
48 foreach j ( 21 28 43 )
49 ./thash4 $i $j 25000 65536 $name < $name
50 end
51 set i = 1024
52 foreach j ( 43 57 85 )
53 ./thash4 $i $j 25000 65536 $name < $name
54 end
55 set i = 2048
56 foreach j ( 85 114 171 )
57 ./thash4 $i $j 25000 65536 $name < $name
58 end
59 set i = 4096
60 foreach j ( 171 228 341 )
61 ./thash4 $i $j 25000 65536 $name < $name
62 end
63 set i = 8192
64 foreach j ( 341 455 683 )
65 ./thash4 $i $j 25000 65536 $name < $name
66 end
67 echo "PAGE FILL "
68 set i = 256
69 foreach j ( 11 14 21 )
70 echo "$i"_"$j"
71 ./tcreat3 $i $j 25000 $name < $name
72 ./tread2 65536 < $name
73 ./tverify $name < $name
74 ./tseq > /dev/null
75 ./tdel $i $j $name < $name
76 end
77 set i = 512
78 foreach j ( 21 28 43 )
79 echo "$i"_"$j"
80 ./tcreat3 $i $j 25000 $name < $name
81 ./tread2 65536 < $name
82 ./tverify $name < $name
83 ./tseq > /dev/null
84 ./tdel $i $j $name < $name
85 end
86 set i = 1024
87 foreach j ( 43 57 85 )
88 echo "$i"_"$j"
89 ./tcreat3 $i $j 25000 $name < $name
90 ./tread2 65536 < $name
91 ./tverify $name < $name
92 ./tseq > /dev/null
93 ./tdel $i $j $name < $name
94 end
95 set i = 2048
96 foreach j ( 85 114 171 )
97 echo "$i"_"$j"
98 ./tcreat3 $i $j 25000 $name < $name
99 ./tread2 65536 < $name
100 ./tverify $name < $name
101 ./tseq > /dev/null
102 ./tdel $i $j $name < $name
104 set i = 4096
105 foreach j ( 171 228 341 )
106 echo "$i"_"$j"
107 ./tcreat3 $i $j 25000 $name < $name
108 ./tread2 65536 < $name
109 ./tverify $name < $name
110 ./tseq > /dev/null
111 ./tdel $i $j $name < $name
113 set i = 8192
114 foreach j ( 341 455 683 )
115 echo "$i"_"$j"
116 ./tcreat3 $i $j 25000 $name < $name
117 ./tread2 65536 < $name
118 ./tverify $name < $name
119 ./tseq > /dev/null
120 ./tdel $i $j $name < $name
122 set name=LONG.DATA
123 set i = 1024
124 foreach j ( 1 2 4 )
125 echo thash4 $i $j 600 65536 $name
126 ./thash4 $i $j 600 65536 $name < $name
129 set i = 2048
130 foreach j ( 1 2 4 )
131 echo thash4 $i $j 600 65536 $name
132 ./thash4 $i $j 600 65536 $name < $name
134 set i = 4096
135 foreach j ( 1 2 4 )
136 echo thash4 $i $j 600 65536 $name
137 ./thash4 $i $j 600 65536 $name < $name
139 set i = 8192
140 foreach j ( 2 4 8 )
141 echo thash4 $i $j 600 65536 $name
142 ./thash4 $i $j 600 65536 $name < $name
144 echo "PAGE FILL "
145 set i = 1024
146 foreach j ( 1 2 4 )
147 echo "$i"_"$j"
148 tcreat3 $i $j 600 $name < $name
149 tread2 65536 < $name
150 tverify $name < $name
151 tseq > /dev/null
152 tdel $i $j $name < $name
154 set i = 2048
155 foreach j ( 1 2 4 )
156 echo "$i"_"$j"
157 ./tcreat3 $i $j 600 $name < $name
158 ./tread2 65536 < $name
159 ./tverify $name < $name
160 ./tseq > /dev/null
161 ./tdel $i $j $name < $name
163 set i = 4096
164 foreach j ( 1 2 4 )
165 echo "$i"_"$j"
166 ./tcreat3 $i $j 600 $name < $name
167 ./tread2 65536 < $name
168 ./tverify $name < $name
169 ./tseq > /dev/null
170 ./tdel $i $j $name < $name
172 set i = 8192
173 foreach j ( 2 4 8 )
174 echo "$i"_"$j"
175 ./tcreat3 $i $j 600 $name < $name
176 ./tread2 65536 < $name
177 ./tverify $name < $name
178 ./tseq > /dev/null
179 ./tdel $i $j $name < $name
181 ./driver2