Commit Graph

1327 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
458f6a5c9e ts: update silent_shell_debug config tests 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
3577af42f8 ts: test quarantine_support config option 2021-08-26 20:14:06 +02:00
Xavier Delaruelle
c273b5696d ts: update module function def/quarantine tests 2021-08-26 06:00:59 +02:00
Xavier Delaruelle
7c0c7b3817 ts: test magic cookie on init/global/user rc files 2021-08-22 14:46:50 +02:00
Xavier Delaruelle
3d1d5cf979 ts: fix install tests when dfl loadedmodules are set
When the loadedmodules installation option is set and if the module
initialization is triggered then the default module to load will emit a
message on stderr. Adapt the testsuite code, especially the _test_sub
procedure to automatically take this situation into account (no need to
set these load message in each expected stderr answer).
2021-08-21 18:36:55 +02:00
Xavier Delaruelle
8bbab5a988 Error if bad arg number on unsetenv
Raise error if more than 2 arguments are set on the unsetenv modulefile
command. Specific code need to be set here as we now use args for the
unsetenv procedure (to distinguish between no value to restore and an
empty string value to restore)
2021-08-21 14:31:09 +02:00
Xavier Delaruelle
7783d4e67b Fix module load/unload msg of restore/source subcmds
Report the modules loading and unloading during the `module` command
initialization (i.e., during the evaluation of the `initrc` configuration
file). These report messages are disabled when the `verbosity`
configuration option is set to `concise` or `silent`.

During a module `restore` or `source`, only report the module load and
unload directly triggered by these sub-commands. Load and unload
triggered by other modules are reported through the automated module
handling messages of the main modules.

Register the cmdModuleSource call made by cmdModuleAutoinit as a
`source` command call to benefit from the message report mechanism. Do
not apply the same for the cmdModuleSource call made by runModulerc as
those calls will be changed to execute-modulerc in the future.
2021-08-21 14:31:09 +02:00
Xavier Delaruelle
6271aa9724 ts: adapt 'module source' tests
Do not remove now useless source/* modulefiles not to break 'module
avail' bench comparison with previous versions.
2021-08-20 18:44:24 +02:00
Xavier Delaruelle
6fcc41d972 Remove useless tcl_version_lt85 internal state
Remove internal state tcl_version_lt85 as Tcl 8.5+ is now a requirement.
2021-08-20 06:35:48 +02:00
Xavier Delaruelle
9598a480ac Enable is-used mfcmd in modulerc
Make is-used modulefile command available from a modulerc evaluation
context.
2021-08-19 06:49:28 +02:00
Xavier Delaruelle
68ac915765 Enable system mfcmd in modulerc
Fully enable the system modulefile command in modulerc, whatever the
underlying module evaluation mode (unload, display, whatis, etc).
2021-08-19 06:29:19 +02:00
Xavier Delaruelle
5f2112ff71 ts: update tests of unsetenv value to restore mechanism 2021-08-18 21:20:13 +02:00
Xavier Delaruelle
85546253c2 No error if variant unspecified on display mode
No error is raised when evaluating in `display` mode a modulefile without
a value specified for the variant it defines. This change helps to learn
all the variant a modulefile defines. As a result, the unspecified
variant is not instantiated in the ModuleVariant array variable.

Fixes #406.
2021-08-18 07:17:43 +02:00
Xavier Delaruelle
f5c44fdfdf ts: modulespath and initrc are both use if deployed 2021-08-16 07:05:35 +02:00
Xavier Delaruelle
4b1d2d2429 ts: test refresh mechanism during autoinit 2021-08-16 07:05:35 +02:00
Xavier Delaruelle
2655739ee5 ts: test break/exit/continue/unkcmd err on refresh subcmd 2021-08-14 19:36:22 +02:00
Xavier Delaruelle
9214d111bc ts: test refresh subcmd in verbose mode 2021-08-14 19:36:22 +02:00
Xavier Delaruelle
7a516a8ad9 ts: add tests for 'refresh' subcmd 2021-08-14 19:36:22 +02:00
Xavier Delaruelle
f245519604 ts: allow expected result with only OK code
To produce the accurate "return true" code for tested shell.
2021-08-13 07:53:54 +02:00
Xavier Delaruelle
237755f9fb ts/doc: add try-load test/doc on 'module-info command' 2021-08-13 07:53:54 +02:00
Xavier Delaruelle
44777a2925 ts: fix unuse when multiple paths are set as one str 2021-08-11 15:28:40 +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
2587014f69 ts: ignore ref count from *use/*-path subcmds 2021-08-11 14:07:16 +02:00
Xavier Delaruelle
c630adbd70 ts: unset ref cnt var if found set but no cnt to record 2021-08-09 15:14:52 +02:00
Xavier Delaruelle
a9c62afde9 ts: add new reference counter tests 2021-08-09 14:43:40 +02:00
Xavier Delaruelle
3acb1a4d34 ts: update tests for ref cnt change for elt added once 2021-08-09 12:28:24 +02:00
Xavier Delaruelle
9f9f2ba4a5 ts: remove lassign/lreverse proc setup for Tcl8.4
Since Tcl8.5 or later is now required.
2021-08-08 13:27:53 +02:00
Xavier Delaruelle
c22294f0f2 ts: update reference to renamed __MODULES_SHARE_* vars 2021-08-08 13:27:53 +02:00
Xavier Delaruelle
48f5c800e1 ts: empty elts are now cleared from variable
Adapt tests with element elements injected in Modules environment
variables like LOADEDMODULES: since there is no more reference counter
variable (like LOADEDMODULES_modshare) the empty entries added on such
variable are cleared when a new entry is added to the variable.

Such empty entries are non-sense for these Modules variables so having
them cleaned when the variable is updated is a positive side effect.
2021-08-07 13:34:53 +02:00
Xavier Delaruelle
27d4088eed ts: correct erroneous env of some tests 2021-08-07 13:34:53 +02:00
Xavier Delaruelle
8aea89634a ts: no ref count on most Modules-specific env var 2021-08-07 13:34:53 +02:00
Xavier Delaruelle
155a3194cc ts: adapt tests for __MODULES_LMNOTUASKED removal 2021-08-07 13:34:21 +02:00
Xavier Delaruelle
2ef1971d3c ts: more precise extension library filename guess 2021-08-01 09:30:16 +02:00
Xavier Delaruelle
129a570b52 ts: update tests changed by use of '{*}' 2021-07-25 17:49:21 +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
24402d32b5 ts: update reference to renamed __MODULES_QUAR_* vars 2021-07-25 10:17:04 +02:00
Xavier Delaruelle
5172deb49e ts: update tests after LM env var renaming 2021-07-25 10:17:04 +02:00
Xavier Delaruelle
1f75963064 ts: update reference to renamed __MODULES_LM* vars 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
c3f4b17683 ts: add skip_if_quick_mode in 50 suite 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
07d151f913 ts: add skip_if_quick_mode in 70 suite 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
e91683c3e8 ts: add skip_if_quick_mode in 90/91/95 suites 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
6e925e9c6f ts: add skip_if_quick_mode in 60/61/80 suites 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
6c733c8c4a ts: add skip_if_quick_mode in 00/10/20 suites 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
3f801de0a7 ts: introduce quick test mode
Introduce the non-regression quick test mode. When the `QUICKTEST`
environment variable is set to 1, only the main tests from the
non-regression testsuite are run.

When first argument of the `mt` script is `quick`, tests are run in
quick mode.

Goal is to complete the quick tests in a minute, rather the 10+ minutes
required by the full testsuite.
2021-07-24 14:06:09 +02:00
Xavier Delaruelle
f9a36ae6dc ts: remove install tests of compat version 2021-07-24 14:06:06 +02:00
Xavier Delaruelle
0689bb5bb9 ts: use default conf names in example for tests 2021-07-24 14:06:06 +02:00
Xavier Delaruelle
d158921e9d ts: adapt full path tests when + sign is found in modpath
Plus sign in full path modulefile designation is understood as a variant
specification when advanced_version_spec config option is enabled. So
disable the option for the full path tests.
2021-07-24 14:06:06 +02:00
Xavier Delaruelle
008b495697 ts: report env properties when starting install tests 2021-07-24 14:06:06 +02:00