Commit Graph

4491 Commits

Author SHA1 Message Date
Xavier Delaruelle
ea90b93d25 ts: fix 50/400 tests when module was defined but uninstalled
Correct source-sh tests in 50/400 to succeed when tests are run in an
environment where module is defined but has been uninstalled. It
corresponds to the environment created for 'mrel' script execution.
2022-05-03 09:55:50 +02:00
Xavier Delaruelle
60f093d9e8 ts: fix 20/130 tests when run from path containing + char 2022-05-01 19:00:41 +02:00
Xavier Delaruelle
2bb8365cb2 script: no line number dependency for expected errors
Update mpub and mrel scripts not to depend on the line number expressed
in error message when comparing them to expected error message.
2022-05-01 07:38:31 +02:00
Xavier Delaruelle
29410fce95 doc: fix rst typo in 5.1 NEWS 2022-05-01 07:24:10 +02:00
Xavier Delaruelle
b7bd5aa56c Release of version 5.1.0 v5.1.0 2022-04-30 08:13:22 +02:00
Xavier Delaruelle
b6e176524c ts: tests tagging messages on verbose/verbose2 modes 2022-04-29 18:56:24 +02:00
Xavier Delaruelle
02ddfa1219 No Tagging msg block if hidden and nuasked
Do not output Tagging message block if module is set hidden-loaded and
evaluation has not been directly asked by user.

Add uasked argument to cmdModuleTag procedure to know if the evaluation
of module has been asked or not by user.
2022-04-29 18:47:48 +02:00
Xavier Delaruelle
bb5ec41cef doc: add examples in more tagging section in MIGRATING 2022-04-28 16:32:27 +02:00
Xavier Delaruelle
8df7fba12f doc: desc. tagging evaluation message 2022-04-28 15:28:14 +02:00
Xavier Delaruelle
678b4028af ts: adapt existing restore tests to the Tagging msg 2022-04-28 15:16:07 +02:00
Xavier Delaruelle
92cce2c96b Add Tagging message block
When just tagging a module already loaded, report a *Tagging* message
with module denomination. Like for *Loading* message, it is only seen
during a restore/source sub-commands or in verbose mode.
2022-04-28 15:15:45 +02:00
Xavier Delaruelle
9bff25c2d2 doc: fix log-module-command recipe siteconfig.tcl
Fix the siteconfig.tcl file of the log-module-command cookbook recipe
not to break when a file is sourced through cmdModuleSource. Limit the
addition of the 'auto' log field only if load evaluation comes from
cmdModuleLoad procedure.

Fixes #453
2022-04-28 08:55:10 +02:00
Xavier Delaruelle
fec30721bd doc: desc. tag report on load/unload/refresh msg block 2022-04-28 08:09:16 +02:00
Xavier Delaruelle
8a68787ef1 ts: update tests with tags reported in msg block 2022-04-28 07:32:46 +02:00
Xavier Delaruelle
99d9483ae6 Report module tags in header message block
Update Loading/Unloading/Refreshing header message block to render the
tags applying on the currently analyzed module over or along this module
name, as done when reporting loaded modules with list sub-command.
2022-04-27 08:38:01 +02:00
Xavier Delaruelle
f5d13dc78d Make getModuleDesignation rely on formatListEltToDisplay
Use formatListEltToDisplay in getModuleDesignation to render module
designation.
2022-04-27 07:58:06 +02:00
Xavier Delaruelle
da6ca79490 ts: update avail/list tests when space in module name 2022-04-26 20:22:35 +02:00
Xavier Delaruelle
77dc211841 Quote name if it contains space when listing modules
Update formatListEltToDisplay and formatListEltToLongDisplay to enclose
element name in single quote if it contains a space character. As a
result list and avail output will now report enclosed module names if
space character if found in them, like it is done when reporting module
designation as loading/unloading header.

Only enclose element name and not suffix, to follow the same output
approach than 'ls' command.
2022-04-26 20:22:35 +02:00
Xavier Delaruelle
7cec68b113 Register tag list in module designation
Update registerModuleDesignation procedure to also register the list of
tags applied along module name and variants.
2022-04-26 14:22:53 +02:00
Xavier Delaruelle
50fb319efc doc: desc. tags improvement in NEWS/MIGRATING 2022-04-26 09:50:08 +02:00
Xavier Delaruelle
30609bb381 doc: list mfcmd where --tag opt is available in design 2022-04-26 08:56:52 +02:00
Xavier Delaruelle
3d020186ac doc: link to --tag option section 2022-04-26 08:46:25 +02:00
Xavier Delaruelle
f93eed4cf5 gh: configure safe.directory git opt on Cygwin & win native 2022-04-25 18:12:18 +02:00
Xavier Delaruelle
67c7b09cc1 doc: mention --tag in Module tags section 2022-04-25 18:09:35 +02:00
Xavier Delaruelle
0a8c89b487 doc: --tag update tag list if mod is loaded already 2022-04-25 18:09:35 +02:00
Xavier Delaruelle
8eec2bd297 doc: add an option section for --tag in module(1) 2022-04-25 18:09:35 +02:00
Xavier Delaruelle
52c1319b99 ts: test tag set with full path module spec 2022-04-25 18:09:35 +02:00
Xavier Delaruelle
29970a1844 ts: add restore tests with tags set or not 2022-04-25 11:13:20 +02:00
Xavier Delaruelle
4461cafa47 Clear auto-loaded tag on cmdModuleTag
When the unset_extra flag is enabled, also remove the auto-loaded tag on
module if it is not part of the target tag_list.
2022-04-25 11:13:20 +02:00
Xavier Delaruelle
41d9bf0de5 Clear auto-loaded/keep-loaded tags when unloading
Remove from the in-memory knowledge the auto-loaded and keep-loaded tags
set on unloading modules. These tags are then forgotten and will not be
reapplied if module is currently reloading.
2022-04-25 11:13:20 +02:00
Xavier Delaruelle
262e5f319d Save/restore extra tags when reloading modules
Update reloadModuleListUnloadPhase and reloadModuleListLoadPhase
procedures to save extra tags of unloaded modules to re-inject them when
reloading these modules.
2022-04-25 11:13:20 +02:00
Xavier Delaruelle
0717eb2027 ts: update restore tests now extra tags are cleared 2022-04-25 08:15:46 +02:00
Xavier Delaruelle
0d6728d664 Clear extra tags when unloading module
Remove from the in-memory knowledge the extra tags set on unloading
modules. These extra tags are then forgotten and will not be reapplied
if module is currently reloading.
2022-04-25 08:15:46 +02:00
Xavier Delaruelle
aa0f3f33d2 Clear extra tags when restoring collection
When restoring a collection, unset the extra tags on loaded modules that
are not defined in collection.
2022-04-25 08:15:46 +02:00
Xavier Delaruelle
f4ce1ac72b Unset extra tags on cmdModuleTag
Add unset_extra argument to the cmdModuleTag procedure to remove, when
enabled, the extra tags currently set on designated modules that are not
part of the transmitted tag list.

Update every cmdModuleTag calls to take into account this new
unset_extra argument.
2022-04-25 08:15:46 +02:00
Xavier Delaruelle
92c9174615 doc: desc. updating tags on loaded mods in design doc 2022-04-25 08:15:46 +02:00
Xavier Delaruelle
bacf75eeab ts: add tests where tags are updated on loaded mods 2022-04-24 14:13:16 +02:00
Xavier Delaruelle
c7bd1b14d9 ts: fix existing tests to set tags on already loaded mod 2022-04-24 14:13:16 +02:00
Xavier Delaruelle
9a1c50bcd5 Apply new tags set on loaded requirement
Update the loadRequirementModuleList procedure to apply tags defined on
the first requirement found loaded.
2022-04-24 14:13:16 +02:00
Xavier Delaruelle
214f7ee66c Apply new tags set on loaded module
When a module load attempt is made on an already loaded module with
additional tag set, update the tag list set on this loaded module: add
the new tags not already set on the loaded module.
2022-04-24 14:13:13 +02:00
Xavier Delaruelle
8ea3be4aad cirrus: test over newer FreeBSD 12 release 2022-04-11 06:48:18 +02:00
Xavier Delaruelle
9f8d687375 doc: desc avail module subcmds in modulefile interp ctx 2022-04-11 06:24:59 +02:00
Xavier Delaruelle
b184c67f9e doc: add mfile/rc interp diff table in modulefile man 2022-04-10 18:33:06 +02:00
Xavier Delaruelle
35e2ade4b6 doc: mention rc files are not for module config 2022-04-09 18:22:59 +02:00
Xavier Delaruelle
0eeb35c378 doc: mention use/unuse in module modulefile man section 2022-04-08 07:06:24 +02:00
Xavier Delaruelle
18f374d6d9 doc: desc. coll file signature change in NEWS 2022-04-08 07:00:20 +02:00
Xavier Delaruelle
514bf4f707 ts: verify coll compat on all coll subcmds 2022-04-07 06:36:54 +02:00
Xavier Delaruelle
a83f80db7d ts: adapt existing tests now coll compat is verified 2022-04-07 06:36:54 +02:00
Xavier Delaruelle
f8c9af8cdc install: tcl/coll.tcl should be built
Need to build tcl/coll.tcl as this part of the code need to use the
@MODULES_VERSION@ pattern.
2022-04-07 06:36:54 +02:00
Xavier Delaruelle
091dca6a67 Check collections are valid when searching them
Update findCollections procedure to rely on a checkValidColl procedure
that verifies given collections can be read and are compatible with
current Modules version if they express a minimum version requirement.

As a side effect, when listing available collections with savelist
sub-command, now the collections that cannot be read are withdrawn from
result list.
2022-04-07 06:36:54 +02:00