19 Commits

Author SHA1 Message Date
Xavier Delaruelle
38d400f409 lint: fix SC2076 shellcheck warning 2023-05-19 21:36:11 +02:00
Xavier Delaruelle
47822de203 lint: fix SC2206 shellcheck warning 2023-05-19 21:36:11 +02:00
Xavier Delaruelle
3bf57cc7d7 lint: fix SC2209 shellcheck warning 2023-05-19 21:36:11 +02:00
Xavier Delaruelle
00d57b3d82 lint: fix SC2181 shellcheck warning 2023-05-19 21:36:11 +02: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
Lukáš Zaoral
d018f7a9e6 lint(ShellCheck): fix SC2086 info diagnostic
Some variables, that were unquoted intentionally were converted to arrays.

According to ShellCheck's documentation:

Quoting variables prevents word splitting and glob expansion, and prevents
the script from breaking when input contains spaces, line feeds, glob
characters and such.

Related: https://www.shellcheck.net/wiki/SC2086
Related: #470
2022-09-02 09:52:05 +02:00
Lukáš Zaoral
0ecc9fa480 lint(ShellCheck): fix SC2068 error
According to ShellCheck's documentation:

Double quotes around $@ and ${array[@]}) prevent globbing and word splitting
of individual elements, while still expanding to multiple separate arguments.

Related: https://www.shellcheck.net/wiki/SC2068
Related: #470
2022-09-02 09:52:05 +02:00
Xavier Delaruelle
fbf9f657cf script: add usage msg and --help option on mt 2022-09-01 06:43:38 +02:00
Xavier Delaruelle
7a41543601 ts: add lint testsuite 2022-09-01 06:43:38 +02:00
Xavier Delaruelle
2d56b7f41e Split main procs and code in dedicated file 2021-07-30 10:11:54 +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
5ea3d5d9e1 script: remove compat version-related code in mt/mb 2021-07-24 14:06:09 +02:00
Xavier Delaruelle
66c3490db8 script: re-license script from GPLv3+ to GPLv2+
Change license of mb, mlprof, modulecmd, mpub, mrel, mt, mtreview,
nglfar2ccov and playdemo scripts from GPLv3+ to GPLv2+.

Align this way all files from the Modules project under the GPLv2+
license.

Consent has been obtained from copyright holder to perform such move (I
hold the full copyright for these script files).

Related to #389
2021-02-28 19:05:22 +01:00
Xavier Delaruelle
d7b3cb0045 ts: add test env save/restore mechanism
Add the save_test_env and reset_test_env procedure to record original
test environment (global and environment variables) and restore it once
a test set has been done.
2020-12-06 20:38:44 +01:00
Xavier Delaruelle
6c94db0eee script: remove --base64-failed-log opt from mt script
Remove the --base64-failed-log option from the mt script as there is no
more need to output full test output serialized since the CI systems now
used can upload the test log files as artifact.
2020-12-05 17:34:59 +01:00
Xavier Delaruelle
97f8dc7e25 script: add option --base64-failed-log to mt
Add option ``--base64-failed-log`` to the ``mt`` script to output test
log on failure in a base64 serialized format.
2020-07-16 21:53:51 +02:00
Xavier Delaruelle
25e75401f3 script: mt exits in err if ts ok but review failed 2020-03-08 10:09:32 +01:00
Xavier Delaruelle
a28181074e install/script: abort auxiliary tools download after few seconds
Abort download of icdiff, nagelfar or tclsh83 after 2 timeouts of 5
seconds and record download failure for icdiff to avoid mt script to
attempt a new download tentative every time it is called.
2020-02-03 20:46:15 +01:00
Xavier Delaruelle
9ade952bea script: move all dist. and maint. scripts in a script dir 2020-01-12 13:31:21 +01:00