aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/lit/tests/print-relative-path.py
blob: c66f0150ca70f3233100e1c31f783d9bf371b29e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# RUN: %{lit} --ignore-fail --show-pass %{inputs}/print-relative-path | FileCheck --check-prefix=CHECK-DEFAULT %s
# RUN: %{lit} --ignore-fail --show-pass -r %{inputs}/print-relative-path | FileCheck --check-prefix=CHECK-RELATIVE %s
# RUN: %{lit} --ignore-fail --show-pass --relative-paths %{inputs}/print-relative-path | FileCheck --check-prefix=CHECK-RELATIVE %s


# CHECK-DEFAULT: PASS: print-relative-path :: test.txt (1 of 2)
# CHECK-DEFAULT: FAIL: print-relative-path :: test2.txt (2 of 2)
# CHECK-DEFAULT: Passed Tests (1):
# CHECK-DEFAULT:  print-relative-path :: test.txt
# CHECK-DEFAULT: Failed Tests (1):
# CHECK-DEFAULT:  print-relative-path :: test2.txt

# CHECK-RELATIVE: PASS: print-relative-path :: test.txt (1 of 2)
# CHECK-RELATIVE: FAIL: print-relative-path :: test2.txt (2 of 2)
# CHECK-RELATIVE: Passed Tests (1):
# CHECK-RELATIVE:  Inputs{{[/\\]}}print-relative-path{{[/\\]}}test.txt
# CHECK-RELATIVE: Failed Tests (1):
# CHECK-RELATIVE:  Inputs{{[/\\]}}print-relative-path{{[/\\]}}test2.txt