Details
Diff Detail
Event Timeline
REQUIRES is a 'lit' feature, not a FileCheck feature.
A better place to describe it would be docs/TestingGuide.rst, which already talks about RUN and XFAIL.
I think you can also use triple components in REQUIRES, which makes me wonder about 'x86_64-linux'. Is that something lit supports separately from the triple check?
docs/TestingGuide.rst | ||
---|---|---|
399 | I think you need a colon after REQUIRES. | |
401 | coma -> comma | |
402 | I would rather see the two forms contrasted more directly, maybe like this: REQUIRES means all listed requirements must be satisfied; REQUIRES-ANY means at least one must be satisfied. | |
429 | Please sort the list alphabetically. If you prefer to keep the "not" versions with the positive versions, that's fine. Just curious, what is 'xar'? |
docs/TestingGuide.rst | ||
---|---|---|
429 | no idea, but it comes from test/lit.cfg if config.have_libxar: config.available_features.add('xar') so I guess libxar something |
I'd mention where this list is coming from, or how to regenerate it. I fear this is going to be out-of-sync to quickly.
llvm/trunk/docs/TestingGuide.rst | ||
---|---|---|
406–434 ↗ | (On Diff #63357) | Should we really list all of them here? I see this list getting out of date quickly as it is not obvious to people changing lit.cfg that this list exists here. I'd recommend to only refer to lit.cfg and maybe mention 1 or 2 examples... |
llvm/trunk/docs/TestingGuide.rst | ||
---|---|---|
406–434 ↗ | (On Diff #63357) | Agree. |
llvm/trunk/docs/TestingGuide.rst | ||
---|---|---|
406–434 ↗ | (On Diff #63357) | I think having list somewhere is usefull. It wasn't obvious for me where I can find the code that defines the features - and all features are splitted between different files. The argument that it get outdated fast ins invalid - just keep track of it in reviews (I am willing to be added as a subscriber to every patch that touches any lit.cfg to check it) The list is useful. e.g. I can see that the list doesn't mention anything similar to LLVM_ENABLE_STATS that I was looking for, so I know that I should probably go different way. |
llvm/trunk/docs/TestingGuide.rst | ||
---|---|---|
406–434 ↗ | (On Diff #63357) |
Sorry but you can't just say that the argument "is invalid". Experience shows it is.
Sure, in the meantime I think we should remove it. |
A list is definitely useful. It's a reasonable point that the list evolves over time and a manually maintained list is a headache.
Maybe add a command-line option to 'lit' that will dump the REQUIRES features. Then document that option in TestingGuide.rst, instead of having the list.
I think you need a colon after REQUIRES.