llvm.org GIT mirror llvm / 0a84558
Revert r366980: "[lit] Protect full test suite from FILECHECK_OPTS" Windows bots are broken. See recent D65335 and D65156 comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367627 91177308-0d34-0410-b5e6-96231b3b80d8 Joel E. Denny a month ago
2 changed file(s) with 3 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
4343 if directory:
4444 llvm_config.with_environment('PATH', directory, append_path=True)
4545
46 # This test suite calls %{lit} to test lit's behavior for the sample test
47 # suites in %{inputs}. This test suite's results are then determined in part
48 # by %{lit}'s textual output, which includes the output of FileCheck calls
49 # within %{inputs}'s test suites. Thus, %{lit} clears environment variables
50 # that can affect FileCheck's output.
5146 config.substitutions.append(('%{inputs}', os.path.join(
5247 config.test_source_root, 'Inputs')))
53 config.substitutions.append(('%{lit}',
54 "{env} %{{python}} {lit}".format(
55 env="env -u FILECHECK_OPTS -u FILECHECK_DUMP_INPUT_ON_FAILURE",
56 lit=os.path.join(lit_path, 'lit.py'))))
48 config.substitutions.append(('%{lit}', "%%{python} %s" % (
49 os.path.join(lit_path, 'lit.py'),)))
5750 config.substitutions.append(('%{python}', '"%s"' % (sys.executable)))
5851
5952 # Enable coverage.py reporting, assuming the coverage module has been installed
0 # Check that -vv makes the line number of the failing RUN command clear.
11 # (-v is actually sufficient in the case of the internal shell.)
22 #
3 # RUN: not %{lit} -j 1 -vv %{inputs}/shtest-run-at-line > %t.out
3 # RUN: env -u FILECHECK_OPTS not %{lit} -j 1 -vv %{inputs}/shtest-run-at-line > %t.out
44 # RUN: FileCheck --input-file %t.out %s
55 #
66 # END.