Gleb Popov via llvm-dev
2019-Nov-09 18:14 UTC
[llvm-dev] lit: Execute RUN statement depending on features available
Hello. I know there is UNSUPPORTED keyword in lit that makes it ignore whole testcase based on presence of some feature. However, in my test I want to always RUN line A, but RUN line B only if "windows" feature is enabled. Is it possible to do that? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191109/9045d412/attachment.html>
Roman Lebedev via llvm-dev
2019-Nov-09 18:31 UTC
[llvm-dev] lit: Execute RUN statement depending on features available
// REQUIRES: system-windows ? Roman On Sat, Nov 9, 2019 at 9:15 PM Gleb Popov via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > Hello. > > I know there is UNSUPPORTED keyword in lit that makes it ignore whole testcase based on presence of some feature. However, in my test I want to always RUN line A, but RUN line B only if "windows" feature is enabled. > > Is it possible to do that? > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Joel E. Denny via llvm-dev
2019-Nov-09 18:37 UTC
[llvm-dev] lit: Execute RUN statement depending on features available
In some of my downstream work, I've configured lit substitutions that expand to the empty string or `:` depending on the presence of features, and I've put those at the start of the affected RUN commands. However, this doesn't stop pipes or redirects, so I always use redirects to files that are fine to truncate when the RUN line is to be skipped. I'm not aware of a cleaner solution, but it would be nice. Joel On Sat, Nov 9, 2019 at 1:14 PM Gleb Popov via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello. > > I know there is UNSUPPORTED keyword in lit that makes it ignore whole > testcase based on presence of some feature. However, in my test I want to > always RUN line A, but RUN line B only if "windows" feature is enabled. > > Is it possible to do that? > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191109/a646ee98/attachment.html>