brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 65c177e Raw
28 lines · python
1# Check that the config.recursiveExpansionLimit is picked up and will cause2# lit substitutions to be expanded recursively.3 4# RUN: %{lit} %{inputs}/shtest-recursive-substitution/substitutes-within-limit --show-all | FileCheck --check-prefix=CHECK-TEST1 %s5# CHECK-TEST1: PASS: substitutes-within-limit :: test.py6# CHECK-TEST1: echo STOP7 8# RUN: not %{lit} %{inputs}/shtest-recursive-substitution/does-not-substitute-within-limit --show-all | FileCheck --check-prefix=CHECK-TEST2 %s9# CHECK-TEST2: UNRESOLVED: does-not-substitute-within-limit :: test.py10# CHECK-TEST2: ValueError: Recursive substitution of11 12# RUN: %{lit} %{inputs}/shtest-recursive-substitution/does-not-substitute-no-limit --show-all | FileCheck --check-prefix=CHECK-TEST3 %s13# CHECK-TEST3: PASS: does-not-substitute-no-limit :: test.py14# CHECK-TEST3: echo %rec415 16# RUN: not %{lit} %{inputs}/shtest-recursive-substitution/not-an-integer --show-all 2>&1 | FileCheck --check-prefix=CHECK-TEST4 %s17# CHECK-TEST4: recursiveExpansionLimit must be either None or an integer18 19# RUN: not %{lit} %{inputs}/shtest-recursive-substitution/negative-integer --show-all 2>&1 | FileCheck --check-prefix=CHECK-TEST5 %s20# CHECK-TEST5: recursiveExpansionLimit must be a non-negative integer21 22# RUN: %{lit} %{inputs}/shtest-recursive-substitution/set-to-none --show-all | FileCheck --check-prefix=CHECK-TEST6 %s23# CHECK-TEST6: PASS: set-to-none :: test.py24 25# RUN: %{lit} %{inputs}/shtest-recursive-substitution/escaping --show-all | FileCheck --check-prefix=CHECK-TEST7 %s26# CHECK-TEST7: PASS: escaping :: test.py27# CHECK-TEST7: echo %s %s %%s28