3 # May you do good and not evil.
4 # May you find forgiveness for yourself and forgive others.
5 # May you share freely, never taking more than you give.
7 #***********************************************************************
8 # This file runs all tests.
10 # $Id: fts2.test,v 1.2 2008/07/23 18:17:32 drh Exp $
15 set l [lrange $l 1 end]
18 while {[set arg [lshift argv]] != ""} {
21 sqlite3_enable_shared_cache 1
27 set argv [linsert $argv 0 $arg]
33 set testdir [file dirname $argv0]
34 source $testdir/tester.tcl
35 # If SQLITE_ENABLE_FTS2 is defined, omit this file.
39 rename finish_test really_finish_test
40 proc finish_test {} {}
47 # Files to include in the test. If this list is empty then everything
48 # that is not in the EXCLUDE list is run.
53 foreach testfile [lsort -dictionary [glob $testdir/fts2*.test]] {
54 set tail [file tail $testfile]
55 if {[lsearch -exact $EXCLUDE $tail]>=0} continue
56 if {[llength $INCLUDE]>0 && [lsearch -exact $INCLUDE $tail]<0} continue
59 if {$sqlite_open_file_count>0} {
60 puts "$tail did not close all files: $sqlite_open_file_count"
62 set sqlite_open_file_count 0
66 set sqlite_open_file_count 0