mariadb/bdb/test/byteorder.tcl

35 lines
1.1 KiB
Tcl
Raw Normal View History

2001-03-04 19:42:05 -05:00
# See the file LICENSE for redistribution information.
#
2002-10-30 15:57:05 +04:00
# Copyright (c) 1996-2002
2001-03-04 19:42:05 -05:00
# Sleepycat Software. All rights reserved.
#
2002-10-30 15:57:05 +04:00
# $Id: byteorder.tcl,v 11.12 2002/07/29 18:09:25 sue Exp $
2001-03-04 19:42:05 -05:00
#
# Byte Order Test
# Use existing tests and run with both byte orders.
proc byteorder { method {nentries 1000} } {
2002-10-30 15:57:05 +04:00
source ./include.tcl
2001-03-04 19:42:05 -05:00
puts "Byteorder: $method $nentries"
2002-10-30 15:57:05 +04:00
eval {test001 $method $nentries 0 "01" 0 -lorder 1234}
eval {verify_dir $testdir}
eval {test001 $method $nentries 0 "01" 0 -lorder 4321}
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test003 $method -lorder 1234}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test003 $method -lorder 4321}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test010 $method $nentries 5 10 -lorder 1234}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test010 $method $nentries 5 10 -lorder 4321}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test011 $method $nentries 5 11 -lorder 1234}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test011 $method $nentries 5 11 -lorder 4321}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test018 $method $nentries -lorder 1234}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
eval {test018 $method $nentries -lorder 4321}
2002-10-30 15:57:05 +04:00
eval {verify_dir $testdir}
2001-03-04 19:42:05 -05:00
}