This is an archive of the discontinued LLVM Phabricator instance.

[Zorg] Modify LibCxxAndABIBuilder to support testing libcxx with multiple standard versions.
AbandonedPublic

Authored by EricWF on Aug 28 2014, 6:58 PM.

Details

Summary

This change makes it so that the builder takes a list of standard versions to test against. The default list is just c++11. For each standard on the list a job is added.
This also changes the builder so it invokes LIT directly for libcxx instead of using check-libcxx.

Diff Detail

Event Timeline

EricWF updated this revision to Diff 13068.Aug 28 2014, 6:58 PM
EricWF retitled this revision from to [Zorg] Modify LibCxxAndABIBuilder to support testing libcxx with multiple standard versions..
EricWF updated this object.
EricWF edited the test plan for this revision. (Show Details)
EricWF added reviewers: danalbert, gribozavr, gkistanova.
EricWF added subscribers: Unknown Object (MLST), Unknown Object (MLST).
danalbert added inline comments.Aug 29 2014, 8:42 AM
zorg/buildbot/builders/LibcxxAndAbiBuilder.py
95

-s so we're not inundated with all the passing tests?

99

Is that not the default?

gribozavr edited edge metadata.Aug 29 2014, 11:13 AM

Could we add more targets instead, check-libcxx-cxx11, check-libcxx-cxx14 etc?

Then it would be easier to run them when developing libcxx itself.

EricWF added a comment.Sep 1 2014, 6:46 PM
In D5114#5, @gribozavr wrote:

Could we add more targets instead, check-libcxx-cxx11, check-libcxx-cxx14 etc?

Then it would be easier to run them when developing libcxx itself.

I agree that we should add these Makefile targets, but I would like to keep invoking lit directly in this change for a couple of reasons:

  1. We need a custom LIT invocation so the output is more "log" friendly (no progress bar).
  2. More changes are going to follow that require custom invocations. (Testing debug mode, sanitizers, ect)
  3. I don't want to add the makefile targets until I've actually added support for running the tests as C++03, C++14, ect. So I want to use the bots to test these changes.

If you don't have any strong objections I would like to keep the custom LIT invocations.

zorg/buildbot/builders/LibcxxAndAbiBuilder.py
95

'-s` add the progress bar that is non-log friendly. I'll add -s and --no-progress-bar, but I'm personally not opposed to printing the passing tests.

99

I'm not actually sure, but I also don't think the working dir matters that much anyway. I'll remove it.

EricWF updated this revision to Diff 13151.Sep 1 2014, 11:24 PM
EricWF edited edge metadata.

Implement @danalbert's comments.

emaste added a subscriber: emaste.Sep 2 2014, 7:37 AM
EricWF abandoned this revision.Oct 22 2014, 2:41 PM

Other changes have been made that should make this possible.