[llvm-dev] [LNT] How to set an env var before executing a test?

Chris Matthews via llvm-dev llvm-dev at lists.llvm.org
Fri Nov 16 10:26:11 PST 2018


It does not. The prefers way to customize is to use a cmake define.

Briefly, LNT is first running cmake, then make to build the tests. Then running Lit to execute them and collect the performance data.

I believe via cmake there are ways to change both the test builds and execution.

> On Nov 16, 2018, at 9:20 AM, Troy Johnson via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Does the LNT test-suite provide a way to have an environment variable set when executing a test?  I can set it outside of LNT (i.e. have it in my environment when LNT is launched) and that works fine, but there does not appear to be a way to set it as part of a test’s configuration.  There are some lit.local.cfg files scattered throughout the test-suite repository, but messing with os.environ in those seems to have no effect (and I’m not quite sure what LNT is doing with LIT configs anyway).
>  
> -Troy
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181116/484de3c3/attachment.bin>


More information about the llvm-dev mailing list