[llvm-bugs] [Bug 42875] New: Windows: cannot run lit's tests from source tree

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 2 13:52:36 PDT 2019


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: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: daniel at zuster.org, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190802/30e4243d/attachment.html>


More information about the llvm-bugs mailing list