Commit Graph

100 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
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
Xavier Delaruelle
1089dace6e ts: update tests for runtime state handling changes 2020-11-15 10:03:54 +01:00
Xavier Delaruelle
d4f21a837c ts: test shells_with_ksh_fpath in 70/120 2020-11-15 10:03:42 +01:00
Xavier Delaruelle
058fd0b59f ts: test wildcard char in modulespath conf 2020-11-15 10:03:31 +01:00
Xavier Delaruelle
2a8ec73024 ts: improve coverage of sh-to-mod proc 2020-09-23 06:50:49 +02:00
Xavier Delaruelle
76f0474ad0 Remove useless psuf arg on modEq proc
Pattern suffix is not used anymore in modEq comparison procedure (it is
only useful for modEqStatic procedure). So remove this useless argument.
2020-09-20 15:41:19 +02:00
Xavier Delaruelle
43798092be ts: check parseDateTimeArg lib func against bad date 2020-09-19 19:39:31 +00:00
Xavier Delaruelle
72ef59f412 ts/lib: test tcl ext lib against a failed mktime call
Add an utility library that supersedes the mktime function from libc.
The mktime function from this added library always returns an error
(-1). It is used for coverage test of the mktime call made within the
Envmodules_ParseDateTimeArgObjCmd function of the Tcl extension library.
2020-09-18 22:41:32 +02:00
Xavier Delaruelle
98a4f8f038 ts: test parseDateTimeArg proc with no arg in 00/120 2020-09-18 22:14:26 +02:00
Xavier Delaruelle
f868cc2d11 ts/lib: test tcl ext lib against a failed time call
Add an utility library that supersedes the time function from libc. The
time function from this added library always returns an error (-1). It
is used for coverage test of the time call made within the
Envmodules_InitStateClockSecondsObjCmd function of the Tcl extension
library.
2020-09-16 22:32:22 +02:00
Xavier Delaruelle
7fac70834a Remove fetch_hidden arg on getFilesInDirectory proc
Always return hidden directory entries.

Update both pure-Tcl and C version of getFilesInDirectory procedure
2020-08-10 09:00:17 +02:00
Xavier Delaruelle
d72eb251ea ts/lib: test tcl ext lib against a dup ent res getgroups call
Add an utility library that supersedes the getgroups function from libc.
The getgroups function from this added library always returns a list
with 3 elements that all correspond to user's primary group. It is used
for coverage test of the getgroups call made within the
Envmodules_InitStateUsergroupsObjCmd function of the Tcl extension
library.
2020-08-10 08:06:09 +02:00
Xavier Delaruelle
87f8e51823 ts/lib: test tcl ext lib against a zero res getgroups call
Add an utility library that supersedes the getgroups function from libc.
The getgroups function from this added library always returns an empty
result (0). It is used for coverage test of the getgroups call made
within the Envmodules_InitStateUsergroupsObjCmd function of the Tcl
extension library.
2020-07-16 21:53:51 +02:00
Xavier Delaruelle
1675363e0e ts/lib: test tcl ext lib against a failed getgrgid call
Add an utility library that supersedes the getgrgid function from libc.
The getgrgid function from this added library always returns an error
(NULL). It is used for coverage test of the getgrgid call made within the
Envmodules_InitStateUsergroupsObjCmd function of the Tcl extension
library.
2020-07-16 21:53:51 +02:00
Xavier Delaruelle
166096f4d8 ts/lib: test tcl ext lib against a failed getgroups call
Add an utility library that supersedes the getgroups function from libc.
The getgroups function from this added library always returns an error
(-1). It is used for coverage test of the getgroups call made within the
Envmodules_InitStateUsergroupsObjCmd function of the Tcl extension
library.
2020-07-16 21:53:51 +02:00
Xavier Delaruelle
4542008335 ts/lib: test tcl ext lib against a failed getpwuid call
Add an utility library that supersedes the getpwuid function from libc.
The getpwuid function from this added library always returns an error
(NULL). It is used for coverage test of the getpwuid call made within
the Envmodules_InitStateUsernameObjCmd function of the Tcl extension
library.
2020-07-16 21:53:51 +02:00
Xavier Delaruelle
71d48f03c0 ts: test 'source-sh' modulefile command 2020-06-01 21:03:12 +02:00
Xavier Delaruelle
20b28d1091 ts: add test for path-like variable in 70/310 2020-06-01 20:59:50 +02:00
Xavier Delaruelle
f5991f09c6 ts: rework FOOSHELL var test in 70/310
Prefer BASH environment variable to SHELL to check bash binary location
used for current shell session.
2020-06-01 20:59:50 +02:00