1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Add makefile target "sdevtest" - like "mdevtest" except asan and usan enabled for the non-debug test.

FossilOrigin-Name: a449d650cd3dcd1baaeb3a3de2aaaac45594397e04f95fe637b0fe4ddb273404
This commit is contained in:
dan
2023-08-22 15:19:50 +00:00
parent 310700228b
commit 44e24e9640
5 changed files with 20 additions and 13 deletions

View File

@ -505,15 +505,17 @@ proc testset_patternlist {patternlist} {
set first [lindex $patternlist 0]
if {$first=="mdevtest"} {
if {$first=="sdevtest" || $first=="mdevtest"} {
set CONFIGS(sdevtest) {All-Debug All-Sanitize}
set CONFIGS(mdevtest) {All-Debug All-O0}
set patternlist [lrange $patternlist 1 end]
foreach b {All-Debug All-O0} {
foreach b $CONFIGS($first) {
lappend testset [list $b build testfixture]
lappend testset [list $b make fuzztest]
testset_append testset $b veryquick $patternlist
}
} elseif {$first=="release"} {
set platform $::TRG(platform)

View File

@ -89,7 +89,8 @@ namespace eval trd {
-DSQLITE_ENABLE_RBU
}
# These two are used by [testrunner.tcl mdevtest].
# These two are used by [testrunner.tcl mdevtest] (All-O0) and
# [testrunner.tcl sdevtest] (All-Sanitize).
#
set build(All-Debug) {
--enable-debug --enable-all
@ -97,6 +98,7 @@ namespace eval trd {
set build(All-O0) {
-O0 --enable-all
}
set build(All-Sanitize) { --enable-all -fsanitize=address,undefined }
set build(Sanitize) {
CC=clang -fsanitize=address,undefined