2001-09-16 04:13:26 +04:00
|
|
|
# 2001 September 15
|
|
|
|
#
|
|
|
|
# The author disclaims copyright to this source code. In place of
|
|
|
|
# a legal notice, here is a blessing:
|
|
|
|
#
|
|
|
|
# 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 tests.
|
|
|
|
#
|
2004-11-13 16:19:56 +03:00
|
|
|
# $Id: quick.test,v 1.33 2004/11/13 13:19:56 danielk1977 Exp $
|
2001-09-16 04:13:26 +04:00
|
|
|
|
|
|
|
set testdir [file dirname $argv0]
|
|
|
|
source $testdir/tester.tcl
|
|
|
|
rename finish_test really_finish_test
|
|
|
|
proc finish_test {} {}
|
2002-07-07 20:52:46 +04:00
|
|
|
set ISQUICK 1
|
2001-09-16 04:13:26 +04:00
|
|
|
|
|
|
|
set EXCLUDE {
|
|
|
|
all.test
|
|
|
|
btree2.test
|
2004-09-02 18:57:08 +04:00
|
|
|
btree3.test
|
|
|
|
btree4.test
|
|
|
|
btree5.test
|
|
|
|
btree6.test
|
2004-08-30 20:52:17 +04:00
|
|
|
corrupt.test
|
|
|
|
crash.test
|
2001-10-22 06:58:08 +04:00
|
|
|
malloc.test
|
2002-08-24 22:24:51 +04:00
|
|
|
memleak.test
|
2003-02-17 01:21:32 +03:00
|
|
|
misuse.test
|
2004-08-30 20:52:17 +04:00
|
|
|
quick.test
|
2004-07-19 04:39:45 +04:00
|
|
|
utf16.test
|
2004-11-08 12:26:09 +03:00
|
|
|
autovacuum_crash.test
|
2004-11-13 16:19:56 +03:00
|
|
|
btree8.test
|
2001-09-16 04:13:26 +04:00
|
|
|
}
|
|
|
|
|
2004-06-19 04:16:31 +04:00
|
|
|
if {[sqlite3 -has-codec]} {
|
2004-07-22 19:02:25 +04:00
|
|
|
# lappend EXCLUDE \
|
|
|
|
# conflict.test
|
2004-02-11 05:18:05 +03:00
|
|
|
}
|
|
|
|
|
2001-09-16 04:13:26 +04:00
|
|
|
foreach testfile [lsort -dictionary [glob $testdir/*.test]] {
|
|
|
|
set tail [file tail $testfile]
|
|
|
|
if {[lsearch -exact $EXCLUDE $tail]>=0} continue
|
|
|
|
source $testfile
|
2003-02-17 01:21:32 +03:00
|
|
|
catch {db close}
|
|
|
|
if {$sqlite_open_file_count>0} {
|
|
|
|
puts "$tail did not close all files: $sqlite_open_file_count"
|
|
|
|
incr nErr
|
|
|
|
lappend ::failList $tail
|
|
|
|
}
|
2001-09-16 04:13:26 +04:00
|
|
|
}
|
2004-06-29 17:41:21 +04:00
|
|
|
source $testdir/misuse.test
|
2001-09-16 04:13:26 +04:00
|
|
|
|
2003-02-17 01:21:32 +03:00
|
|
|
set sqlite_open_file_count 0
|
2001-09-16 04:13:26 +04:00
|
|
|
really_finish_test
|