This is an archive of the discontinued LLVM Phabricator instance.

[LIT] Add support for `UNSUPPORTED` tag to `TestRunner.parseIntegratedTestScript`
ClosedPublic

Authored by EricWF on Dec 9 2014, 7:11 PM.

Details

Summary

This patch gives me just enough to leverage the existing functionality in TestRunner for use in libc++ and libc++abi .

It does the following:

  • Adds the UNSUPPORTED tag to TestRunner.parseIntegratedTestScript.
  • Allows parseIntegratedTestScript to return an empty script if a script is not required by the caller.

Diff Detail

Event Timeline

EricWF updated this revision to Diff 17111.Dec 9 2014, 7:11 PM
EricWF retitled this revision from to [LIT] Add support for `UNSUPPORTED` tag to `TestRunner.parseIntegratedTestScript`.
EricWF updated this object.
EricWF edited the test plan for this revision. (Show Details)
EricWF added a reviewer: ddunbar.
EricWF added subscribers: Unknown Object (MLST), Unknown Object (MLST).
ddunbar edited edge metadata.Dec 9 2014, 7:28 PM

LGTM, although it might be good to add a note about how require_script can
be used. To be honest I don't quite understand how you will use this yet.

  • Daniel
EricWF updated this revision to Diff 17112.Dec 9 2014, 7:40 PM
EricWF edited edge metadata.

Add documentation for require_script. Currently I just need require_script so that I can use that function in tests that don't have RUN lines. Really I just want it to check XFAIL, REQUIRES and UNSUPPORTED. In future I'll need it for tests that can optionally use RUN to setup the environment before doing something else.

EricWF accepted this revision.Dec 9 2014, 7:41 PM
EricWF added a reviewer: EricWF.
This revision is now accepted and ready to land.Dec 9 2014, 7:41 PM
EricWF closed this revision.Dec 9 2014, 7:42 PM