search for: llvm_test_prepar

Displaying 2 results from an estimated 2 matches for "llvm_test_prepar".

Did you mean: llvm_test_prepare
2018 Nov 16
2
[LNT] How to set an env var before executing a test?
So you're referring to llvm_test_prepare? There aren't many examples of that being used. I tried adding a call to it in my test directory's CMakeLists.txt like so: llvm_test_prepare(WORKDIR ${CMAKE_CURRENT_BINARY_DIR} export MY_VAR=42 ) In the hopes that something would happen, even an error, but it had no effect. Nothing...
2018 Nov 16
2
[LNT] How to set an env var before executing a test?
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