quick.test revision 2
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A
2N/A# 2001 September 15
2N/A#
2N/A# The author disclaims copyright to this source code. In place of
2N/A# a legal notice, here is a blessing:
2N/A#
2N/A# May you do good and not evil.
2N/A# May you find forgiveness for yourself and forgive others.
2N/A# May you share freely, never taking more than you give.
2N/A#
2N/A#***********************************************************************
2N/A# This file runs all tests.
2N/A#
2N/A# $Id: quick.test,v 1.6 2004/02/11 02:18:07 drh Exp $
2N/A
2N/Aset testdir [file dirname $argv0]
2N/Asource $testdir/tester.tcl
2N/Arename finish_test really_finish_test
2N/Aproc finish_test {} {}
2N/Aset ISQUICK 1
2N/A
2N/Aset EXCLUDE {
2N/A all.test
2N/A quick.test
2N/A btree2.test
2N/A malloc.test
2N/A memleak.test
2N/A misuse.test
2N/A}
2N/A
2N/Aif {[sqlite -has-codec]} {
2N/A lappend EXCLUDE \
2N/A attach.test \
2N/A attach2.test \
2N/A auth.test \
2N/A format3.test \
2N/A version.test
2N/A}
2N/A
2N/Aforeach testfile [lsort -dictionary [glob $testdir/*.test]] {
2N/A set tail [file tail $testfile]
2N/A if {[lsearch -exact $EXCLUDE $tail]>=0} continue
2N/A source $testfile
2N/A catch {db close}
2N/A if {$sqlite_open_file_count>0} {
2N/A puts "$tail did not close all files: $sqlite_open_file_count"
2N/A incr nErr
2N/A lappend ::failList $tail
2N/A }
2N/A}
2N/Asource $testdir/misuse.test
2N/A
2N/Aset sqlite_open_file_count 0
2N/Areally_finish_test