xref: /csrg-svn/lib/libc/db/test/hash.tests/testit (revision 50987)
1*50987Sbostic#!/bin/csh -f
2*50987Sbostic#
3*50987Sbostic# Copyright (c) 1991 The Regents of the University of California.
4*50987Sbostic# All rights reserved.
5*50987Sbostic#
6*50987Sbostic# This code is derived from software contributed to Berkeley by
7*50987Sbostic# Margo Seltzer.
8*50987Sbostic#
9*50987Sbostic# %sccs.include.redist.sh%
10*50987Sbostic#
11*50987Sbostic#	@(#)testit	5.1 (Berkeley) 09/04/91
12*50987Sbostic#
13*50987Sbostic
14*50987Sbosticecho ""
15*50987Sbosticecho "PAGE FILL "
16*50987Sbosticset name=WORDS
17*50987Sbostic	set i = 256
18*50987Sbostic	foreach j ( 11 14 21 )
19*50987Sbostic	    thash4 $i $j 25000 65536 $name < $name
20*50987Sbostic	end
21*50987Sbostic	set i = 512
22*50987Sbostic	foreach j ( 21 28 43 )
23*50987Sbostic	    thash4 $i $j 25000 65536  $name < $name
24*50987Sbostic	end
25*50987Sbostic	set i = 1024
26*50987Sbostic	foreach j ( 43 57 85 )
27*50987Sbostic	    thash4 $i $j 25000 65536 $name < $name
28*50987Sbostic	end
29*50987Sbostic	set i = 2048
30*50987Sbostic	foreach j ( 85 114 171 )
31*50987Sbostic	    thash4 $i $j 25000 65536 $name < $name
32*50987Sbostic	end
33*50987Sbostic	set i = 4096
34*50987Sbostic	foreach j ( 171 228 341 )
35*50987Sbostic	    thash4 $i $j 25000 65536 $name < $name
36*50987Sbostic	end
37*50987Sbostic	set i = 8192
38*50987Sbostic	foreach j ( 341 455 683 )
39*50987Sbostic	    thash4 $i $j 25000 65536 $name < $name
40*50987Sbostic	end
41*50987Sbostic	echo "PAGE FILL "
42*50987Sbostic	set i = 256
43*50987Sbostic	foreach j ( 11 14 21 )
44*50987Sbostic	    echo "$i"_"$j"
45*50987Sbostic	    tcreat3 $i $j 25000 $name < $name
46*50987Sbostic	    tread2 65536 < $name
47*50987Sbostic	    tverify $name < $name
48*50987Sbostic	    tseq > /dev/null
49*50987Sbostic	    tdel $i $j  $name < $name
50*50987Sbostic	end
51*50987Sbostic	set i = 512
52*50987Sbostic	foreach j ( 21 28 43 )
53*50987Sbostic	    echo "$i"_"$j"
54*50987Sbostic	    tcreat3 $i $j 25000 $name < $name
55*50987Sbostic	    tread2 65536 < $name
56*50987Sbostic	    tverify $name < $name
57*50987Sbostic	    tseq > /dev/null
58*50987Sbostic	    tdel $i $j  $name < $name
59*50987Sbostic	end
60*50987Sbostic	set i = 1024
61*50987Sbostic	foreach j ( 43 57 85 )
62*50987Sbostic	    echo "$i"_"$j"
63*50987Sbostic	    tcreat3 $i $j 25000 $name < $name
64*50987Sbostic	    tread2 65536 < $name
65*50987Sbostic	    tverify $name < $name
66*50987Sbostic	    tseq > /dev/null
67*50987Sbostic	    tdel $i $j  $name < $name
68*50987Sbostic	end
69*50987Sbostic	set i = 2048
70*50987Sbostic	foreach j ( 85 114 171 )
71*50987Sbostic	    echo "$i"_"$j"
72*50987Sbostic	    tcreat3 $i $j 25000 $name < $name
73*50987Sbostic	    tread2 65536 < $name
74*50987Sbostic	    tverify $name < $name
75*50987Sbostic	    tseq > /dev/null
76*50987Sbostic	    tdel $i $j  $name < $name
77*50987Sbostic	end
78*50987Sbostic	set i = 4096
79*50987Sbostic	foreach j ( 171 228 341 )
80*50987Sbostic	    echo "$i"_"$j"
81*50987Sbostic	    tcreat3 $i $j 25000 $name < $name
82*50987Sbostic	    tread2 65536 < $name
83*50987Sbostic	    tverify $name < $name
84*50987Sbostic	    tseq > /dev/null
85*50987Sbostic	    tdel $i $j  $name < $name
86*50987Sbostic	end
87*50987Sbostic	set i = 8192
88*50987Sbostic	foreach j ( 341 455 683 )
89*50987Sbostic	    echo "$i"_"$j"
90*50987Sbostic	    tcreat3 $i $j 25000 $name < $name
91*50987Sbostic	    tread2 65536 < $name
92*50987Sbostic	    tverify $name < $name
93*50987Sbostic	    tseq > /dev/null
94*50987Sbostic	    tdel $i $j  $name < $name
95*50987Sbostic	end
96*50987Sbosticset name=LONG.DATA
97*50987Sbostic	set i = 1024
98*50987Sbostic	foreach j ( 1 2 4 )
99*50987Sbostic	    echo thash4 $i $j 600 65536 $name
100*50987Sbostic	    thash4 $i $j 600 65536 $name < $name
101*50987Sbostic	end
102*50987Sbostic
103*50987Sbostic	set i = 2048
104*50987Sbostic	foreach j ( 1 2 4 )
105*50987Sbostic	    echo thash4 $i $j 600 65536 $name
106*50987Sbostic	    thash4 $i $j 600 65536 $name < $name
107*50987Sbostic	end
108*50987Sbostic	set i = 4096
109*50987Sbostic	foreach j ( 1 2 4 )
110*50987Sbostic	    echo thash4 $i $j 600 65536 $name
111*50987Sbostic	    thash4 $i $j 600 65536 $name < $name
112*50987Sbostic	end
113*50987Sbostic	set i = 8192
114*50987Sbostic	foreach j ( 2 4 8 )
115*50987Sbostic	    echo thash4 $i $j 600 65536 $name
116*50987Sbostic	    thash4 $i $j 600 65536 $name < $name
117*50987Sbostic	end
118*50987Sbostic	echo "PAGE FILL "
119*50987Sbostic	set i = 1024
120*50987Sbostic	foreach j ( 1 2 4 )
121*50987Sbostic	    echo "$i"_"$j"
122*50987Sbostic	    tcreat3 $i $j 600 $name < $name
123*50987Sbostic	    tread2 65536 < $name
124*50987Sbostic	    tverify $name < $name
125*50987Sbostic	    tseq > /dev/null
126*50987Sbostic	    tdel $i $j  $name < $name
127*50987Sbostic	end
128*50987Sbostic	set i = 2048
129*50987Sbostic	foreach j ( 1 2 4 )
130*50987Sbostic	    echo "$i"_"$j"
131*50987Sbostic	    tcreat3 $i $j 600 $name < $name
132*50987Sbostic	    tread2 65536 < $name
133*50987Sbostic	    tverify $name < $name
134*50987Sbostic	    tseq > /dev/null
135*50987Sbostic	    tdel $i $j  $name < $name
136*50987Sbostic	end
137*50987Sbostic	set i = 4096
138*50987Sbostic	foreach j ( 1 2 4 )
139*50987Sbostic	    echo "$i"_"$j"
140*50987Sbostic	    tcreat3 $i $j 600 $name < $name
141*50987Sbostic	    tread2 65536 < $name
142*50987Sbostic	    tverify $name < $name
143*50987Sbostic	    tseq > /dev/null
144*50987Sbostic	    tdel $i $j  $name < $name
145*50987Sbostic	end
146*50987Sbostic	set i = 8192
147*50987Sbostic	foreach j ( 2 4 8 )
148*50987Sbostic	    echo "$i"_"$j"
149*50987Sbostic	    tcreat3 $i $j 600 $name < $name
150*50987Sbostic	    tread2 65536 < $name
151*50987Sbostic	    tverify $name < $name
152*50987Sbostic	    tseq > /dev/null
153*50987Sbostic	    tdel $i $j  $name < $name
154*50987Sbostic	end
155*50987Sbosticdriver2
156