llvm.org GIT mirror llvm / ada2de9
[lit] Add a basic discovery test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174001 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 6 years ago
9 changed file(s) with 41 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 config.name = 'top-level-suite'
1 config.suffixes = ['.txt']
2 config.test_format = lit.formats.ShTest()
3 config.test_source_root = None
4 config.test_exec_root = None
0 config.name = 'sub-suite'
1 config.suffixes = ['.txt']
2 config.test_format = lit.formats.ShTest()
3 config.test_source_root = None
4 config.test_exec_root = None
0 # Check the basic discovery process, including a sub-suite.
1 #
2 # RUN: %{lit} %{inputs}/discovery \
3 # RUN: -j 1 --debug --no-execute --show-suites -v > %t.out 2> %t.err
4 # RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s
5 # RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s
6 #
7 # CHECK-BASIC-ERR: loading suite config '{{.*}}/tests/Inputs/discovery/lit.cfg'
8 # CHECK-BASIC-ERR: loading local config '{{.*}}/tests/Inputs/discovery/subdir/lit.local.cfg'
9 # CHECK-BASIC-ERR: loading suite config '{{.*}}/tests/Inputs/discovery/subsuite/lit.cfg'
10 #
11 # CHECK-BASIC-OUT: -- Test Suites --
12 # CHECK-BASIC-OUT: sub-suite - 2 tests
13 # CHECK-BASIC-OUT: Source Root:
14 # CHECK-BASIC-OUT: Exec Root :
15 # CHECK-BASIC-OUT: top-level-suite - 3 tests
16 # CHECK-BASIC-OUT: Source Root:
17 # CHECK-BASIC-OUT: Exec Root :
18 #
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