Index: third_party/sqlite/src/test/releasetest.tcl |
diff --git a/third_party/sqlite/src/test/releasetest.tcl b/third_party/sqlite/src/test/releasetest.tcl |
index 84542bb8a5ff570afb9e80040e856fed380bd51a..d2a1bd2bb0c54606a3c0d655ae82eaff0d9b49b2 100644 |
--- a/third_party/sqlite/src/test/releasetest.tcl |
+++ b/third_party/sqlite/src/test/releasetest.tcl |
@@ -13,6 +13,7 @@ optional) are: |
-makefile PATH-TO-MAKEFILE (default "releasetest.mk") |
-platform PLATFORM (see below) |
-quick BOOLEAN (default "0") |
+ -config CONFIGNAME (Run only CONFIGNAME) |
The default value for -makefile is "./releasetest.mk". |
@@ -81,6 +82,22 @@ array set ::Configs { |
-DSQLITE_DEFAULT_FILE_FORMAT=4 |
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 |
} |
+ "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_IOTRACE=1 |
+ -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 |
+ -DSQLITE_ENABLE_OVERSIZE_CELL_CHECK=1 |
+ } |
"Debug-One" { |
-O2 |
-DSQLITE_DEBUG=1 |
@@ -151,21 +168,40 @@ array set ::Configs { |
-DSQLITE_ENABLE_OVERSIZE_CELL_CHECK=1 |
-DSQLITE_MAX_ATTACHED=62 |
} |
+ "Devkit" { |
+ -DSQLITE_DEFAULT_FILE_FORMAT=4 |
+ -DSQLITE_MAX_ATTACHED=30 |
+ -DSQLITE_ENABLE_COLUMN_METADATA |
+ -DSQLITE_ENABLE_FTS4 |
+ -DSQLITE_ENABLE_FTS4_PARENTHESIS |
+ -DSQLITE_DISABLE_FTS4_DEFERRED |
+ -DSQLITE_ENABLE_RTREE |
+ } |
+ |
+ "No-lookaside" { |
+ -DSQLITE_TEST_REALLOC_STRESS=1 |
+ -DSQLITE_OMIT_LOOKASIDE=1 |
+ -DHAVE_USLEEP=1 |
+ } |
} |
array set ::Platforms { |
Linux-x86_64 { |
+ "Check-Symbols" checksymbols |
+ "Debug-One" test |
"Secure-Delete" test |
"Unlock-Notify" "QUICKTEST_INCLUDE=notify2.test test" |
"Update-Delete-Limit" test |
- "Debug-One" test |
"Extra-Robustness" test |
"Device-Two" test |
"Ftrapv" test |
- "Default" "threadtest test" |
+ "No-lookaside" test |
+ "Devkit" test |
+ "Default" "threadtest fulltest" |
"Device-One" fulltest |
} |
Linux-i686 { |
+ "Devkit" test |
"Unlock-Notify" "QUICKTEST_INCLUDE=notify2.test test" |
"Device-One" test |
"Device-Two" test |
@@ -177,6 +213,7 @@ array set ::Platforms { |
} |
} |
+ |
# End of configuration section. |
######################################################################### |
######################################################################### |
@@ -217,8 +254,6 @@ proc run_test_suite {name testtarget config} { |
if {$::tcl_platform(platform)=="windows"} { |
append opts " -DSQLITE_OS_WIN=1" |
- } elseif {$::tcl_platform(platform)=="os2"} { |
- append opts " -DSQLITE_OS_OS2=1" |
} else { |
append opts " -DSQLITE_OS_UNIX=1" |
} |
@@ -259,6 +294,7 @@ proc run_test_suite {name testtarget config} { |
proc process_options {argv} { |
set ::MAKEFILE releasetest.mk ;# Default value |
set ::QUICK 0 ;# Default value |
+ set config {} |
set platform $::tcl_platform(os)-$::tcl_platform(machine) |
for {set i 0} {$i < [llength $argv]} {incr i} { |
@@ -277,6 +313,11 @@ proc process_options {argv} { |
incr i |
set ::QUICK [lindex $argv $i] |
} |
+ |
+ -config { |
+ incr i |
+ set config [lindex $argv $i] |
+ } |
default { |
puts stderr "" |
@@ -300,7 +341,12 @@ proc process_options {argv} { |
exit |
} |
- set ::CONFIGLIST $::Platforms($platform) |
+ if {$config!=""} { |
+ if {[llength $config]==1} {lappend config fulltest} |
+ set ::CONFIGLIST $config |
+ } else { |
+ set ::CONFIGLIST $::Platforms($platform) |
+ } |
puts "Running the following configurations for $platform:" |
puts " [string trim $::CONFIGLIST]" |
} |
@@ -321,15 +367,17 @@ proc main {argv} { |
# 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. |
- set debug_idx [lsearch -glob $config_options -DSQLITE_DEBUG*] |
- if {$debug_idx < 0} { |
- run_test_suite "${zConfig}_debug" test [ |
- concat $config_options -DSQLITE_DEBUG=1 |
- ] |
- } else { |
- run_test_suite "${zConfig}_ndebug" test [ |
- lreplace $config_options $debug_idx $debug_idx |
- ] |
+ if {$target!="checksymbols"} { |
+ set debug_idx [lsearch -glob $config_options -DSQLITE_DEBUG*] |
+ if {$debug_idx < 0} { |
+ run_test_suite "${zConfig}_debug" test [ |
+ concat $config_options -DSQLITE_DEBUG=1 |
+ ] |
+ } else { |
+ run_test_suite "${zConfig}_ndebug" test [ |
+ lreplace $config_options $debug_idx $debug_idx |
+ ] |
+ } |
} |
} |