File: byteorder.tcl

package info (click to toggle)
db 2%3A2.4.14-2.7.7.1.c
  • links: PTS
  • area: main
  • in suites: potato
  • size: 12,716 kB
  • ctags: 9,382
  • sloc: ansic: 35,556; tcl: 8,564; cpp: 4,890; sh: 2,075; makefile: 1,723; java: 1,632; sed: 419; awk: 153; asm: 41
file content (25 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# See the file LICENSE for redistribution information.
#
# Copyright (c) 1996, 1997, 1998
#	Sleepycat Software.  All rights reserved.
#
#	@(#)byteorder.tcl	8.4 (Sleepycat) 4/10/98
#
# Byte Order Test
# Use existing tests and run with both byte orders.
proc byteorder { method {nentries 1000} } {
	set opts [convert_args $method ""]
	set method [convert_method $method]
	puts "Byteorder: $method $nentries"

	test001 $method $nentries -order 1234 $opts
	test001 $method $nentries -order 4321 $opts
	test003 $method -order 1234 $opts
	test003 $method -order 4321 $opts
	test010 $method $nentries 5 10 -order 1234 $opts
	test010 $method $nentries 5 10 -order 4321 $opts
	test011 $method $nentries 5 11 -order 1234 $opts
	test011 $method $nentries 5 11 -order 4321 $opts
	test018 $method $nentries -order 1234 $opts
	test018 $method $nentries -order 4321 $opts
}