Daniel Dunbar | f74e41a | 2013-01-31 00:21:51 +0000 | [diff] [blame] | 1 | # Check the basic discovery process, including a sub-suite. |
| 2 | # |
| 3 | # RUN: %{lit} %{inputs}/discovery \ |
| 4 | # RUN: -j 1 --debug --no-execute --show-suites -v > %t.out 2> %t.err |
| 5 | # RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s |
| 6 | # RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s |
| 7 | # |
| 8 | # CHECK-BASIC-ERR: loading suite config '{{.*}}/tests/Inputs/discovery/lit.cfg' |
| 9 | # CHECK-BASIC-ERR: loading local config '{{.*}}/tests/Inputs/discovery/subdir/lit.local.cfg' |
| 10 | # CHECK-BASIC-ERR: loading suite config '{{.*}}/tests/Inputs/discovery/subsuite/lit.cfg' |
| 11 | # |
| 12 | # CHECK-BASIC-OUT: -- Test Suites -- |
| 13 | # CHECK-BASIC-OUT: sub-suite - 2 tests |
| 14 | # CHECK-BASIC-OUT: Source Root: |
| 15 | # CHECK-BASIC-OUT: Exec Root : |
| 16 | # CHECK-BASIC-OUT: top-level-suite - 3 tests |
| 17 | # CHECK-BASIC-OUT: Source Root: |
| 18 | # CHECK-BASIC-OUT: Exec Root : |
| 19 | # |
| 20 | # CHECK-BASIC-OUT: -- Testing: 5 tests, 1 threads -- |
| 21 | # CHECK-BASIC-OUT: PASS: sub-suite :: test-one |
| 22 | # CHECK-BASIC-OUT: PASS: sub-suite :: test-two |
| 23 | # CHECK-BASIC-OUT: PASS: top-level-suite :: subdir/test-three |
| 24 | # CHECK-BASIC-OUT: PASS: top-level-suite :: test-one |
| 25 | # CHECK-BASIC-OUT: PASS: top-level-suite :: test-two |
Daniel Dunbar | 970faff | 2013-04-11 00:31:22 +0000 | [diff] [blame^] | 26 | |
| 27 | |
| 28 | # Check discovery when exact test names are given. |
| 29 | # |
| 30 | # RUN: %{lit} \ |
| 31 | # RUN: %{inputs}/discovery/subdir/test-three.py \ |
| 32 | # RUN: %{inputs}/discovery/subsuite/test-one.txt \ |
| 33 | # RUN: -j 1 --no-execute --show-suites -v > %t.out |
| 34 | # RUN: FileCheck --check-prefix=CHECK-EXACT-TEST < %t.out %s |
| 35 | # |
| 36 | # CHECK-EXACT-TEST: -- Testing: 2 tests, 1 threads -- |
| 37 | # CHECK-EXACT-TEST: PASS: sub-suite :: test-one |
| 38 | # CHECK-EXACT-TEST: PASS: top-level-suite :: subdir/test-three |
| 39 | |
| 40 | |