I'm not sure if that was intentional or not?
I found it quite surprising when trying to integrate a new external project.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
This seems to have broken test-suite build bots?
http://lab.llvm.org:8011/builders/clang-s390x-linux-lnt/builds/13870
CMake Error at CMakeLists.txt:220 (message): llvm-lit not found. Make sure it is in your path or specify it via -DTEST_SUITE_LIT:FILEPATH=""
The test suite seems to have executed correctly before this change brought in this error message ...
Uhm, that makes no sense.
How is that test runs, not via check target?
test-suite/trunk/CMakeLists.txt | ||
---|---|---|
317–318 | that is created here? |
As discussed in IRC, the test-suite builds invoke lit manually; so it was always "broken".
I'll revert this for a bit, but please fix the configs.
Encountering it when trying to run check target after successful cmake configure was not pleasant at all.
The builder is created by this rule:
'factory' : ClangBuilder.getClangCMakeBuildFactory(jobs=4, clean=False, checkout_lld=False, useTwoStage=False, runTestSuite=True, stage1_config='Release', testsuite_flags=['--threads=4', '--build-threads=4'], extra_cmake_args=["-DLLVM_ENABLE_ASSERTIONS=ON"]),
That code seems to pass in the pass to llvm-lit via the "--use-lit" argument to "lnt":
lit = WithProperties('%(workdir)s/'+stage1_build+'/bin/llvm-lit') test_suite_cmd = [python, lnt, 'runtest', 'test-suite', '--no-timestamp', '--sandbox', sandbox, '--test-suite', test_suite_dir, '--cc', cc, '--cxx', cxx, '--use-lit', lit]
This code is from zorg/buildbot/builders/ClangBuilder.py in http://llvm.org/svn/llvm-project/zorg/trunk ... is this not how it's supposed to be used?
Reverted in rL364448, thanks.
I have never touched bot configs, so i'm not the one to fix the phenomenon, so please address it.
I think that the point is that you can configure and build the test suite without lit, and if lnt knows there lit is, then cmake doesn't need to know. Is that right?
Oh i see, LNT itself does not propagate it's --use-lit to test-suite's TEST_SUITE_LIT.
that is created here?