This is an archive of the discontinued LLVM Phabricator instance.

[standalone-build] Build install and use python-lit and run tests for llvm
ClosedPublic

Authored by kwk on Aug 11 2022, 3:28 PM.

Details

Summary

This ensures that LLVM sub-projects are being tested with the lit of the same revision.

Diff Detail

Event Timeline

kwk created this revision.Aug 11 2022, 3:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
kwk requested review of this revision.Aug 11 2022, 3:28 PM
kwk planned changes to this revision.Aug 11 2022, 3:34 PM

Locally this errors out with:

lit: /usr/lib/python3.9/site-packages/lit/TestingConfig.py:100: fatal: unable to parse config file '/home/fedora/llvm-zorg/zorg/buildbot/builders/annotated/build/llvm/utils/lit/lit.site.cfg', traceback: Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/lit/TestingConfig.py", line 89, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "/home/fedora/llvm-zorg/zorg/buildbot/builders/annotated/build/llvm/utils/lit/lit.site.cfg", line 16, in <module>
    config.llvm_tools_dir = lit_config.substitute("/home/fedora/llvm-zorg/zorg/buildbot/builders/annotated/build/llvm/./bin")
AttributeError: 'LitConfig' object has no attribute 'substitute'

FAILED: CMakeFiles/check-all
kwk updated this revision to Diff 453019.Aug 16 2022, 8:18 AM
  • Fix installation of python lit and discoverability of the python lit module
kwk updated this revision to Diff 453671.Aug 18 2022, 8:34 AM
  • Fixup python lit installation and run llvm tests
  • remove unused defines from lld cmake and move out of directory which later is overwritten by the next git sparse checkout
kwk retitled this revision from [standalone-build] Build install and use python-lit to [standalone-build] Build install and use python-lit and run tests for llvm.Aug 18 2022, 8:34 AM
kwk edited the summary of this revision. (Show Details)
tstellar accepted this revision.Aug 18 2022, 10:22 AM
This revision is now accepted and ready to land.Aug 18 2022, 10:22 AM
This revision was automatically updated to reflect the committed changes.