Xavier Delaruelle
a0ccb6535d
Record avail mods matching mod spec when parsing it
...
Update module specification parsing mechanism to add a getavails
argument. It indicates that available modules matching spec should be
searched in enabled modulepaths to record them in module version
specification structure.
When searching for available matching modules, disable extra match
search to avoid an infinite resolution loop.
2023-04-27 21:04:07 +02:00
Xavier Delaruelle
0fc8ac2bd4
Raise error when extra spec on non-search cmds
...
Extra specification in module search query is only allowed on search
sub-commands (avail, paths, whatis). An error is raised when parsing a
module specification if it contains an extra specification on a
non-search context.
xtspec argument is added to parseModuleSpecification procedure to know
if extra specification is allowed or not.
2023-04-27 21:04:07 +02:00
Xavier Delaruelle
d6e0afc2ed
Allow module spec without name on several subcmds
...
Allow module specification with variant definition and no module name
version for avail, list, paths and whatis sub-commands.
2023-04-27 21:02:51 +02:00
Xavier Delaruelle
98af688203
Catch collection dir error and report correct msg
...
Fixes #482
2023-01-16 19:43:04 +01:00
Xavier Delaruelle
70b06e4160
ts: adapt tests to specific cache read code
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
ab00e46398
ts: add/update cachebuild tests with real cache file
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
56085aac99
ts: add initial cachebuild sub-cmd tests
2022-11-30 08:07:12 +01:00
Xavier Delaruelle
dca45423d1
ts: add cacheclear sub-cmd tests
2022-11-28 03:58:56 +01:00
Xavier Delaruelle
3a8a249ac6
ts: test specific vars/cmds hooks in 50/560
2022-11-01 20:30:43 +01:00
Xavier Delaruelle
43beec6df5
Add start_idx argument on displayElementList
...
Add start_idx argument on displayElementList procedure to define what is
the starting index for the elements to report.
2022-10-02 14:26:28 +02:00
Xavier Delaruelle
b876754e98
Add notset_equals_empty arg to getDiffBetweenArray
...
Update getDiffBetweenArray procedure to add notset_equals_empty argument
(disabled by default). When enabled not-set element in array is
equivalent to element set to an empty value.
2022-09-28 06:42:59 +02:00
Xavier Delaruelle
b3c43f06bb
ts: test 'module restore' without arg in initrc
2022-08-25 08:10:01 +02:00
Xavier Delaruelle
87d23931e6
ts: add reset sub-cmd tests
2022-08-25 08:10:01 +02:00
Xavier Delaruelle
e8c6b9db6e
ts: add autoinit tests for __MODULES_LMINIT
2022-08-25 08:10:01 +02:00
Xavier Delaruelle
16a152506e
ts: test module over a removed current working dir
2022-05-21 18:39:00 +02:00
Xavier Delaruelle
351eef8dc9
ts: test removal of alias/func/comp from source-sh script
2022-05-08 10:02:19 +02:00
Xavier Delaruelle
5d35d3940b
ts: add readCollectionContent coverage test
2022-05-04 07:38:12 +02:00
Xavier Delaruelle
629637d118
ts: add unsetModuleTag/unsetModuleExtraTag coverage test
2022-05-03 16:25:49 +02:00
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
e45eb859a1
ts/lib: test tcl ext lib against a failed sysconf call
...
Add an utility library that supersedes the sysconf function from libc.
The sysconf function from this added library always returns an error
(-1). It is used for coverage test of the sysconf call made within the
Envmodules_InitStateUsergroupsObjCmd function of the Tcl extension
library.
2022-03-31 13:06:26 +02:00
Xavier Delaruelle
7ddba79233
ts: test fish complete def without -c when fish>=3.2
...
Test fish shell completion definition without -c/--complete option when
fish is >=3.2 instead of >=3.0.
2022-02-25 14:03:40 +01:00
Xavier Delaruelle
cd4015b106
Revert work on noglob_eval_shells config option
...
Remove entirely the work on the noglob_eval_shells option as enclosing
in quotes the generated output of modulecmd.tcl to pass it to the eval
command is equivalent to disable the pathname expansion mechanism of
sh-kind shells.
2022-02-24 18:24:47 +01:00
Xavier Delaruelle
695238dbf8
ts: test wildcard char in func on sh-to-mod tests
2022-02-24 12:19:57 +01:00
Xavier Delaruelle
58ea6e8224
ts: test wildcard char in envvar on sh-to-mod tests
2022-02-24 11:24:33 +01:00
Xavier Delaruelle
344df27801
ts: test sh-to-mod against fish nested func/_ in name
2022-02-21 08:40:46 +01:00
Xavier Delaruelle
c80f663356
ts: test noglob_eval_shells over autoinit subcmd
2022-02-19 15:56:44 +01:00
Dimitri Papadopoulos
e9a6678eec
Fix typos found by codespell
2022-02-15 05:54:03 +01:00
Xavier Delaruelle
9b96c02b54
ts: test fish complete on sh-to-mod/source-sh
2022-02-11 07:16:55 +01:00
Xavier Delaruelle
74fdd916a7
ts: test bash complete on sh-to-mod/source-sh
2022-02-11 07:16:55 +01:00
Xavier Delaruelle
add3e20173
ts: test tcsh complete on sh-to-mod/source-sh
2022-02-11 07:16:55 +01:00
Xavier Delaruelle
3eeca2e796
Restore psuf arg on modEq proc
...
Pattern suffix is useful again on modEq comparison procedure due to the
introduction of search capabilities on the list sub-command.
2022-01-23 22:19:33 +01:00
Xavier Delaruelle
f130326bb8
ts: module usage in script run through sh-to-mod
2021-10-25 09:35:16 +02:00
Xavier Delaruelle
6e53e78d91
ts: check autoinit loop safeguard mechanism in 70/120
2021-09-27 07:27:32 +02:00
Xavier Delaruelle
4d76fdd3e8
ts: add silent_shell_debug autoinit test
2021-09-01 07:48:36 +02:00
Xavier Delaruelle
f95abe7cb8
ts: add some quarantine tests
2021-08-31 05:59:35 +02:00
Xavier Delaruelle
7a516a8ad9
ts: add tests for 'refresh' subcmd
2021-08-14 19:36:22 +02:00
Xavier Delaruelle
1846866ff3
ts: add new ref count tests on *use/*-path subcmds
2021-08-11 15:28:39 +02:00
Xavier Delaruelle
0346fadcbb
ts: update/clean tests with specific answer for Tcl 8.4
2021-07-25 11:01:48 +02:00
Xavier Delaruelle
0689bb5bb9
ts: use default conf names in example for tests
2021-07-24 14:06:06 +02:00
Xavier Delaruelle
1756b5a35c
ts: test try-load in rc file
2021-07-04 20:34:57 +02:00
Xavier Delaruelle
e8a45109b3
ts: variant_shortcut specific config tests in 70/377
2021-06-28 20:44:24 +02:00
Xavier Delaruelle
2512130337
ts: update tests using '+' in mod name in 00/120
2021-06-21 20:44:07 +02:00
Xavier Delaruelle
10d4931761
ts: adapt err msg after parseModuleSpecification update
2021-06-21 20:44:06 +02:00
Xavier Delaruelle
a35530a929
ts: test getModuleDesignation when sgr=0 in 00/120
2021-06-21 20:43:48 +02:00
Xavier Delaruelle
c4ad9b26d6
ts: fix modVersCmp redefinition test in 00/120
2021-05-19 21:07:34 +02:00
Xavier Delaruelle
ce6dc6f80d
Rename parseModuleVersionSpecifier into parseModuleSpecification
...
Rename the parseModuleVersionSpecifier procedure into
parseModuleSpecification, as it will now on take in charge more than
just the version specifier parsing (specified variants will be parsed
too).
2021-05-11 07:50:43 +02:00
Xavier Delaruelle
a5594b1625
ts: update tests relying on avail_report_{dir,mfile}_sym cfg
2021-02-17 16:04:05 +01:00
Xavier Delaruelle
2165f0187e
ts: update tests of shells_with_ksh_fpath config
...
Now configuration value expect a specific list of shell names separated
by colon character.
2021-02-08 07:17:38 +01:00
Xavier Delaruelle
c23a5d48b3
ts: update readFile bad call tests in 00/120
2021-01-10 20:42:07 +01:00
Xavier Delaruelle
f716abbedd
ts: check tag abbrev in 70/321
2020-12-18 18:58:37 +01:00