sl@0
|
1 |
#
|
sl@0
|
2 |
# May you do good and not evil.
|
sl@0
|
3 |
# May you find forgiveness for yourself and forgive others.
|
sl@0
|
4 |
# May you share freely, never taking more than you give.
|
sl@0
|
5 |
#
|
sl@0
|
6 |
#***********************************************************************
|
sl@0
|
7 |
# This file runs all rtree related tests.
|
sl@0
|
8 |
#
|
sl@0
|
9 |
# $Id: rtree.test,v 1.2 2008/07/12 14:52:20 drh Exp $
|
sl@0
|
10 |
|
sl@0
|
11 |
set testdir [file dirname $argv0]
|
sl@0
|
12 |
source $testdir/tester.tcl
|
sl@0
|
13 |
|
sl@0
|
14 |
rename finish_test rtree_finish_test
|
sl@0
|
15 |
proc finish_test {} {}
|
sl@0
|
16 |
|
sl@0
|
17 |
set RTREE_EXCLUDE { }
|
sl@0
|
18 |
if {[info exists ISQUICK] && $ISQUICK} {
|
sl@0
|
19 |
set RTREE_EXCLUDE rtree3.test
|
sl@0
|
20 |
}
|
sl@0
|
21 |
|
sl@0
|
22 |
set rtreedir [file join $testdir .. ext rtree]
|
sl@0
|
23 |
|
sl@0
|
24 |
foreach testfile [lsort -dictionary [glob $rtreedir/*.test]] {
|
sl@0
|
25 |
set tail [file tail $testfile]
|
sl@0
|
26 |
if {[lsearch -exact $RTREE_EXCLUDE $tail]>=0} continue
|
sl@0
|
27 |
source $testfile
|
sl@0
|
28 |
catch {db close}
|
sl@0
|
29 |
if {$sqlite_open_file_count>0} {
|
sl@0
|
30 |
puts "$tail did not close all files: $sqlite_open_file_count"
|
sl@0
|
31 |
incr nErr
|
sl@0
|
32 |
lappend ::failList $tail
|
sl@0
|
33 |
set sqlite_open_file_count 0
|
sl@0
|
34 |
}
|
sl@0
|
35 |
}
|
sl@0
|
36 |
|
sl@0
|
37 |
set sqlite_open_file_count 0
|
sl@0
|
38 |
rtree_finish_test
|
sl@0
|
39 |
rename finish_test {}
|
sl@0
|
40 |
rename rtree_finish_test finish_test
|