This is an archive of the discontinued LLVM Phabricator instance.

[gn build] Make `ninja check-lld` also run LLD's unit tests
ClosedPublic

Authored by thakis on Dec 18 2018, 10:13 AM.

Details

Summary

And add build files for gtest.

Goes on top of https://reviews.llvm.org/D55836

With this, the build files for //lld are complete.

Diff Detail

Repository
rL LLVM

Event Timeline

thakis created this revision.Dec 18 2018, 10:13 AM
phosek accepted this revision.Dec 18 2018, 5:21 PM

LGTM

llvm/utils/gn/secondary/lld/unittests/DriverTests/BUILD.gn
2 ↗(On Diff #178722)

If this becomes common we should consider introducing a test template.

This revision is now accepted and ready to land.Dec 18 2018, 5:21 PM
thakis marked an inline comment as done.

Thanks! Actually landing this is blocked on https://reviews.llvm.org/D55836 though.

llvm/utils/gn/secondary/lld/unittests/DriverTests/BUILD.gn
2 ↗(On Diff #178722)

Every unit test looks like this, so this is a good idea. I'll add a template when I add unit tests for llvm or clang, whatever comes first. (LLD only has two unit test binaries, so waiting until then seems fine to me.)

This revision was automatically updated to reflect the committed changes.