Commit Graph

69 Commits

Author SHA1 Message Date
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
Xavier Delaruelle
85389164b5 ts: test initrc eval output during autoinit 2019-08-15 19:46:19 +02:00
Xavier Delaruelle
dbea39b5bd ts/lib: test tcl ext lib against a failed closedir call
Add an utility library that supersedes the closedir function from libc.
The closedir function from this added library always returns an error
(-1). It is used for coverage test of the closedir call made withing the
Envmodules_GetFilesInDirectoryObjCmd function of the Tcl extension
library.
2019-08-09 20:50:58 +02:00
Xavier Delaruelle
f9d090dc4f ts: test tcl ext lib procedures against erroneous calls 2019-08-08 22:15:43 +02:00
Xavier Delaruelle
81b3bcd2bf ts: load tcl ext lib by tclsh83 in 00/120 2019-08-08 21:16:43 +02:00
Xavier Delaruelle
7e8006942d Add ability to control message verbosity
Add a ``verbosity`` configuration option to define the default message
verbosity level (between a ``normal`` and a ``debug`` level). This
option could be set at ``./configure`` time with ``--with-verbosity``
option. It could be superseded with the ``MODULES_VERBOSITY``
environment variable, that could be set with ``config`` module
sub-command through the ``verbosity`` option.

Defining a ``debug`` verbosity level at the command-line level is still
achieved by using the ``-D`` or ``--debug`` command-line switches.
2019-07-23 09:50:42 +02:00
Xavier Delaruelle
fa1549d3f6 ts: test init modulerc that disables set_shell_startup 2019-07-07 15:56:47 +02:00
Xavier Delaruelle
ff145a56fc init: mention possible config set in modulerc 2019-07-05 21:42:34 +02:00
Xavier Delaruelle
1a52463b96 install: replaces --enable-extra-siteconfig with --with-locked-configs
Add to the configure script the --with-locked-configs option to ignore
environment variable superseding of Modules configurations defined in
modulecmd.tcl script. Lockable configuration option are extra_siteconfig.
Currently locked options are reported through the locked_configs option
on the config sub-command.

This new configure option replces --enable-extra-siteconfig which was
dedicated to the control over the MODULES_SITECONFIG variable.
2019-06-08 08:04:49 +02:00
Xavier Delaruelle
8f8b74398a Add ability to disallow MODULES_SITECONFIG
Add to the configure script the `--enable-extra-siteconfig` and
`--disable-extra-siteconfig` options to allow or forbid the definition
of a site-specific configuration script controlled with the
`MODULES_SITECONFIG` environment variable.

These options control the default value of the `g_extrasiteconfig`
variable in `modulecmd.tcl`. If this variable is true (by default),
MODULES_SITECONFIG is looked at the siteconfig sourcing time. Thus the
primary siteconfig.tcl can set the variable to false to ensure the
extra siteconfig is disabled whatever the option passed at ./configure
time.
2019-05-20 20:36:56 +02:00
Xavier Delaruelle
03fd7ea46e ts: superseded defs between siteconfig files 2019-05-14 06:32:30 +02:00
Xavier Delaruelle
22495fd5cf adding documentation and tests for MODULES_SITECONFIG 2019-05-09 07:25:34 +02:00
Xavier Delaruelle
098a4345a4 ts: check clear cmd confirmation msg 2019-05-05 11:30:40 +02:00
Xavier Delaruelle
25deb44e51 ts: test calling color initialization procedures twice 2019-05-03 21:37:28 +02:00
Xavier Delaruelle
f8fb60f119 ts: adapt existing tests for color 2019-05-03 14:01:22 +02:00
Xavier Delaruelle
6a35699a6e ts: improve getDiffBetweenList proc test coverage 2019-04-25 18:54:27 +02:00
Xavier Delaruelle
a36d19c311 ts: check getLoadedConflict proc in non-serialized mode 2019-02-27 06:38:28 +01:00