llvm.org GIT mirror llvm / 954b684
[lit] Use a %{python} substitution to avoid relying on python being on PATH git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309434 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 years ago
5 changed file(s) with 7 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
None import lit.formats
1 config.name = 'shtest-shell'
2 config.suffixes = ['.txt']
3 config.test_format = lit.formats.ShTest()
0 lit_config.load_config(config, os.path.dirname(__file__) + "/../shtest-shell/lit.cfg")
41 config.test_source_root = os.path.dirname(__file__) + '/../shtest-shell'
5 config.test_exec_root = None
0 # Run a command that fails with error on stdout.
11 #
2 # RUN: python %S/write-bad-encoding.py
2 # RUN: "%{python}" %S/write-bad-encoding.py
33 # RUN: false
44
55 config.test_exec_root = None
66 config.target_triple = 'x86_64-unknown-unknown'
77 config.available_features.add('a-present-feature')
8 config.substitutions.append(('%{python}', sys.executable))
33 config.test_format = lit.formats.ShTest()
44 config.test_source_root = None
55 config.test_exec_root = None
6 config.substitutions.append(('%{python}', sys.executable))
1616 # Check stderr redirect (2> and 2>>).
1717 #
1818 # RUN: echo "not-present" > %t.stderr-write
19 # RUN: python %S/write-to-stderr.py 2> %t.stderr-write
19 # RUN: "%{python}" %S/write-to-stderr.py 2> %t.stderr-write
2020 # RUN: FileCheck --check-prefix=STDERR-WRITE < %t.stderr-write %s
2121 #
2222 # STDERR-WRITE-NOT: not-present
2323 # STDERR-WRITE: a line on stderr
2424 #
25 # RUN: python %S/write-to-stderr.py 2>> %t.stderr-write
25 # RUN: "%{python}" %S/write-to-stderr.py 2>> %t.stderr-write
2626 # RUN: FileCheck --check-prefix=STDERR-APPEND < %t.stderr-write %s
2727 #
2828 # STDERR-APPEND: a line on stderr
3232 # Check combined redirect (&>).
3333 #
3434 # RUN: echo "not-present" > %t.combined
35 # RUN: python %S/write-to-stdout-and-stderr.py &> %t.combined
35 # RUN: "%{python}" %S/write-to-stdout-and-stderr.py &> %t.combined
3636 # RUN: FileCheck --check-prefix=COMBINED-WRITE < %t.combined %s
3737 #
3838 # COMBINED-WRITE-NOT: not-present