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