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
Xavier Delaruelle
a89c60fee0
Correctly apply extra tag when variant not set
...
Correctly apply extra tag set when loading a module whose variant has no
specific value set (default value used).
Fixes #484
2023-01-16 19:42:54 +01:00
Xavier Delaruelle
ae6043ab17
ts: add more cache not in sync tests in 30/045
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
e3895a0d8e
ts: add tests for inconsistent limited accesses in 30/044
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
07a33a895e
ts: ignore pre-built cache for tests changing file access
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
60826a19ed
ts: fix shell completion script file tests in 70/120
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
1cd8a67b52
ts: optionally build cache files to run tests
...
When TESTSUITE_ENABLE_MODULECACHE environment variable is set, cache
file is built for all modulepaths of the testsuite. Tests are run using
the cache files to resolve available modules.
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
1779d67527
ts: add limited-access hidden module tests in 30/043
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
f5e384881a
ts: add ignored files and dirs in cache test structure
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
580ce93335
ts: add tests for limited-access cache elt resolution in 30/043
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
dcaeeb57df
ts: adapt existing tests for limited-access resolution
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
8357956ca2
ts: add limited-access cachebuild tests in 30/032
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
1eecf28cb2
ts: adapt existing tests now limited access are recorded
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
68b6d08d17
ts: add cache_expiry_secs tests in 30/051
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
a576889f49
ts: test cache_expiry_secs config option
2022-12-27 18:43:59 +01:00
Xavier Delaruelle
ecb83452a9
ts: add cache_buffer_bytes tests in 30/051
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
6f0c7c20f8
ts: test cache_buffer_bytes config option
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
70b06e4160
ts: adapt tests to specific cache read code
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
9806cf50f7
ts: add ignore_cache/--ignore-cache tests in 30/050
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
4837fdc7bd
ts: test ignore_cache config option
2022-12-27 18:43:58 +01:00
Xavier Delaruelle
2869bda1bc
doc/ts: cache build & use with module header options
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
c53f7197bf
ts: test erroneous cache file in 30/042
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
3cffd66915
script: skip v5.2 from bench/profile in mb
...
Ignore Modules v5.2 when benching or profiling releases not to get too
much results on output.
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
044943c89f
ts: test cache file interp taint protection
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
c10b43479e
ts: add cache usage tests in 30/040
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
ab00e46398
ts: add/update cachebuild tests with real cache file
2022-12-24 17:24:52 +01:00
Xavier Delaruelle
56085aac99
ts: add initial cachebuild sub-cmd tests
2022-11-30 08:07:12 +01:00
Xavier Delaruelle
dca45423d1
ts: add cacheclear sub-cmd tests
2022-11-28 03:58:56 +01:00
Xavier Delaruelle
75dbda92fd
ts: adapt existing testfiles for cacheclear sub-command
2022-11-28 03:58:56 +01:00
Xavier Delaruelle
90359bdf67
ts: adapt existing testfiles for cachebuild sub-command
2022-11-12 13:54:03 +01:00
Xavier Delaruelle
3a8a249ac6
ts: test specific vars/cmds hooks in 50/560
2022-11-01 20:30:43 +01:00
Xavier Delaruelle
14f4c8db5a
ts: adapt existing tests to __MODULES_LMREFRESH
2022-10-31 13:18:58 +01:00
Xavier Delaruelle
d04eb755cc
ts: fix testsuite run when id cmd cannot resolve group
...
Update testsuite to cope with user group whose name cannot be resolved.
Fixes #476 .
2022-10-18 06:30:46 +02:00
Xavier Delaruelle
39923ad178
Revert "init: setup zsh FPATH through autoinit command"
...
This reverts commit 59ac24e243 .
FPATH variable cannot be handled within autoinit process as this is not
an environment variable. Thus when modulecmd.tcl is executed, it does
not know the current value of FPATH. So if it sets FPATH during
autoinit, previous value of this variable is lost. As a result FPATH
must stay defined in initialization script.
2022-10-16 14:06:11 +02:00
Xavier Delaruelle
470d9225ee
ts: skip basheu tests on bash 5.2
...
bash -eu test of install testsuite are skipped on new version of bash
(5.2) as internal messages currently appear when using module function
with -eu options on this version.
A bug as been submitted to the bash developers:
https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00073.html
2022-10-13 06:04:25 +02:00
Xavier Delaruelle
e7aacb8a24
ts: fix env of clear subcmd test case
2022-10-11 18:57:57 +02:00
Xavier Delaruelle
96e926483c
ts: test savelist subcmd with stash collections
2022-10-07 06:54:42 +02:00
Xavier Delaruelle
b1b4096848
ts: test restore subcmd with stash collections
2022-10-07 06:54:42 +02:00
Xavier Delaruelle
b2f5dbc0a5
ts: clear MODULES_QUARANTINE_SUPPORT prior tests
2022-10-04 07:41:37 +02:00
Xavier Delaruelle
8eee715bef
ts: add stashlist sub-cmd tests
2022-10-04 07:41:37 +02:00
Xavier Delaruelle
1cdd5d319c
ts: add helper procs for collection list header msgs
2022-10-04 07:41:37 +02:00
Xavier Delaruelle
43beec6df5
Add start_idx argument on displayElementList
...
Add start_idx argument on displayElementList procedure to define what is
the starting index for the elements to report.
2022-10-02 14:26:28 +02:00
Xavier Delaruelle
8556a361cb
ts: adapt existing testfiles for stashlist sub-command
2022-10-02 14:26:28 +02:00
Xavier Delaruelle
7ea1414745
ts: add stashclear sub-cmd tests
2022-09-29 07:02:38 +02:00
Xavier Delaruelle
53f12d65a2
ts: adapt existing testfiles for stashclear subcmd
2022-09-29 07:02:38 +02:00