Commit Graph

1652 Commits

Author SHA1 Message Date
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
69ffe7c5a4 ts: adapt existing tests to extra specifier changes 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
4e945db837 ts: test extra spec on non-search cmds in 51/040 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
90703a61d7 Raise error when unknown extra specifier used 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
d3527eb6df ts: add family extra specifier tests in 51/042 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
f7033af89d ts: add setenv duplicate definition test in 51/041 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
68635ff35a ts: test unknown extra specifier and special char in 50/040 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
63d843b4b3 ts: add extra specifier tests with source-sh in 51/041 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
a42856801e ts: add erroneous env extra specifier tests in 51/041 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
0415e64cf7 ts: add other env extra specifier tests in 51/041 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
c5bbf6ea44 ts: add envvar extra specifier tests in 51/041 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
afc75a6811 ts: initial tests for extra specifiers in 51/040 2023-04-27 21:04:07 +02:00
Xavier Delaruelle
68b209862c Fix EMS filter against alias overriding dir
Directory information override alias in result structure if extra match
search is required.
2023-04-27 21:02:52 +02:00
Xavier Delaruelle
1c6e8aefd7 Fix EMS filter against not matching dot hidden symbol 2023-04-27 21:02:52 +02:00
Xavier Delaruelle
d7edf1704e ts: access issue and EMS on avail/whatis/paths 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
1baaa25290 ts: special chars and EMS on avail/whatis/paths 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
a67072135c ts: add no-indepth avail EMS tests in 51/030 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
78e8552c1d ts: auto symbols and EMS on avail/whatis/paths 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
1a7ebd5a16 ts: default symbol and EMS on avail/whatis/paths 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
060136f0d9 ts: adapt wild variant avail/whatis/paths tests in 51/03{0,1,2} 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
9bac2b91a0 ts: test alias/sym filtering during EMS on paths 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
e6478a96a1 ts: test alias/sym filtering during EMS on whatis 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
4125e709d2 ts: test alias filtering during extra match search in 51/030 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
d5e3047917 ts: test symbol filtering during extra match search in 51/030 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
45cdac8b19 ts: no mod name/vers but vr spec on avail/paths in 70/370 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
c12e49c458 ts: no mod name/vers but vr spec on whatis in 70/375 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
6d088f79d7 ts: no mod name/vers but vr spec on colored avail in 51/021 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
30da56a9d1 ts: test variant spec only on module list in 70/370 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
cc084379ff ts: test variant spec highlight on module list in 70/370 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
3e597c3916 ts: test free value variant spec on av/is-avail/wh/paths 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
f451fe74a5 ts: test to color selected variant name and value in 51/021 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
e09ee5da70 ts: adapt existing sgr variant tests
Take into account sgr output code change due to variant sgr highlight
feature.
2023-04-27 21:02:51 +02:00
Xavier Delaruelle
a12c0ea270 ts: fix version module avail resolution in install 00/030 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
9ba653eead ts: add hide/forbid tag tests applying to variant in 70/376 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
758b684450 ts: test variant spec on avail/whatis/paths
Adapt existing avail, whatis, is-avail, path and paths tests that
demonstrate whether sub-command takes variant specification into account
or not.

Add boolean variant, shortcut variant tests. Add also more tests of scan
evaluation for avail/whatis/paths when module is forbidden.
2023-04-27 21:02:51 +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
baaa5ea025 ts: add diverse scan mode eval tests in 51/030 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
1ac710676e ts: test scan evaluation and output with variants in 51/020 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
97706c6dfc ts: add avail report sgr tests for free-value variant in 51/021 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
fba6cb8a8b ts: test avail output with rendition of default/loaded variant 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
9f1e94fac5 ts: test list output with rendition of default variant 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
8c1831bffa ts: test scan mode on module-info in 50/{083,084} 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
54607fd6f3 ts: adapt tests for variant val in avail_*output cfgs in 70/{220,360} 2023-04-27 21:02:51 +02:00
Xavier Delaruelle
4bf77a0e4b ts: escape shell text output for regexp enabled tests 2023-02-27 07:04:43 +01:00
Xavier Delaruelle
4d749f17a1 ts: fix tests when run with Tcl 9.0 2023-02-12 17:36:19 +01:00
Xavier Delaruelle
009c20326f ts: update procedure to allow tests to fail
Provide a way to track tests that are expected to fail. Add failcmd
argument on all test procedure to indicate the fail command to use to
report test failure. Use fail command by default. When using xfail
command, it indicates that test is expected to fail.
2023-02-12 14:44:23 +01:00
Xavier Delaruelle
a20339f0dc ts: fix tests when run with Tcl 8.7 2023-02-11 18:40:14 +01:00
Xavier Delaruelle
5ca3b03c7f ts: adapt 70/210 test result for MSYS platform 2023-01-16 19:43:12 +01:00
Xavier Delaruelle
98af688203 Catch collection dir error and report correct msg
Fixes #482
2023-01-16 19:43:04 +01:00