Skip to content

Commit 6e418de

Browse files
committed
[FileCheck] Use lit's internal shell for the test suite
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`. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D70278
1 parent 6b0eb5a commit 6e418de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/test/FileCheck/lit.local.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import lit
2+
3+
# Use lit's internal shell to help guarantee test portability.
4+
config.test_format = lit.formats.ShTest(execute_external=False)
5+
16
# Unset environment variables that the FileCheck tests
27
# expect not to be set.
38
file_check_expected_unset_vars = [

0 commit comments

Comments
 (0)