This is an archive of the discontinued LLVM Phabricator instance.

[XRay] [test-suite] Don't use llvm_multisource macro for XRay tests and use .test files
ClosedPublic

Authored by eizan on Jul 20 2017, 3:21 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

eizan created this revision.Jul 20 2017, 3:21 AM
eizan edited the summary of this revision. (Show Details)Jul 20 2017, 3:21 AM
eizan edited the summary of this revision. (Show Details)Jul 20 2017, 3:22 AM
dberris accepted this revision.Jul 20 2017, 3:28 AM
dberris added a reviewer: MatzeB.
dberris added a subscriber: MatzeB.

LGTM, but let's see what @MatzeB thinks about this approach.

This revision is now accepted and ready to land.Jul 20 2017, 3:28 AM
MatzeB accepted this revision.Aug 2 2017, 8:48 AM

LGTM when you switch to llvm_test_executable(), thanks.

MicroBenchmarks/XRay/CMakeLists.txt
5–7 ↗(On Diff #107473)

You should use llvm_test_executable() instead of add_executable. That way you can keep using list(APPEND CPPFLAGS) and will automatically get some dependencies right (everything in the test-suite has to depend on the time-it tool, as we use that to measure the compile time).

eizan updated this revision to Diff 109531.Aug 3 2017, 6:06 AM
  • Replace add_executable() with llvm_test_run() in XRay CMakeLists.txt
MatzeB accepted this revision.Aug 3 2017, 10:07 AM

LGTM

MicroBenchmarks/XRay/CMakeLists.txt
7 ↗(On Diff #109531)

I'm surprised you had to put llvm_test_run here. I assume you were getting errors otherwise, so it's fine to move forward with the patch as is. I'll investigate why this couldn't be left out separately.

dberris accepted this revision.Aug 4 2017, 7:01 AM

Thanks @MatzeB -- I ran out of time today. If you don't get to landing this, I'll go land this next week.

Cheers

This revision was automatically updated to reflect the committed changes.