2008-05-26 22:41:54 +04:00
|
|
|
#
|
|
|
|
# May you do good and not evil.
|
|
|
|
# May you find forgiveness for yourself and forgive others.
|
|
|
|
# May you share freely, never taking more than you give.
|
|
|
|
#
|
|
|
|
#***********************************************************************
|
|
|
|
# This file runs all rtree related tests.
|
|
|
|
#
|
2009-05-25 18:17:35 +04:00
|
|
|
# $Id: rtree.test,v 1.3 2009/05/25 14:17:35 drh Exp $
|
2008-05-26 22:41:54 +04:00
|
|
|
|
2008-06-23 19:55:52 +04:00
|
|
|
set testdir [file dirname $argv0]
|
2008-05-26 22:41:54 +04:00
|
|
|
source $testdir/tester.tcl
|
2008-06-23 19:55:52 +04:00
|
|
|
|
|
|
|
rename finish_test rtree_finish_test
|
2008-05-26 22:41:54 +04:00
|
|
|
proc finish_test {} {}
|
|
|
|
|
2008-06-23 19:55:52 +04:00
|
|
|
set RTREE_EXCLUDE { }
|
2010-06-07 21:47:26 +04:00
|
|
|
if {[info exists G(isquick)] && $G(isquick)} {
|
2008-06-23 19:55:52 +04:00
|
|
|
set RTREE_EXCLUDE rtree3.test
|
2008-05-26 22:41:54 +04:00
|
|
|
}
|
|
|
|
|
2008-06-23 19:55:52 +04:00
|
|
|
set rtreedir [file join $testdir .. ext rtree]
|
2008-05-26 22:41:54 +04:00
|
|
|
|
2009-05-25 18:17:35 +04:00
|
|
|
foreach testfile [lsort -dictionary [glob -nocomplain $rtreedir/*.test]] {
|
2008-05-26 22:41:54 +04:00
|
|
|
set tail [file tail $testfile]
|
2008-06-23 19:55:52 +04:00
|
|
|
if {[lsearch -exact $RTREE_EXCLUDE $tail]>=0} continue
|
2008-05-26 22:41:54 +04:00
|
|
|
source $testfile
|
|
|
|
catch {db close}
|
|
|
|
if {$sqlite_open_file_count>0} {
|
|
|
|
puts "$tail did not close all files: $sqlite_open_file_count"
|
2010-06-07 18:28:16 +04:00
|
|
|
fail_test $tail
|
2008-05-26 22:41:54 +04:00
|
|
|
set sqlite_open_file_count 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
set sqlite_open_file_count 0
|
2008-06-23 19:55:52 +04:00
|
|
|
rtree_finish_test
|
|
|
|
rename finish_test {}
|
|
|
|
rename rtree_finish_test finish_test
|