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-05-23 17:30:58 +04:00
|
|
|
# $Id: quick.test,v 1.18 2004/05/23 13:30:59 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
|
|
|
|
quick.test
|
|
|
|
btree2.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-05-13 15:34:16 +04:00
|
|
|
format3.test
|
2001-09-16 04:13:26 +04:00
|
|
|
}
|
|
|
|
|
2004-05-13 15:46:00 +04:00
|
|
|
lappend EXCLUDE interrupt.test ;# assert() fails in btree
|
2004-05-13 15:34:16 +04:00
|
|
|
lappend EXCLUDE ioerr.test ;# seg-faults (?)
|
|
|
|
lappend EXCLUDE memdb.test ;# fails - malformed database
|
|
|
|
|
2004-05-14 15:00:53 +04:00
|
|
|
lappend EXCLUDE printf.test ;# sqlite3_XX vs sqlite_XX problem
|
2004-05-13 15:34:16 +04:00
|
|
|
lappend EXCLUDE auth.test ;# Cannot attach empty databases.
|
|
|
|
lappend EXCLUDE tableapi.test ;# sqlite3_XX vs sqlite_XX problem
|
|
|
|
lappend EXCLUDE version.test ;# uses the btree_meta API (not updated)
|
|
|
|
|
2004-05-14 15:00:53 +04:00
|
|
|
# Some tests fail in these file as a result of the partial manifest types
|
|
|
|
# implementation.
|
2004-05-13 15:34:16 +04:00
|
|
|
lappend EXCLUDE capi2.test
|
2004-05-23 17:30:58 +04:00
|
|
|
lappend EXCLUDE enc2.test
|
2004-05-12 11:33:33 +04:00
|
|
|
|
|
|
|
|
2004-02-11 05:18:05 +03:00
|
|
|
if {[sqlite -has-codec]} {
|
|
|
|
lappend EXCLUDE \
|
|
|
|
attach.test \
|
|
|
|
attach2.test \
|
|
|
|
auth.test \
|
|
|
|
format3.test \
|
|
|
|
version.test
|
|
|
|
}
|
|
|
|
|
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-05-12 11:33:33 +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
|