2014-12-23 22:40:51 +03:00
|
|
|
#!/usr/bin/tclsh
|
|
|
|
#
|
2010-09-06 22:44:14 +04:00
|
|
|
# Documentation for this script. This may be output to stderr
|
|
|
|
# if the script is invoked incorrectly. See the [process_options]
|
|
|
|
# proc below.
|
|
|
|
#
|
|
|
|
set ::USAGE_MESSAGE {
|
|
|
|
This Tcl script is used to test the various configurations required
|
2014-12-23 23:22:57 +03:00
|
|
|
before releasing a new version. Supported command line options (all
|
2010-09-06 22:44:14 +04:00
|
|
|
optional) are:
|
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
--buildonly (Just build testfixture - do not run)
|
2016-09-09 15:29:57 +03:00
|
|
|
--config CONFIGNAME (Run only CONFIGNAME)
|
2014-12-23 23:22:57 +03:00
|
|
|
--dryrun (Print what would have happened)
|
2016-09-09 15:29:57 +03:00
|
|
|
-f|--force (Run even if uncommitted changes)
|
2014-12-23 22:40:51 +03:00
|
|
|
--info (Show diagnostic info)
|
2015-11-02 23:28:48 +03:00
|
|
|
--jobs N (Use N processes - default 1)
|
2016-09-12 12:28:21 +03:00
|
|
|
--keep (Delete no files after each test run)
|
2016-09-09 15:29:57 +03:00
|
|
|
--msvc (Use MSVC as the compiler)
|
|
|
|
--platform PLATFORM (see below)
|
2015-11-03 18:39:29 +03:00
|
|
|
--progress (Show progress messages)
|
2016-09-09 15:29:57 +03:00
|
|
|
--quick (Run "veryquick.test" only)
|
|
|
|
--veryquick (Run "make smoketest" only)
|
|
|
|
--with-tcl=DIR (Use TCL build at DIR)
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
The script determines the default value for --platform using the
|
2015-04-04 03:02:07 +03:00
|
|
|
$tcl_platform(os) and $tcl_platform(machine) variables. Supported
|
|
|
|
platforms are "Linux-x86", "Linux-x86_64", "Darwin-i386",
|
|
|
|
"Darwin-x86_64", "Windows NT-intel", and "Windows NT-amd64".
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
Every test begins with a fresh run of the configure script at the top
|
|
|
|
of the SQLite source tree.
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
|
2015-11-03 18:16:21 +03:00
|
|
|
# Return a timestamp of the form HH:MM:SS
|
|
|
|
#
|
|
|
|
proc now {} {
|
|
|
|
return [clock format [clock seconds] -format %H:%M:%S]
|
|
|
|
}
|
|
|
|
|
2015-01-10 18:21:26 +03:00
|
|
|
# Omit comments (text between # and \n) in a long multi-line string.
|
|
|
|
#
|
|
|
|
proc strip_comments {in} {
|
|
|
|
regsub -all {#[^\n]*\n} $in {} out
|
|
|
|
return $out
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
|
2015-01-10 18:21:26 +03:00
|
|
|
array set ::Configs [strip_comments {
|
2010-09-06 22:44:14 +04:00
|
|
|
"Default" {
|
|
|
|
-O2
|
2015-01-08 05:15:11 +03:00
|
|
|
--disable-amalgamation --disable-shared
|
2016-05-03 16:14:18 +03:00
|
|
|
--enable-session
|
2019-02-06 18:23:43 +03:00
|
|
|
-DSQLITE_ENABLE_DESERIALIZE
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2015-01-02 02:02:01 +03:00
|
|
|
"Sanitize" {
|
2015-01-01 22:53:10 +03:00
|
|
|
CC=clang -fsanitize=undefined
|
2015-01-02 02:02:01 +03:00
|
|
|
-DSQLITE_ENABLE_STAT4
|
2016-05-03 16:14:18 +03:00
|
|
|
--enable-session
|
2011-04-06 16:37:09 +04:00
|
|
|
}
|
2016-08-01 18:00:00 +03:00
|
|
|
"Stdcall" {
|
|
|
|
-DUSE_STDCALL=1
|
|
|
|
-O2
|
|
|
|
}
|
2015-01-10 19:49:23 +03:00
|
|
|
"Have-Not" {
|
|
|
|
# The "Have-Not" configuration sets all possible -UHAVE_feature options
|
|
|
|
# in order to verify that the code works even on platforms that lack
|
|
|
|
# these support services.
|
|
|
|
-DHAVE_FDATASYNC=0
|
|
|
|
-DHAVE_GMTIME_R=0
|
2015-01-10 21:22:06 +03:00
|
|
|
-DHAVE_ISNAN=0
|
2015-01-10 19:49:23 +03:00
|
|
|
-DHAVE_LOCALTIME_R=0
|
|
|
|
-DHAVE_LOCALTIME_S=0
|
|
|
|
-DHAVE_MALLOC_USABLE_SIZE=0
|
|
|
|
-DHAVE_STRCHRNUL=0
|
|
|
|
-DHAVE_USLEEP=0
|
|
|
|
-DHAVE_UTIME=0
|
2011-04-06 16:37:09 +04:00
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
"Unlock-Notify" {
|
|
|
|
-O2
|
|
|
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY
|
|
|
|
-DSQLITE_THREADSAFE
|
|
|
|
-DSQLITE_TCL_DEFAULT_FULLMUTEX=1
|
2018-11-28 11:09:08 +03:00
|
|
|
}
|
|
|
|
"User-Auth" {
|
|
|
|
-O2
|
2018-09-25 16:51:31 +03:00
|
|
|
-DSQLITE_USER_AUTHENTICATION=1
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
"Secure-Delete" {
|
|
|
|
-O2
|
|
|
|
-DSQLITE_SECURE_DELETE=1
|
|
|
|
-DSQLITE_SOUNDEX=1
|
|
|
|
}
|
|
|
|
"Update-Delete-Limit" {
|
|
|
|
-O2
|
|
|
|
-DSQLITE_DEFAULT_FILE_FORMAT=4
|
|
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
|
2015-01-09 23:00:21 +03:00
|
|
|
-DSQLITE_ENABLE_STMT_SCANSTATUS
|
2016-01-04 04:08:50 +03:00
|
|
|
-DSQLITE_LIKE_DOESNT_MATCH_BLOBS
|
|
|
|
-DSQLITE_ENABLE_CURSOR_HINTS
|
2015-10-09 15:48:33 +03:00
|
|
|
--enable-json1
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2012-12-10 14:22:48 +04:00
|
|
|
"Check-Symbols" {
|
|
|
|
-DSQLITE_MEMDEBUG=1
|
|
|
|
-DSQLITE_ENABLE_FTS3_PARENTHESIS=1
|
|
|
|
-DSQLITE_ENABLE_FTS3=1
|
|
|
|
-DSQLITE_ENABLE_RTREE=1
|
|
|
|
-DSQLITE_ENABLE_MEMSYS5=1
|
|
|
|
-DSQLITE_ENABLE_MEMSYS3=1
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=1
|
|
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
|
|
|
|
-DSQLITE_SECURE_DELETE=1
|
|
|
|
-DSQLITE_SOUNDEX=1
|
|
|
|
-DSQLITE_ENABLE_ATOMIC_WRITE=1
|
|
|
|
-DSQLITE_ENABLE_MEMORY_MANAGEMENT=1
|
|
|
|
-DSQLITE_ENABLE_OVERSIZE_CELL_CHECK=1
|
2015-01-02 02:02:01 +03:00
|
|
|
-DSQLITE_ENABLE_STAT4
|
2015-01-09 23:00:21 +03:00
|
|
|
-DSQLITE_ENABLE_STMT_SCANSTATUS
|
2016-05-03 16:14:18 +03:00
|
|
|
--enable-json1 --enable-fts5 --enable-session
|
2012-12-10 14:22:48 +04:00
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
"Debug-One" {
|
2015-01-07 17:41:18 +03:00
|
|
|
--disable-shared
|
2017-09-18 03:18:31 +03:00
|
|
|
-O2 -funsigned-char
|
2010-09-06 22:44:14 +04:00
|
|
|
-DSQLITE_DEBUG=1
|
|
|
|
-DSQLITE_MEMDEBUG=1
|
|
|
|
-DSQLITE_MUTEX_NOOP=1
|
|
|
|
-DSQLITE_TCL_DEFAULT_FULLMUTEX=1
|
|
|
|
-DSQLITE_ENABLE_FTS3=1
|
|
|
|
-DSQLITE_ENABLE_RTREE=1
|
|
|
|
-DSQLITE_ENABLE_MEMSYS5=1
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA=1
|
2015-01-02 02:02:01 +03:00
|
|
|
-DSQLITE_ENABLE_STAT4
|
2015-11-19 16:53:57 +03:00
|
|
|
-DSQLITE_ENABLE_HIDDEN_COLUMNS
|
2015-01-08 05:15:11 +03:00
|
|
|
-DSQLITE_MAX_ATTACHED=125
|
2017-10-03 00:29:51 +03:00
|
|
|
-DSQLITE_MUTATION_TEST
|
2018-06-13 14:11:13 +03:00
|
|
|
--enable-fts5 --enable-json1
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2015-04-25 16:39:29 +03:00
|
|
|
"Fast-One" {
|
|
|
|
-O6
|
|
|
|
-DSQLITE_ENABLE_FTS4=1
|
|
|
|
-DSQLITE_ENABLE_RTREE=1
|
|
|
|
-DSQLITE_ENABLE_STAT4
|
2015-07-23 23:44:49 +03:00
|
|
|
-DSQLITE_ENABLE_RBU
|
2015-01-08 05:15:11 +03:00
|
|
|
-DSQLITE_MAX_ATTACHED=125
|
2015-11-06 23:04:08 +03:00
|
|
|
-DLONGDOUBLE_TYPE=double
|
2016-05-03 16:14:18 +03:00
|
|
|
--enable-session
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
"Device-One" {
|
|
|
|
-O2
|
|
|
|
-DSQLITE_DEBUG=1
|
|
|
|
-DSQLITE_DEFAULT_AUTOVACUUM=1
|
|
|
|
-DSQLITE_DEFAULT_CACHE_SIZE=64
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_DEFAULT_PAGE_SIZE=1024
|
2010-09-06 22:44:14 +04:00
|
|
|
-DSQLITE_DEFAULT_TEMP_CACHE_SIZE=32
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_DISABLE_LFS=1
|
|
|
|
-DSQLITE_ENABLE_ATOMIC_WRITE=1
|
|
|
|
-DSQLITE_ENABLE_IOTRACE=1
|
|
|
|
-DSQLITE_ENABLE_MEMORY_MANAGEMENT=1
|
|
|
|
-DSQLITE_MAX_PAGE_SIZE=4096
|
2010-09-06 22:44:14 +04:00
|
|
|
-DSQLITE_OMIT_LOAD_EXTENSION=1
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_OMIT_PROGRESS_CALLBACK=1
|
2010-09-06 22:44:14 +04:00
|
|
|
-DSQLITE_OMIT_VIRTUALTABLE=1
|
2015-11-19 16:53:57 +03:00
|
|
|
-DSQLITE_ENABLE_HIDDEN_COLUMNS
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_TEMP_STORE=3
|
2015-10-09 16:29:27 +03:00
|
|
|
--enable-json1
|
2010-09-13 15:29:02 +04:00
|
|
|
}
|
|
|
|
"Device-Two" {
|
|
|
|
-DSQLITE_4_BYTE_ALIGNED_MALLOC=1
|
|
|
|
-DSQLITE_DEFAULT_AUTOVACUUM=1
|
|
|
|
-DSQLITE_DEFAULT_CACHE_SIZE=1000
|
|
|
|
-DSQLITE_DEFAULT_LOCKING_MODE=0
|
|
|
|
-DSQLITE_DEFAULT_PAGE_SIZE=1024
|
|
|
|
-DSQLITE_DEFAULT_TEMP_CACHE_SIZE=1000
|
|
|
|
-DSQLITE_DISABLE_LFS=1
|
|
|
|
-DSQLITE_ENABLE_FTS3=1
|
|
|
|
-DSQLITE_ENABLE_MEMORY_MANAGEMENT=1
|
|
|
|
-DSQLITE_ENABLE_RTREE=1
|
|
|
|
-DSQLITE_MAX_COMPOUND_SELECT=50
|
|
|
|
-DSQLITE_MAX_PAGE_SIZE=32768
|
|
|
|
-DSQLITE_OMIT_TRACE=1
|
|
|
|
-DSQLITE_TEMP_STORE=3
|
|
|
|
-DSQLITE_THREADSAFE=2
|
2018-03-28 23:29:04 +03:00
|
|
|
-DSQLITE_ENABLE_DESERIALIZE=1
|
2016-05-03 16:14:18 +03:00
|
|
|
--enable-json1 --enable-fts5 --enable-session
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
"Locking-Style" {
|
|
|
|
-O2
|
|
|
|
-DSQLITE_ENABLE_LOCKING_STYLE=1
|
|
|
|
}
|
2016-03-18 02:00:42 +03:00
|
|
|
"Apple" {
|
2017-05-23 22:35:20 +03:00
|
|
|
-Os
|
2016-03-18 02:00:42 +03:00
|
|
|
-DHAVE_GMTIME_R=1
|
|
|
|
-DHAVE_ISNAN=1
|
|
|
|
-DHAVE_LOCALTIME_R=1
|
|
|
|
-DHAVE_PREAD=1
|
|
|
|
-DHAVE_PWRITE=1
|
|
|
|
-DHAVE_USLEEP=1
|
|
|
|
-DHAVE_USLEEP=1
|
|
|
|
-DHAVE_UTIME=1
|
|
|
|
-DSQLITE_DEFAULT_CACHE_SIZE=1000
|
|
|
|
-DSQLITE_DEFAULT_CKPTFULLFSYNC=1
|
|
|
|
-DSQLITE_DEFAULT_MEMSTATUS=1
|
|
|
|
-DSQLITE_DEFAULT_PAGE_SIZE=1024
|
|
|
|
-DSQLITE_DISABLE_PAGECACHE_OVERFLOW_STATS=1
|
|
|
|
-DSQLITE_ENABLE_API_ARMOR=1
|
|
|
|
-DSQLITE_ENABLE_AUTO_PROFILE=1
|
|
|
|
-DSQLITE_ENABLE_FLOCKTIMEOUT=1
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_ENABLE_FTS3=1
|
|
|
|
-DSQLITE_ENABLE_FTS3_PARENTHESIS=1
|
2016-03-18 02:00:42 +03:00
|
|
|
-DSQLITE_ENABLE_FTS3_TOKENIZER=1
|
|
|
|
if:os=="Darwin" -DSQLITE_ENABLE_LOCKING_STYLE=1
|
|
|
|
-DSQLITE_ENABLE_PERSIST_WAL=1
|
|
|
|
-DSQLITE_ENABLE_PURGEABLE_PCACHE=1
|
|
|
|
-DSQLITE_ENABLE_RTREE=1
|
|
|
|
-DSQLITE_ENABLE_SNAPSHOT=1
|
|
|
|
# -DSQLITE_ENABLE_SQLLOG=1
|
|
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_MAX_LENGTH=2147483645
|
|
|
|
-DSQLITE_MAX_VARIABLE_NUMBER=500000
|
2016-03-18 02:16:37 +03:00
|
|
|
# -DSQLITE_MEMDEBUG=1
|
2016-03-18 02:00:42 +03:00
|
|
|
-DSQLITE_NO_SYNC=1
|
|
|
|
-DSQLITE_OMIT_AUTORESET=1
|
|
|
|
-DSQLITE_OMIT_LOAD_EXTENSION=1
|
2010-09-13 15:29:02 +04:00
|
|
|
-DSQLITE_PREFER_PROXY_LOCKING=1
|
2016-03-18 02:00:42 +03:00
|
|
|
-DSQLITE_SERIES_CONSTRAINT_VERIFY=1
|
|
|
|
-DSQLITE_THREADSAFE=2
|
|
|
|
-DSQLITE_USE_URI=1
|
|
|
|
-DSQLITE_WRITE_WALFRAME_PREBUFFERED=1
|
|
|
|
-DUSE_GUARDED_FD=1
|
|
|
|
-DUSE_PREAD=1
|
2015-10-09 15:48:33 +03:00
|
|
|
--enable-json1 --enable-fts5
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
"Extra-Robustness" {
|
|
|
|
-DSQLITE_ENABLE_OVERSIZE_CELL_CHECK=1
|
2011-04-06 16:37:09 +04:00
|
|
|
-DSQLITE_MAX_ATTACHED=62
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2012-08-20 21:24:48 +04:00
|
|
|
"Devkit" {
|
|
|
|
-DSQLITE_DEFAULT_FILE_FORMAT=4
|
|
|
|
-DSQLITE_MAX_ATTACHED=30
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA
|
|
|
|
-DSQLITE_ENABLE_FTS4
|
2016-03-01 19:02:57 +03:00
|
|
|
-DSQLITE_ENABLE_FTS5
|
2012-08-20 21:24:48 +04:00
|
|
|
-DSQLITE_ENABLE_FTS4_PARENTHESIS
|
|
|
|
-DSQLITE_DISABLE_FTS4_DEFERRED
|
|
|
|
-DSQLITE_ENABLE_RTREE
|
2015-10-09 15:48:33 +03:00
|
|
|
--enable-json1 --enable-fts5
|
2012-08-20 21:24:48 +04:00
|
|
|
}
|
2014-08-12 18:06:13 +04:00
|
|
|
"No-lookaside" {
|
|
|
|
-DSQLITE_TEST_REALLOC_STRESS=1
|
|
|
|
-DSQLITE_OMIT_LOOKASIDE=1
|
|
|
|
-DHAVE_USLEEP=1
|
|
|
|
}
|
2015-01-07 17:09:41 +03:00
|
|
|
"Valgrind" {
|
|
|
|
-DSQLITE_ENABLE_STAT4
|
|
|
|
-DSQLITE_ENABLE_FTS4
|
|
|
|
-DSQLITE_ENABLE_RTREE
|
2015-11-19 16:53:57 +03:00
|
|
|
-DSQLITE_ENABLE_HIDDEN_COLUMNS
|
2015-10-09 15:48:33 +03:00
|
|
|
--enable-json1
|
2015-01-07 17:09:41 +03:00
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2015-01-10 18:21:26 +03:00
|
|
|
# The next group of configurations are used only by the
|
|
|
|
# Failure-Detection platform. They are all the same, but we need
|
|
|
|
# different names for them all so that they results appear in separate
|
|
|
|
# subdirectories.
|
|
|
|
#
|
2015-01-08 05:15:11 +03:00
|
|
|
Fail0 {-O0}
|
|
|
|
Fail2 {-O0}
|
|
|
|
Fail3 {-O0}
|
2015-01-10 00:54:58 +03:00
|
|
|
Fail4 {-O0}
|
2015-04-24 19:53:03 +03:00
|
|
|
FuzzFail1 {-O0}
|
|
|
|
FuzzFail2 {-O0}
|
2015-01-10 18:21:26 +03:00
|
|
|
}]
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2015-01-10 18:21:26 +03:00
|
|
|
array set ::Platforms [strip_comments {
|
2010-09-06 22:44:14 +04:00
|
|
|
Linux-x86_64 {
|
2012-12-10 14:22:48 +04:00
|
|
|
"Check-Symbols" checksymbols
|
2018-09-13 20:11:51 +03:00
|
|
|
"Fast-One" "fuzztest test"
|
2014-12-30 23:40:32 +03:00
|
|
|
"Debug-One" "mptest test"
|
2015-01-10 19:49:23 +03:00
|
|
|
"Have-Not" test
|
2010-09-06 22:44:14 +04:00
|
|
|
"Secure-Delete" test
|
|
|
|
"Unlock-Notify" "QUICKTEST_INCLUDE=notify2.test test"
|
2018-11-28 11:09:08 +03:00
|
|
|
"User-Auth" tcltest
|
2010-09-06 22:44:14 +04:00
|
|
|
"Update-Delete-Limit" test
|
|
|
|
"Extra-Robustness" test
|
2019-07-04 19:05:26 +03:00
|
|
|
"Device-Two" "threadtest test"
|
2014-08-12 18:06:13 +04:00
|
|
|
"No-lookaside" test
|
2014-10-15 19:28:27 +04:00
|
|
|
"Devkit" test
|
2016-03-18 02:00:42 +03:00
|
|
|
"Apple" test
|
2015-01-07 17:09:41 +03:00
|
|
|
"Sanitize" {QUICKTEST_OMIT=func4.test,nan.test test}
|
2010-09-13 15:29:02 +04:00
|
|
|
"Device-One" fulltest
|
2015-11-04 19:34:58 +03:00
|
|
|
"Default" "threadtest fulltest"
|
|
|
|
"Valgrind" valgrindtest
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
Linux-i686 {
|
2012-08-20 21:24:48 +04:00
|
|
|
"Devkit" test
|
2015-01-10 19:49:23 +03:00
|
|
|
"Have-Not" test
|
2010-09-06 22:44:14 +04:00
|
|
|
"Unlock-Notify" "QUICKTEST_INCLUDE=notify2.test test"
|
2010-09-13 15:29:02 +04:00
|
|
|
"Device-One" test
|
2010-09-13 16:15:36 +04:00
|
|
|
"Device-Two" test
|
|
|
|
"Default" "threadtest fulltest"
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
Darwin-i386 {
|
2014-12-30 23:40:32 +03:00
|
|
|
"Locking-Style" "mptest test"
|
2015-01-10 19:49:23 +03:00
|
|
|
"Have-Not" test
|
2016-03-18 02:00:42 +03:00
|
|
|
"Apple" "threadtest fulltest"
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2014-12-31 21:55:09 +03:00
|
|
|
Darwin-x86_64 {
|
|
|
|
"Locking-Style" "mptest test"
|
2015-01-10 19:49:23 +03:00
|
|
|
"Have-Not" test
|
2016-03-18 02:00:42 +03:00
|
|
|
"Apple" "threadtest fulltest"
|
2014-12-31 21:55:09 +03:00
|
|
|
}
|
2014-12-23 23:22:57 +03:00
|
|
|
"Windows NT-intel" {
|
2016-08-01 18:00:00 +03:00
|
|
|
"Stdcall" test
|
2015-01-10 19:49:23 +03:00
|
|
|
"Have-Not" test
|
2015-11-04 19:34:58 +03:00
|
|
|
"Default" "mptest fulltestonly"
|
2014-12-23 23:22:57 +03:00
|
|
|
}
|
2015-04-04 03:02:07 +03:00
|
|
|
"Windows NT-amd64" {
|
2016-08-01 18:00:00 +03:00
|
|
|
"Stdcall" test
|
2015-04-04 03:02:07 +03:00
|
|
|
"Have-Not" test
|
2015-11-04 19:34:58 +03:00
|
|
|
"Default" "mptest fulltestonly"
|
2015-04-04 03:02:07 +03:00
|
|
|
}
|
2015-01-10 18:21:26 +03:00
|
|
|
|
|
|
|
# The Failure-Detection platform runs various tests that deliberately
|
|
|
|
# fail. This is used as a test of this script to verify that this script
|
|
|
|
# correctly identifies failures.
|
|
|
|
#
|
2015-01-08 05:15:11 +03:00
|
|
|
Failure-Detection {
|
|
|
|
Fail0 "TEST_FAILURE=0 test"
|
|
|
|
Sanitize "TEST_FAILURE=1 test"
|
|
|
|
Fail2 "TEST_FAILURE=2 valgrindtest"
|
|
|
|
Fail3 "TEST_FAILURE=3 valgrindtest"
|
2015-01-10 00:54:58 +03:00
|
|
|
Fail4 "TEST_FAILURE=4 test"
|
2015-04-24 19:53:03 +03:00
|
|
|
FuzzFail1 "TEST_FAILURE=5 test"
|
|
|
|
FuzzFail2 "TEST_FAILURE=5 valgrindtest"
|
2015-01-08 05:15:11 +03:00
|
|
|
}
|
2015-01-10 18:21:26 +03:00
|
|
|
}]
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2011-07-07 12:19:16 +04:00
|
|
|
|
2010-09-06 22:44:14 +04:00
|
|
|
# End of configuration section.
|
|
|
|
#########################################################################
|
|
|
|
#########################################################################
|
|
|
|
|
2015-11-03 02:29:58 +03:00
|
|
|
# Configuration verification: Check that each entry in the list of configs
|
2015-11-02 21:32:00 +03:00
|
|
|
# specified for each platforms exists.
|
|
|
|
#
|
2010-09-06 22:44:14 +04:00
|
|
|
foreach {key value} [array get ::Platforms] {
|
|
|
|
foreach {v t} $value {
|
|
|
|
if {0==[info exists ::Configs($v)]} {
|
|
|
|
puts stderr "No such configuration: \"$v\""
|
|
|
|
exit -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-13 15:52:34 +03:00
|
|
|
# Output log. Disabled for slave interpreters.
|
2015-08-14 15:53:37 +03:00
|
|
|
#
|
2015-11-13 15:52:34 +03:00
|
|
|
if {[lindex $argv end]!="--slave"} {
|
|
|
|
set LOG [open releasetest-out.txt w]
|
|
|
|
proc PUTS {txt} {
|
|
|
|
puts $txt
|
|
|
|
puts $::LOG $txt
|
|
|
|
flush $::LOG
|
|
|
|
}
|
|
|
|
proc PUTSNNL {txt} {
|
|
|
|
puts -nonewline $txt
|
|
|
|
puts -nonewline $::LOG $txt
|
|
|
|
flush $::LOG
|
|
|
|
}
|
|
|
|
proc PUTSERR {txt} {
|
|
|
|
puts stderr $txt
|
|
|
|
puts $::LOG $txt
|
|
|
|
flush $::LOG
|
|
|
|
}
|
|
|
|
puts $LOG "$argv0 $argv"
|
|
|
|
set tm0 [clock format [clock seconds] -format {%Y-%m-%d %H:%M:%S} -gmt 1]
|
|
|
|
puts $LOG "start-time: $tm0 UTC"
|
|
|
|
} else {
|
|
|
|
proc PUTS {txt} {
|
|
|
|
puts $txt
|
|
|
|
}
|
|
|
|
proc PUTSNNL {txt} {
|
|
|
|
puts -nonewline $txt
|
|
|
|
}
|
|
|
|
proc PUTSERR {txt} {
|
|
|
|
puts stderr $txt
|
2015-08-14 15:53:37 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-29 05:55:58 +03:00
|
|
|
# Open the file $logfile and look for a report on the number of errors
|
|
|
|
# and the number of test cases run. Add these values to the global
|
|
|
|
# $::NERRCASE and $::NTESTCASE variables.
|
|
|
|
#
|
|
|
|
# If any errors occur, then write into $errmsgVar the text of an appropriate
|
|
|
|
# one-line error message to show on the output.
|
|
|
|
#
|
|
|
|
proc count_tests_and_errors {logfile rcVar errmsgVar} {
|
2014-12-29 22:54:10 +03:00
|
|
|
if {$::DRYRUN} return
|
2014-12-29 05:55:58 +03:00
|
|
|
upvar 1 $rcVar rc $errmsgVar errmsg
|
|
|
|
set fd [open $logfile rb]
|
|
|
|
set seen 0
|
|
|
|
while {![eof $fd]} {
|
|
|
|
set line [gets $fd]
|
2014-12-30 23:40:32 +03:00
|
|
|
if {[regexp {(\d+) errors out of (\d+) tests} $line all nerr ntest]} {
|
2014-12-29 05:55:58 +03:00
|
|
|
incr ::NERRCASE $nerr
|
|
|
|
incr ::NTESTCASE $ntest
|
|
|
|
set seen 1
|
|
|
|
if {$nerr>0} {
|
|
|
|
set rc 1
|
|
|
|
set errmsg $line
|
|
|
|
}
|
|
|
|
}
|
2015-01-02 02:02:01 +03:00
|
|
|
if {[regexp {runtime error: +(.*)} $line all msg]} {
|
2015-07-29 23:24:39 +03:00
|
|
|
# skip over "value is outside range" errors
|
|
|
|
if {[regexp {value .* is outside the range of representable} $line]} {
|
|
|
|
# noop
|
2019-10-02 22:44:42 +03:00
|
|
|
} elseif {[regexp {overflow: .* cannot be represented} $line]} {
|
|
|
|
# noop
|
2015-07-29 23:24:39 +03:00
|
|
|
} else {
|
|
|
|
incr ::NERRCASE
|
|
|
|
if {$rc==0} {
|
|
|
|
set rc 1
|
|
|
|
set errmsg $msg
|
|
|
|
}
|
2015-01-02 02:02:01 +03:00
|
|
|
}
|
|
|
|
}
|
2015-04-04 03:02:07 +03:00
|
|
|
if {[regexp {fatal error +(.*)} $line all msg]} {
|
|
|
|
incr ::NERRCASE
|
|
|
|
if {$rc==0} {
|
|
|
|
set rc 1
|
|
|
|
set errmsg $msg
|
|
|
|
}
|
|
|
|
}
|
2015-01-07 17:09:41 +03:00
|
|
|
if {[regexp {ERROR SUMMARY: (\d+) errors.*} $line all cnt] && $cnt>0} {
|
|
|
|
incr ::NERRCASE
|
|
|
|
if {$rc==0} {
|
|
|
|
set rc 1
|
|
|
|
set errmsg $all
|
|
|
|
}
|
|
|
|
}
|
2015-01-08 04:05:42 +03:00
|
|
|
if {[regexp {^VERSION: 3\.\d+.\d+} $line]} {
|
|
|
|
set v [string range $line 9 end]
|
|
|
|
if {$::SQLITE_VERSION eq ""} {
|
|
|
|
set ::SQLITE_VERSION $v
|
|
|
|
} elseif {$::SQLITE_VERSION ne $v} {
|
|
|
|
set rc 1
|
|
|
|
set errmsg "version conflict: {$::SQLITE_VERSION} vs. {$v}"
|
|
|
|
}
|
|
|
|
}
|
2014-12-29 05:55:58 +03:00
|
|
|
}
|
|
|
|
close $fd
|
2015-04-04 03:02:07 +03:00
|
|
|
if {$::BUILDONLY} {
|
2015-11-03 18:39:29 +03:00
|
|
|
incr ::NTESTCASE
|
|
|
|
if {$rc!=0} {
|
2015-04-04 03:02:07 +03:00
|
|
|
set errmsg "Build failed"
|
|
|
|
}
|
|
|
|
} elseif {!$seen} {
|
2014-12-29 05:55:58 +03:00
|
|
|
set rc 1
|
|
|
|
set errmsg "Test did not complete"
|
2015-01-10 00:54:58 +03:00
|
|
|
if {[file readable core]} {
|
|
|
|
append errmsg " - core file exists"
|
|
|
|
}
|
2014-12-29 05:55:58 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-02 21:32:00 +03:00
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# This command is invoked as the [main] routine for scripts run with the
|
2015-11-03 02:29:58 +03:00
|
|
|
# "--slave" option.
|
2015-11-02 21:32:00 +03:00
|
|
|
#
|
|
|
|
# For each test (i.e. "configure && make test" execution), the master
|
|
|
|
# process spawns a process with the --slave option. It writes two lines
|
2015-11-03 02:29:58 +03:00
|
|
|
# to the slaves stdin. The first contains a single boolean value - the
|
|
|
|
# value of ::TRACE to use in the slave script. The second line contains a
|
2015-11-02 21:32:00 +03:00
|
|
|
# list in the same format as each element of the list passed to the
|
|
|
|
# [run_all_test_suites] command in the master process.
|
|
|
|
#
|
|
|
|
# The slave then runs the "configure && make test" commands specified. It
|
|
|
|
# exits successfully if the tests passes, or with a non-zero error code
|
|
|
|
# otherwise.
|
|
|
|
#
|
|
|
|
proc run_slave_test {} {
|
|
|
|
# Read global vars configuration from stdin.
|
|
|
|
set V [gets stdin]
|
2016-09-12 12:28:21 +03:00
|
|
|
foreach {::TRACE ::MSVC ::DRYRUN ::KEEPFILES} $V {}
|
2015-11-02 21:32:00 +03:00
|
|
|
|
|
|
|
# Read the test-suite configuration from stdin.
|
|
|
|
set T [gets stdin]
|
2015-11-03 02:29:58 +03:00
|
|
|
foreach {title dir configOpts testtarget makeOpts cflags opts} $T {}
|
2015-11-02 21:32:00 +03:00
|
|
|
|
|
|
|
# Create and switch to the test directory.
|
2016-09-12 12:28:21 +03:00
|
|
|
set normaldir [file normalize $dir]
|
|
|
|
set ::env(SQLITE_TMPDIR) $normaldir
|
2015-11-02 21:32:00 +03:00
|
|
|
trace_cmd file mkdir $dir
|
|
|
|
trace_cmd cd $dir
|
|
|
|
catch {file delete core}
|
|
|
|
catch {file delete test.log}
|
|
|
|
|
|
|
|
# Run the "./configure && make" commands.
|
|
|
|
set rc 0
|
|
|
|
set rc [catch [configureCommand $configOpts]]
|
|
|
|
if {!$rc} {
|
2015-11-03 00:05:56 +03:00
|
|
|
if {[info exists ::env(TCLSH_CMD)]} {
|
|
|
|
set savedEnv(TCLSH_CMD) $::env(TCLSH_CMD)
|
|
|
|
} else {
|
|
|
|
unset -nocomplain savedEnv(TCLSH_CMD)
|
|
|
|
}
|
|
|
|
set ::env(TCLSH_CMD) [file nativename [info nameofexecutable]]
|
2019-04-16 13:51:29 +03:00
|
|
|
|
|
|
|
# Create a file called "makecommand.sh" containing the text of
|
|
|
|
# the make command line.
|
|
|
|
catch {
|
|
|
|
set cmd [makeCommand $testtarget $makeOpts $cflags $opts]
|
|
|
|
set fd [open makecommand.sh w]
|
|
|
|
foreach e $cmd {
|
|
|
|
if {[string first " " $e]>=0} {
|
|
|
|
puts -nonewline $fd "\"$e\""
|
|
|
|
} else {
|
|
|
|
puts -nonewline $fd $e
|
|
|
|
}
|
|
|
|
puts -nonewline $fd " "
|
|
|
|
}
|
|
|
|
puts $fd ""
|
|
|
|
close $fd
|
|
|
|
} msg
|
|
|
|
|
|
|
|
# Run the make command.
|
|
|
|
set rc [catch {trace_cmd exec {*}$cmd >>& test.log} msg]
|
2015-11-03 00:05:56 +03:00
|
|
|
if {[info exists savedEnv(TCLSH_CMD)]} {
|
|
|
|
set ::env(TCLSH_CMD) $savedEnv(TCLSH_CMD)
|
|
|
|
} else {
|
|
|
|
unset -nocomplain ::env(TCLSH_CMD)
|
|
|
|
}
|
2015-11-02 21:32:00 +03:00
|
|
|
}
|
|
|
|
|
2016-09-12 12:28:21 +03:00
|
|
|
# Clean up lots of extra files if --keep was not specified.
|
|
|
|
if {$::KEEPFILES==0} { cleanup $normaldir }
|
|
|
|
|
2015-11-02 21:32:00 +03:00
|
|
|
# Exis successfully if the test passed, or with a non-zero error code
|
|
|
|
# otherwise.
|
|
|
|
exit $rc
|
|
|
|
}
|
|
|
|
|
2015-11-03 02:29:58 +03:00
|
|
|
# This command is invoked in the master process each time a slave
|
2015-11-02 21:32:00 +03:00
|
|
|
# file-descriptor is readable.
|
|
|
|
#
|
|
|
|
proc slave_fileevent {fd T tm1} {
|
|
|
|
global G
|
2015-11-03 02:29:58 +03:00
|
|
|
foreach {title dir configOpts testtarget makeOpts cflags opts} $T {}
|
2015-11-02 21:32:00 +03:00
|
|
|
|
|
|
|
if {[eof $fd]} {
|
|
|
|
fconfigure $fd -blocking 1
|
|
|
|
set rc [catch { close $fd }]
|
|
|
|
|
|
|
|
set errmsg {}
|
2015-11-02 23:28:48 +03:00
|
|
|
set logfile [file join $dir test.log]
|
|
|
|
if {[file exists $logfile]} {
|
|
|
|
count_tests_and_errors [file join $dir test.log] rc errmsg
|
2015-11-03 18:16:21 +03:00
|
|
|
} elseif {$rc==0 && !$::DRYRUN} {
|
2015-11-02 23:28:48 +03:00
|
|
|
set rc 1
|
|
|
|
set errmsg "no test.log file..."
|
|
|
|
}
|
2015-11-02 21:32:00 +03:00
|
|
|
|
|
|
|
if {!$::TRACE} {
|
|
|
|
set tm2 [clock seconds]
|
|
|
|
set hours [expr {($tm2-$tm1)/3600}]
|
|
|
|
set minutes [expr {(($tm2-$tm1)/60)%60}]
|
|
|
|
set seconds [expr {($tm2-$tm1)%60}]
|
|
|
|
set tm [format (%02d:%02d:%02d) $hours $minutes $seconds]
|
|
|
|
|
|
|
|
if {$rc} {
|
|
|
|
set status FAIL
|
|
|
|
incr ::NERR
|
|
|
|
} else {
|
|
|
|
set status Ok
|
|
|
|
}
|
|
|
|
|
|
|
|
set n [string length $title]
|
2015-11-03 18:39:29 +03:00
|
|
|
if {$::PROGRESS_MSGS} {
|
|
|
|
PUTS "finished: ${title}[string repeat . [expr {53-$n}]] $status $tm"
|
|
|
|
} else {
|
|
|
|
PUTS "${title}[string repeat . [expr {63-$n}]] $status $tm"
|
|
|
|
}
|
2015-11-02 21:32:00 +03:00
|
|
|
if {$errmsg!=""} {PUTS " $errmsg"}
|
|
|
|
flush stdout
|
|
|
|
}
|
|
|
|
|
|
|
|
incr G(nJob) -1
|
|
|
|
} else {
|
|
|
|
set line [gets $fd]
|
|
|
|
if {[string trim $line] != ""} {
|
|
|
|
puts "Trace : $title - \"$line\""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
# The only argument passed to this function is a list of test-suites to
|
|
|
|
# run. Each "test-suite" is itself a list consisting of the following
|
|
|
|
# elements:
|
|
|
|
#
|
|
|
|
# * Test title (for display).
|
|
|
|
# * The name of the directory to run the test in.
|
|
|
|
# * The argument for [configureCommand]
|
|
|
|
# * The first argument for [makeCommand]
|
|
|
|
# * The second argument for [makeCommand]
|
|
|
|
# * The third argument for [makeCommand]
|
2015-11-03 02:29:58 +03:00
|
|
|
#
|
2015-11-02 21:32:00 +03:00
|
|
|
proc run_all_test_suites {alltests} {
|
|
|
|
global G
|
|
|
|
set tests $alltests
|
|
|
|
|
|
|
|
set G(nJob) 0
|
|
|
|
|
|
|
|
while {[llength $tests]>0 || $G(nJob)>0} {
|
|
|
|
if {$G(nJob)>=$::JOBS || [llength $tests]==0} {
|
|
|
|
vwait G(nJob)
|
|
|
|
}
|
|
|
|
|
|
|
|
if {[llength $tests]>0} {
|
|
|
|
set T [lindex $tests 0]
|
|
|
|
set tests [lrange $tests 1 end]
|
2015-11-03 02:29:58 +03:00
|
|
|
foreach {title dir configOpts testtarget makeOpts cflags opts} $T {}
|
2015-11-03 18:39:29 +03:00
|
|
|
if {$::PROGRESS_MSGS && !$::TRACE} {
|
2015-11-02 21:32:00 +03:00
|
|
|
set n [string length $title]
|
2015-11-03 18:16:21 +03:00
|
|
|
PUTS "starting: ${title} at [now]"
|
2015-11-02 21:32:00 +03:00
|
|
|
flush stdout
|
|
|
|
}
|
|
|
|
|
|
|
|
# Run the job.
|
|
|
|
#
|
|
|
|
set tm1 [clock seconds]
|
|
|
|
incr G(nJob)
|
2015-11-03 00:05:56 +03:00
|
|
|
set script [file normalize [info script]]
|
|
|
|
set fd [open "|[info nameofexecutable] $script --slave" r+]
|
2015-11-02 21:32:00 +03:00
|
|
|
fconfigure $fd -blocking 0
|
|
|
|
fileevent $fd readable [list slave_fileevent $fd $T $tm1]
|
2016-09-12 12:28:21 +03:00
|
|
|
puts $fd [list $::TRACE $::MSVC $::DRYRUN $::KEEPFILES]
|
2015-11-02 21:32:00 +03:00
|
|
|
puts $fd [list {*}$T]
|
|
|
|
flush $fd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
proc add_test_suite {listvar name testtarget config} {
|
|
|
|
upvar $listvar alltests
|
|
|
|
|
2014-12-23 23:22:57 +03:00
|
|
|
# Tcl variable $opts is used to build up the value used to set the
|
2010-09-06 22:44:14 +04:00
|
|
|
# OPTS Makefile variable. Variable $cflags holds the value for
|
|
|
|
# CFLAGS. The makefile will pass OPTS to both gcc and lemon, but
|
|
|
|
# CFLAGS is only passed to gcc.
|
|
|
|
#
|
2015-11-03 02:29:58 +03:00
|
|
|
set makeOpts ""
|
2015-04-04 03:02:07 +03:00
|
|
|
set cflags [expr {$::MSVC ? "-Zi" : "-g"}]
|
2010-09-06 22:44:14 +04:00
|
|
|
set opts ""
|
2015-01-03 21:59:17 +03:00
|
|
|
set title ${name}($testtarget)
|
2015-04-24 20:50:37 +03:00
|
|
|
set configOpts $::WITHTCL
|
2016-03-18 02:00:42 +03:00
|
|
|
set skip 0
|
2015-01-03 21:59:17 +03:00
|
|
|
|
2015-01-01 22:53:10 +03:00
|
|
|
regsub -all {#[^\n]*\n} $config \n config
|
2010-09-06 22:44:14 +04:00
|
|
|
foreach arg $config {
|
2016-03-18 02:00:42 +03:00
|
|
|
if {$skip} {
|
|
|
|
set skip 0
|
|
|
|
continue
|
|
|
|
}
|
2015-01-10 19:49:23 +03:00
|
|
|
if {[regexp {^-[UD]} $arg]} {
|
2010-09-06 22:44:14 +04:00
|
|
|
lappend opts $arg
|
2015-01-10 19:49:23 +03:00
|
|
|
} elseif {[regexp {^[A-Z]+=} $arg]} {
|
2015-01-01 22:53:10 +03:00
|
|
|
lappend testtarget $arg
|
2016-03-18 02:00:42 +03:00
|
|
|
} elseif {[regexp {^if:([a-z]+)(.*)} $arg all key tail]} {
|
|
|
|
# Arguments of the form 'if:os=="Linux"' will cause the subsequent
|
|
|
|
# argument to be skipped if the $tcl_platform(os) is not "Linux", for
|
|
|
|
# example...
|
|
|
|
set skip [expr !(\$::tcl_platform($key)$tail)]
|
2015-01-07 17:41:18 +03:00
|
|
|
} elseif {[regexp {^--(enable|disable)-} $arg]} {
|
2015-11-03 02:29:58 +03:00
|
|
|
if {$::MSVC} {
|
|
|
|
if {$arg eq "--disable-amalgamation"} {
|
|
|
|
lappend makeOpts USE_AMALGAMATION=0
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if {$arg eq "--disable-shared"} {
|
|
|
|
lappend makeOpts USE_CRT_DLL=0 DYNAMIC_SHELL=0
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if {$arg eq "--enable-fts5"} {
|
|
|
|
lappend opts -DSQLITE_ENABLE_FTS5
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if {$arg eq "--enable-json1"} {
|
|
|
|
lappend opts -DSQLITE_ENABLE_JSON1
|
|
|
|
continue
|
|
|
|
}
|
2015-11-03 09:23:33 +03:00
|
|
|
if {$arg eq "--enable-shared"} {
|
|
|
|
lappend makeOpts USE_CRT_DLL=1 DYNAMIC_SHELL=1
|
|
|
|
continue
|
|
|
|
}
|
2015-11-03 02:29:58 +03:00
|
|
|
}
|
2015-01-07 17:41:18 +03:00
|
|
|
lappend configOpts $arg
|
2010-09-06 22:44:14 +04:00
|
|
|
} else {
|
2015-11-03 02:29:58 +03:00
|
|
|
if {$::MSVC} {
|
|
|
|
if {$arg eq "-g"} {
|
|
|
|
lappend cflags -Zi
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
if {[regexp -- {^-O(\d+)$} $arg all level]} then {
|
|
|
|
lappend makeOpts OPTIMIZATIONS=$level
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
lappend cflags $arg
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-03 02:29:58 +03:00
|
|
|
# Disable sync to make testing faster.
|
|
|
|
#
|
|
|
|
lappend opts -DSQLITE_NO_SYNC=1
|
2015-04-04 03:02:07 +03:00
|
|
|
|
|
|
|
# Some configurations already set HAVE_USLEEP; in that case, skip it.
|
|
|
|
#
|
2015-11-03 02:29:58 +03:00
|
|
|
if {[lsearch -regexp $opts {^-DHAVE_USLEEP(?:=|$)}]==-1} {
|
|
|
|
lappend opts -DHAVE_USLEEP=1
|
2015-04-04 03:02:07 +03:00
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2015-11-03 02:29:58 +03:00
|
|
|
# Add the define for this platform.
|
2010-09-06 22:44:14 +04:00
|
|
|
#
|
|
|
|
if {$::tcl_platform(platform)=="windows"} {
|
2015-11-03 02:29:58 +03:00
|
|
|
lappend opts -DSQLITE_OS_WIN=1
|
2010-09-06 22:44:14 +04:00
|
|
|
} else {
|
2015-11-03 02:29:58 +03:00
|
|
|
lappend opts -DSQLITE_OS_UNIX=1
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
|
2015-11-03 02:29:58 +03:00
|
|
|
# Set the sub-directory to use.
|
|
|
|
#
|
|
|
|
set dir [string tolower [string map {- _ " " _} $name]]
|
|
|
|
|
|
|
|
# Join option lists into strings, using space as delimiter.
|
|
|
|
#
|
|
|
|
set makeOpts [join $makeOpts " "]
|
|
|
|
set cflags [join $cflags " "]
|
|
|
|
set opts [join $opts " "]
|
|
|
|
|
|
|
|
lappend alltests [list \
|
|
|
|
$title $dir $configOpts $testtarget $makeOpts $cflags $opts]
|
2014-12-23 22:40:51 +03:00
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2014-12-23 23:22:57 +03:00
|
|
|
# The following procedure returns the "configure" command to be exectued for
|
|
|
|
# the current platform, which may be Windows (via MinGW, etc).
|
|
|
|
#
|
2015-01-07 17:41:18 +03:00
|
|
|
proc configureCommand {opts} {
|
2015-04-04 03:02:07 +03:00
|
|
|
if {$::MSVC} return [list]; # This is not needed for MSVC.
|
2015-01-07 17:41:18 +03:00
|
|
|
set result [list trace_cmd exec]
|
2014-12-23 23:22:57 +03:00
|
|
|
if {$::tcl_platform(platform)=="windows"} {
|
|
|
|
lappend result sh
|
|
|
|
}
|
2015-01-07 17:41:18 +03:00
|
|
|
lappend result $::SRCDIR/configure --enable-load-extension
|
|
|
|
foreach x $opts {lappend result $x}
|
|
|
|
lappend result >& test.log
|
2014-12-23 23:22:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
# The following procedure returns the "make" command to be executed for the
|
|
|
|
# specified targets, compiler flags, and options.
|
|
|
|
#
|
2015-11-03 02:29:58 +03:00
|
|
|
proc makeCommand { targets makeOpts cflags opts } {
|
2019-04-16 13:51:29 +03:00
|
|
|
set result [list]
|
2015-04-04 03:02:07 +03:00
|
|
|
if {$::MSVC} {
|
|
|
|
set nmakeDir [file nativename $::SRCDIR]
|
2015-11-03 05:47:11 +03:00
|
|
|
set nmakeFile [file nativename [file join $nmakeDir Makefile.msc]]
|
2015-11-03 02:29:58 +03:00
|
|
|
lappend result nmake /f $nmakeFile TOP=$nmakeDir
|
2018-01-05 22:27:19 +03:00
|
|
|
set tclDir [file nativename [file normalize \
|
|
|
|
[file dirname [file dirname [info nameofexecutable]]]]]
|
|
|
|
lappend result "TCLDIR=$tclDir"
|
2016-08-01 18:00:00 +03:00
|
|
|
if {[regexp {USE_STDCALL=1} $cflags]} {
|
|
|
|
lappend result USE_STDCALL=1
|
|
|
|
}
|
2015-04-04 03:02:07 +03:00
|
|
|
} else {
|
2015-11-03 02:29:58 +03:00
|
|
|
lappend result make
|
|
|
|
}
|
|
|
|
foreach makeOpt $makeOpts {
|
|
|
|
lappend result $makeOpt
|
2015-04-04 03:02:07 +03:00
|
|
|
}
|
2015-11-03 02:29:58 +03:00
|
|
|
lappend result clean
|
2014-12-23 23:22:57 +03:00
|
|
|
foreach target $targets {
|
|
|
|
lappend result $target
|
|
|
|
}
|
2019-04-16 13:51:29 +03:00
|
|
|
lappend result CFLAGS=$cflags OPTS=$opts
|
2014-12-23 23:22:57 +03:00
|
|
|
}
|
|
|
|
|
2015-01-07 17:41:18 +03:00
|
|
|
# The following procedure prints its arguments if ::TRACE is true.
|
|
|
|
# And it executes the command of its arguments in the calling context
|
|
|
|
# if ::DRYRUN is false.
|
2014-12-23 22:40:51 +03:00
|
|
|
#
|
2015-01-07 17:41:18 +03:00
|
|
|
proc trace_cmd {args} {
|
|
|
|
if {$::TRACE} {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS $args
|
2015-01-07 17:41:18 +03:00
|
|
|
}
|
2015-11-02 21:32:00 +03:00
|
|
|
set res ""
|
2015-01-07 17:41:18 +03:00
|
|
|
if {!$::DRYRUN} {
|
2015-11-02 21:32:00 +03:00
|
|
|
set res [uplevel 1 $args]
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2015-11-02 21:32:00 +03:00
|
|
|
return $res
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# This proc processes the command line options passed to this script.
|
|
|
|
# Currently the only option supported is "-makefile", default
|
|
|
|
# "releasetest.mk". Set the ::MAKEFILE variable to the value of this
|
|
|
|
# option.
|
|
|
|
#
|
|
|
|
proc process_options {argv} {
|
2014-12-23 22:40:51 +03:00
|
|
|
set ::SRCDIR [file normalize [file dirname [file dirname $::argv0]]]
|
2015-11-03 18:39:29 +03:00
|
|
|
set ::QUICK 0
|
|
|
|
set ::MSVC 0
|
|
|
|
set ::BUILDONLY 0
|
|
|
|
set ::DRYRUN 0
|
|
|
|
set ::TRACE 0
|
|
|
|
set ::JOBS 1
|
|
|
|
set ::PROGRESS_MSGS 0
|
|
|
|
set ::WITHTCL {}
|
2016-09-09 15:29:57 +03:00
|
|
|
set ::FORCE 0
|
2016-09-12 12:28:21 +03:00
|
|
|
set ::KEEPFILES 0 ;# Keep extra files after test run
|
2014-10-10 21:44:03 +04:00
|
|
|
set config {}
|
2010-09-06 22:44:14 +04:00
|
|
|
set platform $::tcl_platform(os)-$::tcl_platform(machine)
|
|
|
|
|
|
|
|
for {set i 0} {$i < [llength $argv]} {incr i} {
|
2014-12-23 22:40:51 +03:00
|
|
|
set x [lindex $argv $i]
|
|
|
|
if {[regexp {^--[a-z]} $x]} {set x [string range $x 1 end]}
|
2015-01-07 21:44:59 +03:00
|
|
|
switch -glob -- $x {
|
2015-11-02 21:32:00 +03:00
|
|
|
-slave {
|
|
|
|
run_slave_test
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2016-09-09 16:23:36 +03:00
|
|
|
# Undocumented legacy option: --srcdir DIRECTORY
|
|
|
|
#
|
|
|
|
# DIRECTORY is the root of the SQLite checkout. This sets the
|
|
|
|
# SRCDIR global variable. But that variable is already set
|
|
|
|
# automatically so there really is no reason to have this option.
|
|
|
|
#
|
2014-12-23 22:40:51 +03:00
|
|
|
-srcdir {
|
2010-09-06 22:44:14 +04:00
|
|
|
incr i
|
2014-12-23 22:40:51 +03:00
|
|
|
set ::SRCDIR [file normalize [lindex $argv $i]]
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
-platform {
|
|
|
|
incr i
|
|
|
|
set platform [lindex $argv $i]
|
|
|
|
}
|
|
|
|
|
2015-11-02 21:32:00 +03:00
|
|
|
-jobs {
|
|
|
|
incr i
|
|
|
|
set ::JOBS [lindex $argv $i]
|
|
|
|
}
|
|
|
|
|
2015-11-03 18:39:29 +03:00
|
|
|
-progress {
|
|
|
|
set ::PROGRESS_MSGS 1
|
|
|
|
}
|
|
|
|
|
2010-09-06 22:44:14 +04:00
|
|
|
-quick {
|
2014-12-23 22:40:51 +03:00
|
|
|
set ::QUICK 1
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2015-01-08 04:05:42 +03:00
|
|
|
-veryquick {
|
|
|
|
set ::QUICK 2
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
2014-10-10 21:44:03 +04:00
|
|
|
|
|
|
|
-config {
|
|
|
|
incr i
|
|
|
|
set config [lindex $argv $i]
|
|
|
|
}
|
2014-12-23 22:40:51 +03:00
|
|
|
|
2015-04-04 03:02:07 +03:00
|
|
|
-msvc {
|
|
|
|
set ::MSVC 1
|
|
|
|
}
|
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
-buildonly {
|
|
|
|
set ::BUILDONLY 1
|
|
|
|
}
|
|
|
|
|
|
|
|
-dryrun {
|
|
|
|
set ::DRYRUN 1
|
|
|
|
}
|
|
|
|
|
2016-09-09 15:29:57 +03:00
|
|
|
-force -
|
|
|
|
-f {
|
|
|
|
set ::FORCE 1
|
|
|
|
}
|
|
|
|
|
2015-01-07 17:41:18 +03:00
|
|
|
-trace {
|
|
|
|
set ::TRACE 1
|
|
|
|
}
|
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
-info {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "Command-line Options:"
|
|
|
|
PUTS " --srcdir $::SRCDIR"
|
|
|
|
PUTS " --platform [list $platform]"
|
|
|
|
PUTS " --config [list $config]"
|
2015-06-10 21:53:09 +03:00
|
|
|
if {$::QUICK} {
|
2015-08-14 15:53:37 +03:00
|
|
|
if {$::QUICK==1} {PUTS " --quick"}
|
|
|
|
if {$::QUICK==2} {PUTS " --veryquick"}
|
2015-06-10 21:53:09 +03:00
|
|
|
}
|
2015-08-14 15:53:37 +03:00
|
|
|
if {$::MSVC} {PUTS " --msvc"}
|
|
|
|
if {$::BUILDONLY} {PUTS " --buildonly"}
|
|
|
|
if {$::DRYRUN} {PUTS " --dryrun"}
|
|
|
|
if {$::TRACE} {PUTS " --trace"}
|
|
|
|
PUTS "\nAvailable --platform options:"
|
2014-12-23 22:40:51 +03:00
|
|
|
foreach y [lsort [array names ::Platforms]] {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS " [list $y]"
|
2014-12-23 22:40:51 +03:00
|
|
|
}
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "\nAvailable --config options:"
|
2014-12-23 22:40:51 +03:00
|
|
|
foreach y [lsort [array names ::Configs]] {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS " [list $y]"
|
2014-12-23 22:40:51 +03:00
|
|
|
}
|
|
|
|
exit
|
|
|
|
}
|
2015-04-04 03:02:07 +03:00
|
|
|
|
|
|
|
-g {
|
2015-11-03 02:29:58 +03:00
|
|
|
lappend ::EXTRACONFIG [lindex $argv $i]
|
2015-04-04 03:02:07 +03:00
|
|
|
}
|
|
|
|
|
2016-09-12 12:28:21 +03:00
|
|
|
-keep {
|
|
|
|
set ::KEEPFILES 1
|
|
|
|
}
|
|
|
|
|
2015-04-24 20:50:37 +03:00
|
|
|
-with-tcl=* {
|
|
|
|
set ::WITHTCL -$x
|
|
|
|
}
|
|
|
|
|
2015-01-07 21:44:59 +03:00
|
|
|
-D* -
|
2015-01-08 04:05:42 +03:00
|
|
|
-O* -
|
2015-01-07 21:44:59 +03:00
|
|
|
-enable-* -
|
|
|
|
-disable-* -
|
|
|
|
*=* {
|
|
|
|
lappend ::EXTRACONFIG [lindex $argv $i]
|
|
|
|
}
|
2014-12-23 23:22:57 +03:00
|
|
|
|
2010-09-06 22:44:14 +04:00
|
|
|
default {
|
2016-01-03 14:17:04 +03:00
|
|
|
PUTSERR ""
|
|
|
|
PUTSERR [string trim $::USAGE_MESSAGE]
|
2010-09-06 22:44:14 +04:00
|
|
|
exit -1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if {0==[info exists ::Platforms($platform)]} {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "Unknown platform: $platform"
|
2015-11-13 15:52:34 +03:00
|
|
|
PUTSNNL "Set the -platform option to "
|
2010-09-06 22:44:14 +04:00
|
|
|
set print [list]
|
|
|
|
foreach p [array names ::Platforms] {
|
|
|
|
lappend print "\"$p\""
|
|
|
|
}
|
|
|
|
lset print end "or [lindex $print end]"
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "[join $print {, }]."
|
2010-09-06 22:44:14 +04:00
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2014-10-10 21:44:03 +04:00
|
|
|
if {$config!=""} {
|
2014-10-10 21:47:00 +04:00
|
|
|
if {[llength $config]==1} {lappend config fulltest}
|
2014-10-10 21:44:03 +04:00
|
|
|
set ::CONFIGLIST $config
|
|
|
|
} else {
|
2015-11-04 19:34:58 +03:00
|
|
|
if {$::JOBS>1} {
|
|
|
|
set ::CONFIGLIST {}
|
|
|
|
foreach {target zConfig} [lreverse $::Platforms($platform)] {
|
|
|
|
append ::CONFIGLIST [format " %-25s %s\n" \
|
|
|
|
[list $zConfig] [list $target]]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
set ::CONFIGLIST $::Platforms($platform)
|
|
|
|
}
|
2014-10-10 21:44:03 +04:00
|
|
|
}
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "Running the following test configurations for $platform:"
|
|
|
|
PUTS " [string trim $::CONFIGLIST]"
|
2015-11-13 15:52:34 +03:00
|
|
|
PUTSNNL "Flags:"
|
|
|
|
if {$::PROGRESS_MSGS} {PUTSNNL " --progress"}
|
|
|
|
if {$::DRYRUN} {PUTSNNL " --dryrun"}
|
|
|
|
if {$::BUILDONLY} {PUTSNNL " --buildonly"}
|
|
|
|
if {$::MSVC} {PUTSNNL " --msvc"}
|
2015-01-08 04:05:42 +03:00
|
|
|
switch -- $::QUICK {
|
2015-11-13 15:52:34 +03:00
|
|
|
1 {PUTSNNL " --quick"}
|
|
|
|
2 {PUTSNNL " --veryquick"}
|
2015-01-08 04:05:42 +03:00
|
|
|
}
|
2015-11-13 15:52:34 +03:00
|
|
|
if {$::JOBS>1} {PUTSNNL " --jobs $::JOBS"}
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS ""
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
|
2016-09-09 16:17:26 +03:00
|
|
|
# Check to see if there are uncommitted changes in the SQLite source
|
|
|
|
# checkout. Exit if there are. Except: Do nothing if the --force
|
|
|
|
# flag is used. Also, ignore this test if the fossil binary is
|
|
|
|
# unavailable, or if the source tree is not a valid fossil checkout.
|
2016-09-09 02:12:08 +03:00
|
|
|
#
|
|
|
|
proc check_uncommitted {} {
|
2016-09-09 15:29:57 +03:00
|
|
|
if {$::FORCE} return
|
|
|
|
set pwd [pwd]
|
|
|
|
cd $::SRCDIR
|
2016-09-09 02:12:08 +03:00
|
|
|
if {[catch {exec fossil changes} res]==0 && [string trim $res]!=""} {
|
2016-09-09 15:29:57 +03:00
|
|
|
puts "ERROR: The check-out contains uncommitted changes:"
|
2016-09-09 02:12:08 +03:00
|
|
|
puts $res
|
2016-09-09 15:29:57 +03:00
|
|
|
puts "Use the -f or --force options to override"
|
|
|
|
exit 1
|
2016-09-09 02:12:08 +03:00
|
|
|
}
|
2016-09-09 15:29:57 +03:00
|
|
|
cd $pwd
|
2016-09-09 02:12:08 +03:00
|
|
|
}
|
|
|
|
|
2016-09-12 12:28:21 +03:00
|
|
|
# A test run has just finished in directory $dir. This command deletes all
|
|
|
|
# non-essential files from the directory. Specifically, everything except
|
|
|
|
#
|
|
|
|
# * The "testfixture" and "sqlite3" binaries,
|
|
|
|
# * The "test-out.log" and "test.log" log files.
|
|
|
|
#
|
|
|
|
proc cleanup {dir} {
|
|
|
|
set K(testfixture) 1
|
|
|
|
set K(testfixture.exe) 1
|
|
|
|
set K(sqlite3) 1
|
|
|
|
set K(sqlite3.exe) 1
|
|
|
|
set K(test-out.txt) 1
|
|
|
|
set K(test.log) 1
|
|
|
|
|
|
|
|
foreach f [glob -nocomplain [file join $dir *]] {
|
|
|
|
set tail [file tail $f]
|
|
|
|
if {[info exists K($tail)]==0} {
|
|
|
|
file delete -force $f
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-09 02:12:08 +03:00
|
|
|
|
2010-09-06 22:44:14 +04:00
|
|
|
# Main routine.
|
|
|
|
#
|
|
|
|
proc main {argv} {
|
|
|
|
|
|
|
|
# Process any command line options.
|
2015-01-07 21:44:59 +03:00
|
|
|
set ::EXTRACONFIG {}
|
2010-09-06 22:44:14 +04:00
|
|
|
process_options $argv
|
2016-09-09 02:12:08 +03:00
|
|
|
if {!$::DRYRUN} check_uncommitted
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS [string repeat * 79]
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2014-12-25 02:35:36 +03:00
|
|
|
set ::NERR 0
|
|
|
|
set ::NTEST 0
|
2014-12-29 05:55:58 +03:00
|
|
|
set ::NTESTCASE 0
|
|
|
|
set ::NERRCASE 0
|
2015-01-08 04:05:42 +03:00
|
|
|
set ::SQLITE_VERSION {}
|
2014-12-23 22:40:51 +03:00
|
|
|
set STARTTIME [clock seconds]
|
2010-09-06 22:44:14 +04:00
|
|
|
foreach {zConfig target} $::CONFIGLIST {
|
2015-04-04 03:02:07 +03:00
|
|
|
if {$::MSVC && ($zConfig eq "Sanitize" || "checksymbols" in $target
|
|
|
|
|| "valgrindtest" in $target)} {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "Skipping $zConfig / $target for MSVC..."
|
2015-04-04 03:02:07 +03:00
|
|
|
continue
|
|
|
|
}
|
2015-01-08 04:05:42 +03:00
|
|
|
if {$target ne "checksymbols"} {
|
|
|
|
switch -- $::QUICK {
|
2015-06-10 21:53:09 +03:00
|
|
|
1 {set target quicktest}
|
2015-01-08 04:05:42 +03:00
|
|
|
2 {set target smoketest}
|
|
|
|
}
|
2015-04-04 03:02:07 +03:00
|
|
|
if {$::BUILDONLY} {
|
|
|
|
set target testfixture
|
2015-11-03 18:39:29 +03:00
|
|
|
if {$::tcl_platform(platform)=="windows"} {
|
|
|
|
append target .exe
|
|
|
|
}
|
2015-04-04 03:02:07 +03:00
|
|
|
}
|
2015-01-08 04:05:42 +03:00
|
|
|
}
|
2015-01-07 21:44:59 +03:00
|
|
|
set config_options [concat $::Configs($zConfig) $::EXTRACONFIG]
|
2010-09-06 22:44:14 +04:00
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
incr NTEST
|
2015-11-02 21:32:00 +03:00
|
|
|
add_test_suite all $zConfig $target $config_options
|
2010-09-06 22:44:14 +04:00
|
|
|
|
|
|
|
# If the configuration included the SQLITE_DEBUG option, then remove
|
|
|
|
# it and run veryquick.test. If it did not include the SQLITE_DEBUG option
|
|
|
|
# add it and run veryquick.test.
|
2015-01-08 04:05:42 +03:00
|
|
|
if {$target!="checksymbols" && $target!="valgrindtest"
|
2015-04-25 16:39:29 +03:00
|
|
|
&& $target!="fuzzoomtest" && !$::BUILDONLY && $::QUICK<2} {
|
2012-12-10 14:22:48 +04:00
|
|
|
set debug_idx [lsearch -glob $config_options -DSQLITE_DEBUG*]
|
2014-12-30 23:40:32 +03:00
|
|
|
set xtarget $target
|
2014-12-31 23:35:11 +03:00
|
|
|
regsub -all {fulltest[a-z]*} $xtarget test xtarget
|
2015-04-25 16:39:29 +03:00
|
|
|
regsub -all {fuzzoomtest} $xtarget fuzztest xtarget
|
2012-12-10 14:22:48 +04:00
|
|
|
if {$debug_idx < 0} {
|
2014-12-23 22:40:51 +03:00
|
|
|
incr NTEST
|
2017-05-25 14:39:50 +03:00
|
|
|
append config_options " -DSQLITE_DEBUG=1 -DSQLITE_EXTRA_IFNULLROW=1"
|
2015-11-02 21:32:00 +03:00
|
|
|
add_test_suite all "${zConfig}_debug" $xtarget $config_options
|
2012-12-10 14:22:48 +04:00
|
|
|
} else {
|
2014-12-23 22:40:51 +03:00
|
|
|
incr NTEST
|
2014-12-30 23:40:32 +03:00
|
|
|
regsub { *-DSQLITE_MEMDEBUG[^ ]* *} $config_options { } config_options
|
|
|
|
regsub { *-DSQLITE_DEBUG[^ ]* *} $config_options { } config_options
|
2015-11-02 21:32:00 +03:00
|
|
|
add_test_suite all "${zConfig}_ndebug" $xtarget $config_options
|
2012-12-10 14:22:48 +04:00
|
|
|
}
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-02 21:32:00 +03:00
|
|
|
run_all_test_suites $all
|
|
|
|
|
2014-12-23 22:40:51 +03:00
|
|
|
set elapsetime [expr {[clock seconds]-$STARTTIME}]
|
2014-12-25 02:35:36 +03:00
|
|
|
set hr [expr {$elapsetime/3600}]
|
|
|
|
set min [expr {($elapsetime/60)%60}]
|
|
|
|
set sec [expr {$elapsetime%60}]
|
|
|
|
set etime [format (%02d:%02d:%02d) $hr $min $sec]
|
2016-01-03 14:17:04 +03:00
|
|
|
if {$::JOBS>1} {append etime " $::JOBS cores"}
|
|
|
|
if {[catch {exec hostname} HNAME]==0} {append etime " on $HNAME"}
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS [string repeat * 79]
|
2015-09-10 18:20:49 +03:00
|
|
|
incr ::NERRCASE $::NERR
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "$::NERRCASE failures out of $::NTESTCASE tests in $etime"
|
2015-01-08 04:05:42 +03:00
|
|
|
if {$::SQLITE_VERSION ne ""} {
|
2015-08-14 15:53:37 +03:00
|
|
|
PUTS "SQLite $::SQLITE_VERSION"
|
2010-09-06 22:44:14 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main $argv
|