ts: improve coverage of getCmpSpecFromVersSpec proc
Some checks failed
easybuild-tests / framework (Tcl) (push) Has been cancelled
lint-tests / lint-all (push) Has been cancelled
linux-tests / tcl86-nolibtclenvmodules (push) Has been cancelled
linux-tests / tcl85-nolibtclenvmodules (push) Has been cancelled
linux-tests / tcl85-2 (push) Has been cancelled
linux-tests / tcl86 (push) Has been cancelled
linux-tests / tcl85 (push) Has been cancelled
linux-tests / tcl87 (push) Has been cancelled
linux-tests / tcl90 (push) Has been cancelled
windows-tests / native-cmd (push) Has been cancelled
windows-tests / native-pwsh (push) Has been cancelled
windows-tests / cygwin (push) Has been cancelled
windows-tests / msys (push) Has been cancelled

Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
This commit is contained in:
Xavier Delaruelle
2025-11-24 07:59:33 +01:00
parent bb3d124867
commit 5d76c11d41
2 changed files with 11 additions and 0 deletions

View File

@@ -690,4 +690,8 @@ if {[info exists env(TESTSUITE_ENABLE_SITECONFIG_GETHELPLINES)]} {
report [string length [getModuleHelpLines]]
}
if {[info exists env(TESTSUITE_ENABLE_SITECONFIG_GETCMPSPECFROMVERSSPEC)]} {
report [getCmpSpecFromVersSpec unk]
}
}

View File

@@ -762,6 +762,13 @@ lappend ans $vers_reportre
testouterr_cmd_re sh -V OK [join $ans \n]
unsetenv_var TESTSUITE_ENABLE_SITECONFIG_GETHELPLINES
setenv_var TESTSUITE_ENABLE_SITECONFIG_GETCMPSPECFROMVERSSPEC 1
set ans [list]
lappend ans eq
lappend ans $vers_reportre
testouterr_cmd_re sh -V OK [join $ans \n]
unsetenv_var TESTSUITE_ENABLE_SITECONFIG_GETCMPSPECFROMVERSSPEC
} elseif {$verbose} {
send_user "\tSkip tests relying on an excepted siteconfig file installed\n"
}