mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix "make test" handling of environment variable QUICKTEST_OMIT so that it can be used to exclude test files in other than the main test directory.
FossilOrigin-Name: b050976079ba4a22d4dfeadb81f40cf71da6588c95bf2b634d88b416de5accd7
This commit is contained in:
@ -136,9 +136,24 @@ if {[info exists ::env(QUICKTEST_INCLUDE)]} {
|
||||
set allquicktests [concat $allquicktests $::env(QUICKTEST_INCLUDE)]
|
||||
}
|
||||
if {[info exists ::env(QUICKTEST_OMIT)]} {
|
||||
foreach x [split $::env(QUICKTEST_OMIT) ,] {
|
||||
regsub -all \\y$x\\y $allquicktests {} allquicktests
|
||||
# If environment variable QUICKTEST_OMIT is set, it is a comma-separated
|
||||
# list of regular expressions to match against test file names in
|
||||
# the "allquicktests" set. Any matches are excluded. Only the filename
|
||||
# is matched, not any directory component of the path.
|
||||
set all [list]
|
||||
foreach a $allquicktests {
|
||||
set bIn 1
|
||||
foreach x [split $::env(QUICKTEST_OMIT) ,] {
|
||||
if {[regexp $x [file tail $a]]} {
|
||||
set bIn 0
|
||||
break
|
||||
}
|
||||
}
|
||||
if {$bIn} {
|
||||
lappend all $a
|
||||
}
|
||||
}
|
||||
set allquicktests $all
|
||||
}
|
||||
|
||||
# If the TEST_FAILURE environment variable is set, it means that we what to
|
||||
|
Reference in New Issue
Block a user