Commit Graph

85 Commits

Author SHA1 Message Date
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
Xavier Delaruelle
3dd6e43836 Add support for csh/tcsh shells on sh-to-mod sub-cmd 2020-06-01 20:59:50 +02:00
Xavier Delaruelle
49b9717130 Add support for fish shell on sh-to-mod sub-cmd 2020-06-01 20:59:50 +02:00
Xavier Delaruelle
2c68a96e11 ts: add tests for 'sh-to-mod' sub-command 2020-06-01 20:59:50 +02:00
Xavier Delaruelle
b06dcb3fc3 Migrate 'is_stderr_tty' state retrieval to getState 2020-06-01 20:58:04 +02:00
Xavier Delaruelle
dbcb53ef6a Migrate 'term_columns' state retrieval to getState 2020-06-01 20:58:04 +02:00
Xavier Delaruelle
3d249ddd27 ts: add names with space in test example initrc 2020-03-19 13:42:29 +01:00
Xavier Delaruelle
99853361b1 ts: add more error stack tests 2020-03-08 10:09:32 +01:00
Xavier Delaruelle
a39755a210 ts: test unknown issue throw in 00/120 2020-03-05 05:58:21 +01:00
Xavier Delaruelle
50c446842d ts: adapt autoinit output test for 'ml' 2020-01-09 20:38:50 +01:00
Xavier Delaruelle
44666a9e0b Adapt parseModuleVersionSpecifier proc mlspec
Add a 'mlspec' argument to the parseModuleVersionSpecifier procedure to
indicate module specification comes or not from the 'ml' command. A
slightly different processing is applied in this case as module name may
be prefixed by a '-' character when specified over the 'ml' command to
indicate this module should be unloaded.

When mlspec is enabled two lists are returned by
parseModuleVersionSpecifier: one for the list of the module to load and
another for the modules to unload.
2020-01-09 20:38:50 +01:00
Xavier Delaruelle
5c61844ebc ts: add tests to improve on-the-fly proc define coverage 2020-01-03 18:12:55 +01:00
Xavier Delaruelle
bcb148917d ts: add tests to improve modEq procs coverage 2020-01-03 18:12:49 +01:00
Xavier Delaruelle
ca0f397045 ts: adapt tests to new config option home 2019-11-14 20:22:45 +01:00
Xavier Delaruelle
a7be90ae99 Update siteconfig.tcl files with new int config setup ways
Use the lappendConf procedure to set the locked_configs option and the
setConf procedure to set the avail_report_dir_sym and
avail_report_mfile_sym options.
2019-10-13 10:46:08 +02:00
Xavier Delaruelle
a61c67f643 ts: adapt tests to match new getConf debugging output 2019-10-13 10:46:08 +02:00