https://bugs.llvm.org/show_bug.cgi?id=42875
Bug ID: 42875
Summary: Windows: cannot run lit's tests from source tree
Product: Test Suite
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: lit
Assignee: unassignedb...@nondot.org
Reporter: paul_robin...@playstation.sony.com
CC: dan...@zuster.org, llvm-bugs@lists.llvm.org
Spun off from bug 42812 comment 2:
Normally an LLVM test subset can be run with something like this:
build\bin\llvm-lit.py llvm-project\llvm\test
but not (always) the lit suite; it often has to be run as
build\bin\llvm-lit.py build\utils\lit\tests
Found while trying to make modifications to the lit suite, and they
had no effect unless I modified copies in the build tree.
Stella Stamenova's comment from bug 42812 comment 9:
Hey Paul,
I think I tracked this down and this has been the case since before the change
that broke Michal's scenario.
Inside the lit site cfg for some tests, we use:
lit_config.load_config(config, "@LLVM_SOURCE_DIR@/utils/lit/tests/lit.cfg")
and in others, including lit, we use:
lit_config.load_config(config, "@LLVM_BINARY_DIR@/utils/lit/tests/lit.cfg")
Changing the lit line to use LLVM_SOURCE_DIR allows you to change the sources
in the source tree and see the result when you run the tests. Interestingly,
this is only an issue on Windows as far as I can tell - I am able to make
changes on Linux inside the source tree and see them happen regardless of
whether I've made the change to the site config. This makes me think that there
are two issue - the site config as well as something elsewhere in lit which has
windows specific logic that is different than other platforms.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs