2N/A#pragma ident "%Z%%M% %I% %E% SMI"
2N/A# The author disclaims copyright to this source code. In place of
2N/A# a legal notice, here is a blessing:
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# This file runs all tests.
2N/Aset testdir [file dirname $argv0]
2N/Arename finish_test really_finish_test
2N/Aproc finish_test {} {}
2N/Aif {[sqlite -has-codec]} {
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 if {$sqlite_open_file_count>0} {
2N/A puts "$tail did not close all files: $sqlite_open_file_count"
2N/A lappend ::failList $tail
2N/Aset sqlite_open_file_count 0