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