This is an archive of the discontinued LLVM Phabricator instance.

[FileCheck] Use lit's internal shell for the test suite
ClosedPublic

Authored by jdenny on Nov 14 2019, 2:47 PM.

Details

Summary

An advantage is that there are less portability concerns when writing
tests. For example, -u is not supported by all implementations of
env, but lit's internal shell provides its own env that supports
-u.

A disadvantage is that some shell constructs, such as parentheses, are
not supported, but FileCheck's test suite currently doesn't require
such constructs.

For comparison, lit configures its test suite in the same manner. See
llvm/utils/lit/tests/lit.cfg.

Diff Detail

Event Timeline

jdenny created this revision.Nov 14 2019, 2:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2019, 2:47 PM
jdenny edited the summary of this revision. (Show Details)Nov 17 2019, 7:09 AM
rnk accepted this revision.Nov 17 2019, 9:16 AM

lgtm

This revision is now accepted and ready to land.Nov 17 2019, 9:16 AM
This revision was automatically updated to reflect the committed changes.