llvm.org GIT mirror llvm / 6bcb407
[lit] tests: Change discovery test to use --show-tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187851 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 6 years ago
1 changed file(s) with 31 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
0 # Check the basic discovery process, including a sub-suite.
11 #
22 # RUN: %{lit} %{inputs}/discovery \
3 # RUN: -j 1 --debug --no-execute --show-suites -v > %t.out 2> %t.err
3 # RUN: -j 1 --debug --show-tests --show-suites --max-tests 0 \
4 # RUN: -v > %t.out 2> %t.err
45 # RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s
56 # RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s
67 #
1617 # CHECK-BASIC-OUT: Source Root: {{.*/discovery$}}
1718 # CHECK-BASIC-OUT: Exec Root : {{.*/discovery$}}
1819 #
19 # CHECK-BASIC-OUT: -- Testing: 5 tests, 1 threads --
20 # CHECK-BASIC-OUT: PASS: sub-suite :: test-one
21 # CHECK-BASIC-OUT: PASS: sub-suite :: test-two
22 # CHECK-BASIC-OUT: PASS: top-level-suite :: subdir/test-three
23 # CHECK-BASIC-OUT: PASS: top-level-suite :: test-one
24 # CHECK-BASIC-OUT: PASS: top-level-suite :: test-two
20 # CHECK-BASIC-OUT: -- Available Tests --
21 # CHECK-BASIC-OUT: sub-suite :: test-one
22 # CHECK-BASIC-OUT: sub-suite :: test-two
23 # CHECK-BASIC-OUT: top-level-suite :: subdir/test-three
24 # CHECK-BASIC-OUT: top-level-suite :: test-one
25 # CHECK-BASIC-OUT: top-level-suite :: test-two
26 # CHECK-BASIC-OUT: -- Testing: 0
2527
2628
2729 # Check discovery when exact test names are given.
2931 # RUN: %{lit} \
3032 # RUN: %{inputs}/discovery/subdir/test-three.py \
3133 # RUN: %{inputs}/discovery/subsuite/test-one.txt \
32 # RUN: -j 1 --no-execute --show-suites -v > %t.out
34 # RUN: -j 1 --show-tests --show-suites --max-tests 0 -v > %t.out
3335 # RUN: FileCheck --check-prefix=CHECK-EXACT-TEST < %t.out %s
3436 #
35 # CHECK-EXACT-TEST: -- Testing: 2 tests, 1 threads --
36 # CHECK-EXACT-TEST: PASS: sub-suite :: test-one
37 # CHECK-EXACT-TEST: PASS: top-level-suite :: subdir/test-three
37 # CHECK-EXACT-TEST: -- Available Tests --
38 # CHECK-EXACT-TEST: sub-suite :: test-one
39 # CHECK-EXACT-TEST: top-level-suite :: subdir/test-three
40 # CHECK-EXACT-TEST: -- Testing: 0
3841
3942
4043 # Check discovery when using an exec path.
4144 #
4245 # RUN: %{lit} %{inputs}/exec-discovery \
43 # RUN: -j 1 --debug --no-execute --show-suites -v > %t.out 2> %t.err
46 # RUN: -j 1 --debug --show-tests --show-suites --max-tests 0 \
47 # RUN: -v > %t.out 2> %t.err
4448 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-OUT < %t.out %s
4549 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-ERR < %t.err %s
4650 #
5963 # CHECK-ASEXEC-OUT: Source Root: {{.*/discovery$}}
6064 # CHECK-ASEXEC-OUT: Exec Root : {{.*/exec-discovery$}}
6165 #
62 # CHECK-ASEXEC-OUT: -- Testing: 5 tests, 1 threads --
63 # CHECK-ASEXEC-OUT: PASS: sub-suite :: test-one
64 # CHECK-ASEXEC-OUT: PASS: sub-suite :: test-two
65 # CHECK-ASEXEC-OUT: PASS: top-level-suite :: subdir/test-three
66 # CHECK-ASEXEC-OUT: PASS: top-level-suite :: test-one
67 # CHECK-ASEXEC-OUT: PASS: top-level-suite :: test-two
68
66 # CHECK-ASEXEC-OUT: -- Available Tests --
67 # CHECK-ASEXEC-OUT: sub-suite :: test-one
68 # CHECK-ASEXEC-OUT: sub-suite :: test-two
69 # CHECK-ASEXEC-OUT: top-level-suite :: subdir/test-three
70 # CHECK-ASEXEC-OUT: top-level-suite :: test-one
71 # CHECK-ASEXEC-OUT: top-level-suite :: test-two
72 # CHECK-ASEXEC-OUT: -- Testing: 0
6973
7074 # Check discovery when exact test names are given.
7175 #
7377 #
7478 # RUN: %{lit} \
7579 # RUN: %{inputs}/exec-discovery/subdir/test-three.py \
76 # RUN: -j 1 --no-execute --show-suites -v > %t.out
80 # RUN: -j 1 --show-tests --show-suites --max-tests 0 -v > %t.out
7781 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-EXACT-TEST < %t.out %s
7882 #
79 # CHECK-ASEXEC-EXACT-TEST: -- Testing: 1 tests, 1 threads --
80 # CHECK-ASEXEC-EXACT-TEST: PASS: top-level-suite :: subdir/test-three
83 # CHECK-ASEXEC-EXACT-TEST: -- Available Tests --
84 # CHECK-ASEXEC-EXACT-TEST: top-level-suite :: subdir/test-three
85 # CHECK-ASEXEC-EXACT-TEST: -- Testing: 0
8186
8287
8388 # Check that we don't recurse infinitely when loading an site specific test
8590 #
8691 # RUN: %{lit} \
8792 # RUN: %{inputs}/exec-discovery-in-tree/obj/ \
88 # RUN: -j 1 --no-execute --show-suites -v > %t.out
93 # RUN: -j 1 --show-tests --show-suites --max-tests 0 -v > %t.out
8994 # RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s
9095 #
9196 # CHECK-ASEXEC-INTREE: exec-discovery-in-tree-suite - 1 tests
9297 # CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*/exec-discovery-in-tree$}}
9398 # CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*/exec-discovery-in-tree/obj$}}
94 # CHECK-ASEXEC-INTREE-NEXT: -- Testing: 1 tests, 1 threads --
95 # CHECK-ASEXEC-INTREE-NEXT: PASS: exec-discovery-in-tree-suite :: test-one
99 # CHECK-ASEXEC-INTREE-NEXT: -- Available Tests --
100 # CHECK-ASEXEC-INTREE-NEXT: exec-discovery-in-tree-suite :: test-one
101 # CHECK-ASEXEC-INTREE: -- Testing: 0