2996 Commits

Author SHA1 Message Date
Xavier Delaruelle
58248128dc Release of version 4.6.0 v4.6.0 2020-09-16 06:24:27 +02:00
Xavier Delaruelle
ef419b262e script: build src with compat vers enabled on mrel 2020-09-16 06:09:28 +02:00
Xavier Delaruelle
0dbcc45250 doc: desc. blank value set on win platform in NEWS 2020-09-15 06:11:06 +02:00
Xavier Delaruelle
54a7fe9fab Simplify arg setup to call findModules
For the record, findModules need to get all root module-related elements
to correctly compute auto symbols to know if they apply to searched
modules.
2020-09-13 21:41:31 +02:00
Xavier Delaruelle
e7fe066bcf Use get-env to manipulate env var in cmdModuleAutoinit
As LOADEDMODULES and MODULEPATH are defined empty in cmdModuleAutoinit
procedure, use the get-env procedure to manipulate these variables to
avoid accessing undefined variable on Windows platform (as setting these
variables to an empty string means to unset these variables on this
platform).
2020-09-10 20:53:20 +02:00
Xavier Delaruelle
ef95c7fb55 unset env var when setting it to empty val on Win
When an empty string is set to an environment variable on Windows
platform, this variable is unset yet still seen defined by 'info exists'
command on Tcl, which leads to errors when trying to access variable
content. So when trying to set an empty string to an environment
variable on Windows platform, call for variable unset instead to reflect
underlying OS behavior.
2020-09-10 20:53:20 +02:00
Xavier Delaruelle
ea66fa3cb0 travis: disable git clone depth 2020-09-10 20:53:20 +02:00
Xavier Delaruelle
ceff05fa49 appveyor: use BAWT Tcl installer for native Win test 2020-09-09 05:56:05 +02:00
Xavier Delaruelle
a35d7dc22d doc: fix some typos in MIGRATING 2020-09-09 05:56:05 +02:00
Xavier Delaruelle
64302e957d doc: desc. module-forbid in MIGRATING 2020-09-08 07:22:25 +02:00
Xavier Delaruelle
1f19b8a475 doc: desc. trace verbosity mode in MIGRATING 2020-09-07 21:03:20 +02:00
Xavier Delaruelle
fbfda9c95f ts: test trace verbosity in 00/140 and 70/230 2020-09-07 21:03:20 +02:00
Xavier Delaruelle
e29b84fdeb doc: desc. trace verbosity in NEWS 2020-09-06 16:32:10 +02:00
Xavier Delaruelle
12305efe17 doc: desc. trace in INSTALL/module(1) 2020-09-06 15:31:30 +02:00
Xavier Delaruelle
4e0d8b5966 Add 'tr' sgr color key for trace messages 2020-09-06 15:31:04 +02:00
Xavier Delaruelle
b612bf5eae ts: adapt existing tests for new trace verbosity 2020-09-06 15:31:04 +02:00
Xavier Delaruelle
e325ce434e install: add support for MinGW platform
Look for `make` rather `gmake` on MinGW and build library with a `.dll`
extension on this platform.
2020-09-06 15:31:04 +02:00
Xavier Delaruelle
67292eae25 doc: finalize module-hide desc. in MIGRATING 2020-09-06 15:31:04 +02:00
Xavier Delaruelle
06d68bfd69 Rework trace verbosity level
Report module resolution/search/selection/evaluation to trace big steps
of modulecmd.tcl activity.
2020-09-06 09:34:06 +02:00
Xavier Delaruelle
ff357907ec ts: test debug2 verbosity in 70/{220,230} 2020-09-05 21:39:27 +02:00
Xavier Delaruelle
830e2ca5a7 doc: desc. debug2 verbosity mode in diff/man/NEWS/INSTALL 2020-09-05 21:39:27 +02:00
Xavier Delaruelle
aa0c357260 Rework current trace verbose mode into debug2 mode
Report procedure call in addition to other debug messages through the
`debug2` verbosity level rather the `trace` level (that is preserved for
another task).

When -D/--debug option is set multiple times, `debug2` mode is set.
2020-09-05 15:35:44 +02:00
Xavier Delaruelle
460bf7c84a Add caller argument to reportDebug proc
Introduce the `caller` argument to the reportDebug procedure to get the
ability to define the calling procedure name to report. This argument is
especially used by the initial reportDebug procedure set prior report
initialization, to send toward final reportDebug procedure the actual
caller name.
2020-09-05 15:35:44 +02:00
Xavier Delaruelle
e039eb9fac script: add avail3/whatis3 tests to mb
Bench new hide/forbid features mixed with advanced version specifiers
syntax. These new tests only apply to newer versions.
2020-09-02 06:09:17 +02:00
Xavier Delaruelle
cdb338b4fe doc: merge release of version 4.5.3 2020-08-31 21:43:14 +02:00
Xavier Delaruelle
db364fc8b3 Make --before matches if strictly below
Instead of matching past or current time, make value of `--before`
option only match if specified time is over.
2020-08-31 13:19:19 +02:00
Xavier Delaruelle
143ced92f1 ts: help old dejagnu version to load msgcat cmd 2020-08-31 07:03:03 +02:00
Xavier Delaruelle
d10d25d565 ts: test when nealy-forbidden tag applies 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
89386f8916 doc: desc. nearly-forbidden feature and opts in design notes 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
0a0516db98 doc: desc. nearly-forbidden feature and opts in NEWS 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
9f0e64badd doc: desc. --nearly-message option in modulefile(4) man 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
55370d8541 Add --nearly-message option to module-forbid command
Add the --nearly-message option on module-forbid command to enable set
of specific additionnal error message when an attempt to evaluate a
*nearly forbidden* module is made.

When defined, record message as a property of the nearly-forbidden tag.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
e8d656d0dd Warn when evaluate a nearly-forbidden module
Produce a warning message when a module with *nearly-forbidden* is
evaluated. Message produced indicate the date time starting when module
will effectively be forbidden.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
a87706dcfd Set nearly-forbidden tag if in range
Update parseApplicationCriteriaArgs procedure to get a *near range in
seconds* as first argument, then determine in this procedure if the
*after* criteria is near. Add this information and the *after* criteria
value to the list of returned values.

With these new informations, the *nearly-forbidden* tag is set in
module-forbid for module specification that are close to reach the
*after* limit defined.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
487dc17c10 ts: adapt tests for nearly_forbidden_days config 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
733aedd0eb doc: desc. nearly_forbidden_days config in man/diff docs 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
fb8b8a2f0b init: add nearly_forbidden_days config in completion scripts 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
4efcf2bb2a Add nearly_forbidden_days configuration
Introduce the `nearly_forbidden_days` configuration to determine the
number of days a module should be considered *nearly forbidden* prior
reaching its expiry date set by `module-forbid` modulefile command.

Default value for this option is obtained from
--with-nearly-forbidden-days configure option, which is set to 14 days
by default.

Configuration value can be superseded by use of
MODULES_NEARLY_FORBIDDEN_DAYS environment variable.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
fd06ddfc4c Validate config value against class
Add the ability to validate a configuration value against a value class
(integer, string, ...) rather a list of accepted values. See list of
accepted class names on Tcl `string is` command.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
178b9ef6df install: add --with-nearly-forbidden-days configure opt
Introduce the --with-nearly-forbidden-days ./configure script option to
define the number of days a module is considered nearly forbidden prior
reaching its expiry date limit set by module-forbid command.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
47b0b347ec travis: increase mt run timeout for macos coverage build 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
148a1c90e6 doc: desc. --message in module-forbid design notes 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
06c18f55a5 ts: test --message option in 20/115 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
67e1540542 Add --message option to module-forbid command
Add the --message option on module-forbid command to enable set of
specific additionnal error message when an attempt to evaluate a
forbidden module is made.

When defined, record message as a property of the forbidden tag.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
0fd462feb0 Record properties along tag
Adapt setModspecTag/getModuleTag/isModuleTagged procedure to give the
ability to set a list of properties for a tag. Add getModuleTagProp
procedure to retrieve the properties associated to recorded tag.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
fb703b5b82 doc: desc --message module-forbid option in NEWS/modulefile(4) 2020-08-28 07:18:25 +02:00
Xavier Delaruelle
ae9570137f Define forbidden err msg from getForbiddenMsg proc
Add getForbiddenMsg procedure to generate error message obtained when
trying to evaluate a forbidden module.
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
d7b9d1ecee ts: add module-forbid tests
Tests over different kind of elements and coupled with different kind of
module-hide commands
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
c6a6439312 ts: reduce/adapt number of module-forbid tests
To avoid duplication with module-hide --hard tests
2020-08-28 07:18:25 +02:00
Xavier Delaruelle
588cb0a594 doc: update desc. of module-forbid in design notes 2020-08-28 07:18:25 +02:00