<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Windows: cannot run lit's tests from source tree"
   href="https://bugs.llvm.org/show_bug.cgi?id=42875">42875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Windows: cannot run lit's tests from source tree
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Test Suite
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>lit
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>paul_robinson@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>daniel@zuster.org, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Spun off from <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lit test suite can no longer be run stand-alone"
   href="show_bug.cgi?id=42812#c2">bug 42812 comment 2</a>:
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 <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lit test suite can no longer be run stand-alone"
   href="show_bug.cgi?id=42812#c9">bug 42812 comment 9</a>:

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>