Register tests with full path and let [--(not)-file] (de)select on suffix
Description / Motivation
A quick shot for reactions. In the context of tezos/tezos#5084 (closed) See also tezos/tezos!7965 (merged) where I apply this change.
This modifies Tezt slightly in two manners to work better with Alcotezt:
-
Tests are registered by their full
__FILE__instead of just the basename. This makes more sense in a setting where files from different source folders are linked to the same tezt binary -
--file FILE(resp--not-file) now selects (resp. unselects) all tests registered from a source file that ends withFILE -
--listnow displays the shortest unique suffix of test files in theFILEcolumn instead of the full path.
How to Test the MR Manually
Checklist
-
Update CHANGES.md. No need to document changes to documentation and tests. -
Make sure all new values, types etc. are documented in .mlifiles and that the generated documentation looks ok. -
Add tests in test/, if relevant.
Edited by Arvid Jakobsson