1
0
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:
dan
2020-08-13 17:27:57 +00:00
parent a3e6495970
commit 96e337df6b
3 changed files with 25 additions and 10 deletions

View File

@ -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