This is an archive of the discontinued LLVM Phabricator instance.

Have RUN: and VERIFY: lines in .test files; Produce lit.site.cfg
ClosedPublic

Authored by MatzeB on Oct 26 2015, 9:49 PM.

Details

Summary

First concept of having RUN: and VERIFY: lines in .test files

This currently has a lot of copy&pasted code from lit/TestRunner.py
which should get refactor to be reusable here!

This also contains some code to produce a lit.site.cfg to allow having the builddir outside the source directory.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 38500.Oct 26 2015, 9:49 PM
MatzeB retitled this revision from to Have RUN: and VERIFY: lines in .test files; Produce lit.site.cfg.
MatzeB updated this object.
MatzeB added subscribers: llvm-commits, jmolloy, rengolin.

Hi Matthias,

Thanks for putting a patch up so quickly! This looks good, it's just a pity we have to duplicate so much of the LIT logic :(

James

Hey,

this was mainly a test to get some opinions on the format and getting more steam into the cmake+lit in test-suite efforts.

It obviously needs a few more fixes and cleanups. The code duplication for example can be dealt with by refactoring a bit on the llvm side, I'll try to send patches for that soon.

MatzeB updated this revision to Diff 38621.Oct 27 2015, 7:53 PM
MatzeB added reviewers: rengolin, jmolloy.

I refactored the lit code in llvm to make it easier reusable, consequently this patch has become simpler.

There is more room for further simplifications (though).

As the test-suite+lit stuff is new and experimental anyway, is it okay to commit to llvm-testsuite now and continue working there?

jmolloy accepted this revision.Oct 28 2015, 7:45 AM
jmolloy edited edge metadata.

Yep, please do. LGTM.

This revision is now accepted and ready to land.Oct 28 2015, 7:45 AM
This revision was automatically updated to reflect the committed changes.