Add a valgrind test to the Linux-x86_64 platform in releasetest.tcl.

FossilOrigin-Name: 4b6df035561add4e304fb56dd70ae4d413d6bd5d
This commit is contained in:
drh
2015-01-07 14:09:41 +00:00
parent ef3d66cb01
commit 8a2a0f560e
4 changed files with 29 additions and 14 deletions
+17 -5
View File
@@ -155,12 +155,16 @@ array set ::Configs {
-DSQLITE_DISABLE_FTS4_DEFERRED
-DSQLITE_ENABLE_RTREE
}
"No-lookaside" {
-DSQLITE_TEST_REALLOC_STRESS=1
-DSQLITE_OMIT_LOOKASIDE=1
-DHAVE_USLEEP=1
}
"Valgrind" {
-DSQLITE_ENABLE_STAT4
-DSQLITE_ENABLE_FTS4
-DSQLITE_ENABLE_RTREE
}
}
array set ::Platforms {
@@ -172,10 +176,11 @@ array set ::Platforms {
"Update-Delete-Limit" test
"Extra-Robustness" test
"Device-Two" test
"Ftrapv" test
"Sanitize" {QUICKTEST_OMIT=func4.test,nan.test test}
"No-lookaside" test
"Devkit" test
"Ftrapv" test
"Sanitize" {QUICKTEST_OMIT=func4.test,nan.test test}
"Valgrind" valgrindtest
"Default" "threadtest fulltest"
"Device-One" fulltest
}
@@ -243,6 +248,13 @@ proc count_tests_and_errors {logfile rcVar errmsgVar} {
set errmsg $msg
}
}
if {[regexp {ERROR SUMMARY: (\d+) errors.*} $line all cnt] && $cnt>0} {
incr ::NERRCASE
if {$rc==0} {
set rc 1
set errmsg $all
}
}
}
close $fd
if {!$seen} {
@@ -328,7 +340,7 @@ proc configureCommand {} {
if {$::tcl_platform(platform)=="windows"} {
lappend result sh
}
lappend result $::SRCDIR/configure -enable-load-extension >& test.log
lappend result $::SRCDIR/configure --enable-load-extension >& test.log
}
# The following procedure returns the "make" command to be executed for the
@@ -478,7 +490,7 @@ 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.
if {$target!="checksymbols" && !$::BUILDONLY} {
if {$target!="checksymbols" && $target!="valgrindtest" && !$::BUILDONLY} {
set debug_idx [lsearch -glob $config_options -DSQLITE_DEBUG*]
set xtarget $target
regsub -all {fulltest[a-z]*} $xtarget test xtarget