[llvm] 6e418de - [FileCheck] Use lit's internal shell for the test suite
Joel E. Denny via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 09:13:38 PST 2019
Author: Joel E. Denny
Date: 2019-11-19T12:08:54-05:00
New Revision: 6e418decd936a3e22dec5cebc77ecb86dc7f37c3
URL: https://github.com/llvm/llvm-project/commit/6e418decd936a3e22dec5cebc77ecb86dc7f37c3
DIFF: https://github.com/llvm/llvm-project/commit/6e418decd936a3e22dec5cebc77ecb86dc7f37c3.diff
LOG: [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
Added:
Modified:
llvm/test/FileCheck/lit.local.cfg
Removed:
################################################################################
diff --git a/llvm/test/FileCheck/lit.local.cfg b/llvm/test/FileCheck/lit.local.cfg
index 307da456c381..1191450c6553 100644
--- a/llvm/test/FileCheck/lit.local.cfg
+++ b/llvm/test/FileCheck/lit.local.cfg
@@ -1,3 +1,8 @@
+import lit
+
+# Use lit's internal shell to help guarantee test portability.
+config.test_format = lit.formats.ShTest(execute_external=False)
+
# Unset environment variables that the FileCheck tests
# expect not to be set.
file_check_expected_unset_vars = [
More information about the llvm-commits
mailing list