This is an archive of the discontinued LLVM Phabricator instance.

[dexter] Force dexter tests to use the host triple
ClosedPublic

Authored by Orlando on Feb 11 2021, 5:21 AM.

Details

Summary

If the default target and host triple don't match then print the following
message when the lit test runs:

Forcing dexter tests to use host triple {HOST_TRIPLE}.

If we can't target the host arch then, when lit runs, we mark
the dexter test directories as UNSUPPORTED and print the message:

Host triple {HOST_TRIPLE} not supported. Skipping dexter tests in
the debuginfo-tests project.

Diff Detail

Event Timeline

Orlando requested review of this revision.Feb 11 2021, 5:21 AM
Orlando created this revision.
Orlando added inline comments.Feb 11 2021, 5:23 AM
debuginfo-tests/lit.cfg.py
93

@jmorse pointed out that this will fail to notice arm64 == aarch64. He's asked about this for XFAILS on llvm-dev (titled "Repeated names for architecture, aarch64 and arm64", google groups link here). For this patch I could add a special case check for it, but is there something better I could do?

Orlando updated this revision to Diff 323923.Feb 16 2021, 1:51 AM

+ Split the targets_to_build list

Some more detail about this patch: dexter tests are end-to-end (built and run from source) and currently configured to target the default target and run on the host. This doesn't work when the default target isn't the same as the host. This patch forces dexter tests to target the host machine if possible.

rnk accepted this revision.Feb 23 2021, 10:44 AM

lgtm

debuginfo-tests/lit.cfg.py
93

I think there are other normalization issues. For example, thumbv7-*-* triples. You could construct a set of targets, and if the set contains ARM or AArch64, add in known aliases for those targets to the set. It won't be able to handle every odd case, but it's obvious how to extend the logic to handle future aliases if they come up.

This revision is now accepted and ready to land.Feb 23 2021, 10:44 AM
Orlando updated this revision to Diff 326032.Feb 24 2021, 3:02 AM

Thanks @rnk! I will land this shortly.

+ Added a targets set which we can add arch aliases to.

This revision was landed with ongoing or failed builds.Feb 24 2021, 3:17 AM
This revision was automatically updated to reflect the committed changes.