mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-18 06:53:35 -04: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user