mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-22 13:21:27 +01:00
45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully.
Have V01zmodload.ztst check that all modules enabled in config.modules load successfully. With this change, the test files for individual modules may assume that if 'zmodload' fails that must be because the module hadn't been compiled in, and mark themselves as skipped in that case.
This commit is contained in:
parent
2a9674862e
commit
32c4ed3977
3 changed files with 8 additions and 3 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2020-03-26 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 45591 (Cf. 45587, 45620): Test/V01zmodload.ztst,
|
||||
Test/V07pcre.ztst: In the test suite, centralize testing that
|
||||
compiled modules can be loaded successfully.
|
||||
|
||||
2020-03-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 45616: Src/loop.c, Test/A01grammar.ztst: Remove tokens
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
|
||||
for m in $mods
|
||||
do
|
||||
zmodload $m || mods[(r)$m]=()
|
||||
zmodload $m || return $?
|
||||
done
|
||||
0d:Test loading of all compiled modules
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
%prep
|
||||
|
||||
if grep '^name=zsh/pcre .* link=no ' $ZTST_testdir/../config.modules >/dev/null
|
||||
if ! zmodload zsh/pcre 2>/dev/null; then
|
||||
then
|
||||
ZTST_unimplemented="the zsh/pcre module was disabled by configure (see config.modules)"
|
||||
return 0
|
||||
fi
|
||||
zmodload zsh/pcre
|
||||
setopt rematch_pcre
|
||||
# Find a UTF-8 locale.
|
||||
setopt multibyte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue