This is an archive of the discontinued LLVM Phabricator instance.

[lldb/tests] Correctly configure the lldb dotest arguments
ClosedPublic

Authored by stella.stamenova on Feb 5 2020, 2:53 PM.

Details

Summary

When the generator used for CMake is a multi-configuration generator (such as VS), the arguments passed to dotest are not currently configured correctly. There are a couple of issues:

  1. The per-configuration files are all generated for the same configuration since the for loop overwrites the properties
  2. Not all of the parameters are configured in the lit cfg, so they end up with %(build_mode)s as configuration and they point to non-existent paths

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2020, 2:53 PM
JDevlieghere accepted this revision.Feb 5 2020, 4:03 PM

LGTM. I tried your patch with the Xcode generator and everything passes. Thanks for fixing this!

lldb/test/API/lit.site.cfg.py.in
51

Interesting, I wonder why this works for the Xcode generator.

This revision is now accepted and ready to land.Feb 5 2020, 4:03 PM
This revision was automatically updated to reflect the committed changes.