| OLD | NEW |
| (Empty) |
| 1 # | |
| 2 # May you do good and not evil. | |
| 3 # May you find forgiveness for yourself and forgive others. | |
| 4 # May you share freely, never taking more than you give. | |
| 5 # | |
| 6 #*********************************************************************** | |
| 7 # This file runs the fts tests. | |
| 8 # | |
| 9 # $Id$ | |
| 10 | |
| 11 proc lshift {lvar} { | |
| 12 upvar $lvar l | |
| 13 set ret [lindex $l 0] | |
| 14 set l [lrange $l 1 end] | |
| 15 return $ret | |
| 16 } | |
| 17 while {[set arg [lshift argv]] != ""} { | |
| 18 switch -- $arg { | |
| 19 -sharedpagercache { | |
| 20 sqlite3_enable_shared_cache 1 | |
| 21 } | |
| 22 default { | |
| 23 set argv [linsert $argv 0 $arg] | |
| 24 break | |
| 25 } | |
| 26 } | |
| 27 } | |
| 28 | |
| 29 set testdir [file dirname $argv0] | |
| 30 source $testdir/tester.tcl | |
| 31 rename finish_test really_finish_test | |
| 32 proc finish_test {} {} | |
| 33 set ISQUICK 1 | |
| 34 | |
| 35 set EXCLUDE { | |
| 36 fts.test | |
| 37 fts1.test | |
| 38 fts2.test | |
| 39 } | |
| 40 | |
| 41 if {[sqlite3 -has-codec]} { | |
| 42 # lappend EXCLUDE \ | |
| 43 # conflict.test | |
| 44 } | |
| 45 | |
| 46 foreach testfile [lsort -dictionary [glob $testdir/fts*.test]] { | |
| 47 set tail [file tail $testfile] | |
| 48 puts "test: $tail" | |
| 49 if {[lsearch -exact $EXCLUDE $tail]>=0} continue | |
| 50 source $testfile | |
| 51 catch {db close} | |
| 52 if {$sqlite_open_file_count>0} { | |
| 53 puts "$tail did not close all files: $sqlite_open_file_count" | |
| 54 incr nErr | |
| 55 lappend ::failList $tail | |
| 56 } | |
| 57 } | |
| 58 source $testdir/misuse.test | |
| 59 | |
| 60 set sqlite_open_file_count 0 | |
| 61 really_finish_test | |
| OLD | NEW |