sl@0: # 2001 September 15 sl@0: # sl@0: # The author disclaims copyright to this source code. In place of sl@0: # a legal notice, here is a blessing: sl@0: # sl@0: # May you do good and not evil. sl@0: # May you find forgiveness for yourself and forgive others. sl@0: # May you share freely, never taking more than you give. sl@0: # sl@0: #*********************************************************************** sl@0: # This file implements regression tests for SQLite library. The sl@0: # focus of this script is variable-length integer encoding scheme. sl@0: # sl@0: # $Id: varint.test,v 1.1 2004/05/18 15:57:42 drh Exp $ sl@0: sl@0: sl@0: set testdir [file dirname $argv0] sl@0: source $testdir/tester.tcl sl@0: sl@0: # Test reading and writing of varints. sl@0: # sl@0: set cnt 0 sl@0: foreach start {0 100 10000 1000000 0x10000000} { sl@0: foreach mult {1 0x10 0x100 0x1000 0x10000 0x100000 0x1000000 0x10000000} { sl@0: foreach incr {1 500 10000 50000000} { sl@0: incr cnt sl@0: do_test varint-1.$cnt { sl@0: btree_varint_test $start $mult 5000 $incr sl@0: } {} sl@0: } sl@0: } sl@0: }