test_run(module,partial_token) should be supported
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
For some functions -- like gsort, min, max, etc -- that have many features or many combined syntaxes or that can be applied to many data types, instead of writing all unit tests in a single huge gsort.tst file, it would be more handy to write them in distinct files -- like gsort.tst, gsort_complex.tst, gsort_sparse.tst, gsort_hypermat.tst. This would allow to run each part in an independent way. But we should still be able to run all of them in a once. Presently, there is no way to run all such files without listing and selecting them by hand, build a vector of their names, and then run test_run with the vector.
Allowing a syntax like
--> test_run elementary_functions gsort*
to internally build the list of filenames and then run them would be more efficient.
Patterns like
--> test_run elementary_functions *keyword
or
--> test_run elementary_functions *keyword*
could also be useful. For instance
--> test_run elementary_functions *space
would run both linspace.tst and logspace.tst.
--> test_run elementary_functions *sin*
would select and run all tests about the sine: sin, sind, asin, asind, sinh, etc
ERROR LOG:
----------
--> test_run elementary_functions sin*
TMPDIR = C:\myPath\AppData\Local\Temp\SCI_TMP_3668_1147
001/001 - [elementary_functions] sin*........................
at line 69 of function test_single ( SCI\modules\development_tools\macros\test_run.sci line 594 )
at line 137 of function test_module ( SCI\modules\development_tools\macros\test_run.sci line 464 )
at line 229 of function test_run ( SCI\modules\development_tools\macros\test_run.sci line 247 )
mgetl: Cannot open file SCI\modules\elementary_functions\tests\unit_tests\sin*.tst.
HOW TO REPRODUCE THE BUG:
-------------------------
test_run elementary_functions sin*
OTHER INFORMATION:
------------------
This has been done for bench_run there: http://bugzilla.scilab.org/show_bug.cgi?id=14605#c3