[PATCH] D101982: [debuginfo-tests] Allow use of environment variable to specify tools

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 03:08:32 PDT 2021


thopre accepted this revision.
thopre added a comment.
This revision is now accepted and ready to land.

In D101982#2741541 <https://reviews.llvm.org/D101982#2741541>, @jhenderson wrote:

> In D101982#2741492 <https://reviews.llvm.org/D101982#2741492>, @thopre wrote:
>
>> Should we add a test for that?
>
> We could add a lit test for the additional pass-through variables, if you think there's value in it (I don't think the other variables in the list are tested however), but I don't think we can test the lit.cfg.py change. To test that, we'd need to have a lit tests within the debuginfo-tests directory which spawns lit itself, with certain variables specified, and show that the right tools are used. I don't think this is practical. I've manually confirmed that the expected tools are used when the variables are set.

That's the overal feature I would like tested so more the lit.cfg.py side of things. If you think this is difficult to test for little value and since you have tested manually I'd say LGTM.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101982/new/

https://reviews.llvm.org/D101982



More information about the llvm-commits mailing list