Add ability in testlists to specify more than one category and compiler
- Dominant language
- Python
- Stars
- 174
- Forks
- 225
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 14
Description
This is a question for discussion.
Currently, in the XML testlists, you have to use separate lines for doing additional compilers and/or categories. For something you want to do for several machines/compilers and categories, this can add up to a lot of lines of code for just wanting to repeat the same test.
So currently you have to repeat the lines like...
00:20:00
for each machine/compiler/category. For some tests I want to do them for all the available compilers and for several categories "clm_short", "aux_clm" and "prealpha". It would be nice to be able to do that in one block rather than the above five line minimum. Possibly this feature should only be invoked if there is another attribute that turns it on for the particular line (use_regular_expression_match="True" kind of thing).
The above is done because the matching is done with an exact match rather than a regular expression matching. It wouldn't be hard to change testlist.py to do regular expression matching rather than exact matching. I think this would be done by adding an optional argument to generic_xml.py get_nodes to allow for a regular expression match rather than the default exact match. Then the call to it in testlist.py _get_testsv2 call of get_nodes could ask for a regular expression match. An exact match without any RE symbols should match as normal, and a RE with symbols should work as well.
Does this sound useful to anyone else?
Contributor guide
Assessment
This issue has not been assessed yet.