This is an archive of the discontinued LLVM Phabricator instance.

Relax restrictions on gold unit tests (run X86 tests if no PPC target)
ClosedPublic

Authored by thanm on Aug 25 2015, 10:38 AM.

Details

Summary

permits running of gold unit tests when targeting only x86

Diff Detail

Event Timeline

thanm updated this revision to Diff 33088.Aug 25 2015, 10:38 AM
thanm retitled this revision from to Relax restrictions on gold unit tests (run X86 tests if no PPC target).
thanm updated this object.
thanm added a reviewer: rafael.
thanm added subscribers: thanm, davidxl, srhines.
thanm edited subscribers, added: llvm-commits; removed: srhines, davidxl, thanm.

FYI -- this is the first patch I've submitted to LLVM, so please bear with me as I learn the procedures (if I'm making any mistakes, please let me know). Thanks --NM

pcc added a subscriber: pcc.Aug 25 2015, 1:24 PM

I think the right thing to do here is to split test/tools/gold into two directories (X86 and PowerPC) with a separate lit.local.cfg in each. See for example how the test/LTO directory is set up.

thanm added a comment.Aug 25 2015, 2:28 PM

split test/tools/gold into two directories

That sounds like a good suggestion. I'll see about revising the patch...

thanm updated this revision to Diff 33194.Aug 26 2015, 6:07 AM

Split test/tools/gold into PowerPC and X86 subdirectories.

rafael accepted this revision.Aug 26 2015, 7:23 AM
rafael edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 26 2015, 7:23 AM

Sorry for the delay.

I don't seem to be able to apply this:

$ git apply -p0 ~/Downloads/D12322.diff
error: test/tools/gold/PowerPC/lit.local.cfg: No such file or directory
error: test/tools/gold/X86/lit.local.cfg: No such file or directory

$ patch -p0 < ~/Downloads/D12322.diff

Index: test/tools/gold/PowerPC/lit.local.cfg
===================================================================
--- test/tools/gold/PowerPC/lit.local.cfg
+++ test/tools/gold/PowerPC/lit.local.cfg

Can you try emailing a git produced patch directly. Phabricator has
the bad habit of mangling patches.

Cheers,
Rafael

thanm closed this revision.May 12 2016, 8:21 AM

Committed previously as r246328, reviewed/committed by rafael, closing manually.