llvm.org GIT mirror llvm / 1dc238e
[lit] Fix discovery.py on Windows by matching backslashes when necessary Fixes PR33932 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309194 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 2 years ago
1 changed file(s) with 19 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
0 # Check the basic discovery process, including a sub-suite.
1 #
2 # PR33932
3 # XFAIL: windows
41 #
52 # RUN: %{lit} %{inputs}/discovery \
63 # RUN: -j 1 --debug --show-tests --show-suites \
85 # RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s
96 # RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s
107 #
11 # CHECK-BASIC-ERR: loading suite config '{{.*}}/discovery/lit.cfg'
12 # CHECK-BASIC-ERR-DAG: loading suite config '{{.*}}/discovery/subsuite/lit.cfg'
13 # CHECK-BASIC-ERR-DAG: loading local config '{{.*}}/discovery/subdir/lit.local.cfg'
8 # CHECK-BASIC-ERR: loading suite config '{{.*(/|\\\\)discovery(/|\\\\)lit.cfg}}'
9 # CHECK-BASIC-ERR-DAG: loading suite config '{{.*(/|\\\\)discovery(/|\\\\)subsuite(/|\\\\)lit.cfg}}'
10 # CHECK-BASIC-ERR-DAG: loading local config '{{.*(/|\\\\)discovery(/|\\\\)subdir(/|\\\\)lit.local.cfg}}'
1411 #
1512 # CHECK-BASIC-OUT: -- Test Suites --
1613 # CHECK-BASIC-OUT: sub-suite - 2 tests
17 # CHECK-BASIC-OUT: Source Root: {{.*/discovery/subsuite$}}
18 # CHECK-BASIC-OUT: Exec Root : {{.*/discovery/subsuite$}}
14 # CHECK-BASIC-OUT: Source Root: {{.*[/\\]discovery[/\\]subsuite$}}
15 # CHECK-BASIC-OUT: Exec Root : {{.*[/\\]discovery[/\\]subsuite$}}
1916 # CHECK-BASIC-OUT: top-level-suite - 3 tests
20 # CHECK-BASIC-OUT: Source Root: {{.*/discovery$}}
21 # CHECK-BASIC-OUT: Exec Root : {{.*/discovery$}}
17 # CHECK-BASIC-OUT: Source Root: {{.*[/\\]discovery$}}
18 # CHECK-BASIC-OUT: Exec Root : {{.*[/\\]discovery$}}
2219 #
2320 # CHECK-BASIC-OUT: -- Available Tests --
2421 # CHECK-BASIC-OUT: sub-suite :: test-one
4946 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-OUT < %t.out %s
5047 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-ERR < %t.err %s
5148 #
52 # CHECK-ASEXEC-ERR: loading suite config '{{.*}}/exec-discovery/lit.site.cfg'
53 # CHECK-ASEXEC-ERR: load_config from '{{.*}}/discovery/lit.cfg'
54 # CHECK-ASEXEC-ERR: loaded config '{{.*}}/discovery/lit.cfg'
55 # CHECK-ASEXEC-ERR: loaded config '{{.*}}/exec-discovery/lit.site.cfg'
56 # CHECK-ASEXEC-ERR-DAG: loading suite config '{{.*}}/discovery/subsuite/lit.cfg'
57 # CHECK-ASEXEC-ERR-DAG: loading local config '{{.*}}/discovery/subdir/lit.local.cfg'
49 # CHECK-ASEXEC-ERR: loading suite config '{{.*(/|\\\\)exec-discovery(/|\\\\)lit.site.cfg}}'
50 # CHECK-ASEXEC-ERR: load_config from '{{.*(/|\\\\)discovery(/|\\\\)lit.cfg}}'
51 # CHECK-ASEXEC-ERR: loaded config '{{.*(/|\\\\)discovery(/|\\\\)lit.cfg}}'
52 # CHECK-ASEXEC-ERR: loaded config '{{.*(/|\\\\)exec-discovery(/|\\\\)lit.site.cfg}}'
53 # CHECK-ASEXEC-ERR-DAG: loading suite config '{{.*(/|\\\\)discovery(/|\\\\)subsuite(/|\\\\)lit.cfg}}'
54 # CHECK-ASEXEC-ERR-DAG: loading local config '{{.*(/|\\\\)discovery(/|\\\\)subdir(/|\\\\)lit.local.cfg}}'
5855 #
5956 # CHECK-ASEXEC-OUT: -- Test Suites --
6057 # CHECK-ASEXEC-OUT: sub-suite - 2 tests
61 # CHECK-ASEXEC-OUT: Source Root: {{.*/discovery/subsuite$}}
62 # CHECK-ASEXEC-OUT: Exec Root : {{.*/discovery/subsuite$}}
58 # CHECK-ASEXEC-OUT: Source Root: {{.*[/\\]discovery[/\\]subsuite$}}
59 # CHECK-ASEXEC-OUT: Exec Root : {{.*[/\\]discovery[/\\]subsuite$}}
6360 # CHECK-ASEXEC-OUT: top-level-suite - 3 tests
64 # CHECK-ASEXEC-OUT: Source Root: {{.*/discovery$}}
65 # CHECK-ASEXEC-OUT: Exec Root : {{.*/exec-discovery$}}
61 # CHECK-ASEXEC-OUT: Source Root: {{.*[/\\]discovery$}}
62 # CHECK-ASEXEC-OUT: Exec Root : {{.*[/\\]exec-discovery$}}
6663 #
6764 # CHECK-ASEXEC-OUT: -- Available Tests --
6865 # CHECK-ASEXEC-OUT: sub-suite :: test-one
9390 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s
9491 #
9592 # CHECK-ASEXEC-INTREE: exec-discovery-in-tree-suite - 1 tests
96 # CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*/exec-discovery-in-tree$}}
97 # CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*/exec-discovery-in-tree/obj$}}
93 # CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*[/\\]exec-discovery-in-tree$}}
94 # CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*[/\\]exec-discovery-in-tree[/\\]obj$}}
9895 # CHECK-ASEXEC-INTREE-NEXT: -- Available Tests --
9996 # CHECK-ASEXEC-INTREE-NEXT: exec-discovery-in-tree-suite :: test-one