2013-01-31 01:21:51 +01:00
|
|
|
# Check the basic discovery process, including a sub-suite.
|
|
|
|
#
|
|
|
|
# RUN: %{lit} %{inputs}/discovery \
|
2013-08-08 22:59:25 +02:00
|
|
|
# RUN: -j 1 --debug --show-tests --show-suites \
|
2013-08-07 05:12:51 +02:00
|
|
|
# RUN: -v > %t.out 2> %t.err
|
2013-01-31 01:21:51 +01:00
|
|
|
# RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s
|
|
|
|
# RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s
|
|
|
|
#
|
2013-04-12 21:08:57 +02:00
|
|
|
# CHECK-BASIC-ERR: loading suite config '{{.*}}/discovery/lit.cfg'
|
|
|
|
# CHECK-BASIC-ERR: loading local config '{{.*}}/discovery/subdir/lit.local.cfg'
|
|
|
|
# CHECK-BASIC-ERR: loading suite config '{{.*}}/discovery/subsuite/lit.cfg'
|
2013-01-31 01:21:51 +01:00
|
|
|
#
|
|
|
|
# CHECK-BASIC-OUT: -- Test Suites --
|
|
|
|
# CHECK-BASIC-OUT: sub-suite - 2 tests
|
2013-04-12 21:08:57 +02:00
|
|
|
# CHECK-BASIC-OUT: Source Root: {{.*/discovery/subsuite$}}
|
|
|
|
# CHECK-BASIC-OUT: Exec Root : {{.*/discovery/subsuite$}}
|
2013-01-31 01:21:51 +01:00
|
|
|
# CHECK-BASIC-OUT: top-level-suite - 3 tests
|
2013-04-12 21:08:57 +02:00
|
|
|
# CHECK-BASIC-OUT: Source Root: {{.*/discovery$}}
|
|
|
|
# CHECK-BASIC-OUT: Exec Root : {{.*/discovery$}}
|
2013-01-31 01:21:51 +01:00
|
|
|
#
|
2013-08-07 05:12:51 +02:00
|
|
|
# CHECK-BASIC-OUT: -- Available Tests --
|
|
|
|
# CHECK-BASIC-OUT: sub-suite :: test-one
|
|
|
|
# CHECK-BASIC-OUT: sub-suite :: test-two
|
|
|
|
# CHECK-BASIC-OUT: top-level-suite :: subdir/test-three
|
|
|
|
# CHECK-BASIC-OUT: top-level-suite :: test-one
|
|
|
|
# CHECK-BASIC-OUT: top-level-suite :: test-two
|
2013-04-11 02:31:22 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Check discovery when exact test names are given.
|
|
|
|
#
|
|
|
|
# RUN: %{lit} \
|
|
|
|
# RUN: %{inputs}/discovery/subdir/test-three.py \
|
|
|
|
# RUN: %{inputs}/discovery/subsuite/test-one.txt \
|
2013-08-08 22:59:25 +02:00
|
|
|
# RUN: -j 1 --show-tests --show-suites -v > %t.out
|
2013-04-11 02:31:22 +02:00
|
|
|
# RUN: FileCheck --check-prefix=CHECK-EXACT-TEST < %t.out %s
|
|
|
|
#
|
2013-08-07 05:12:51 +02:00
|
|
|
# CHECK-EXACT-TEST: -- Available Tests --
|
|
|
|
# CHECK-EXACT-TEST: sub-suite :: test-one
|
|
|
|
# CHECK-EXACT-TEST: top-level-suite :: subdir/test-three
|
2013-04-11 02:31:22 +02:00
|
|
|
|
|
|
|
|
2013-04-12 21:08:57 +02:00
|
|
|
# Check discovery when using an exec path.
|
|
|
|
#
|
|
|
|
# RUN: %{lit} %{inputs}/exec-discovery \
|
2013-08-08 22:59:25 +02:00
|
|
|
# RUN: -j 1 --debug --show-tests --show-suites \
|
2013-08-07 05:12:51 +02:00
|
|
|
# RUN: -v > %t.out 2> %t.err
|
2013-04-12 21:08:57 +02:00
|
|
|
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-OUT < %t.out %s
|
|
|
|
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-ERR < %t.err %s
|
|
|
|
#
|
|
|
|
# CHECK-ASEXEC-ERR: loading suite config '{{.*}}/exec-discovery/lit.site.cfg'
|
|
|
|
# CHECK-ASEXEC-ERR: load_config from '{{.*}}/discovery/lit.cfg'
|
|
|
|
# CHECK-ASEXEC-ERR: loaded config '{{.*}}/discovery/lit.cfg'
|
|
|
|
# CHECK-ASEXEC-ERR: loaded config '{{.*}}/exec-discovery/lit.site.cfg'
|
|
|
|
# CHECK-ASEXEC-ERR: loading local config '{{.*}}/discovery/subdir/lit.local.cfg'
|
|
|
|
# CHECK-ASEXEC-ERR: loading suite config '{{.*}}/discovery/subsuite/lit.cfg'
|
|
|
|
#
|
|
|
|
# CHECK-ASEXEC-OUT: -- Test Suites --
|
|
|
|
# CHECK-ASEXEC-OUT: sub-suite - 2 tests
|
|
|
|
# CHECK-ASEXEC-OUT: Source Root: {{.*/discovery/subsuite$}}
|
|
|
|
# CHECK-ASEXEC-OUT: Exec Root : {{.*/discovery/subsuite$}}
|
|
|
|
# CHECK-ASEXEC-OUT: top-level-suite - 3 tests
|
|
|
|
# CHECK-ASEXEC-OUT: Source Root: {{.*/discovery$}}
|
|
|
|
# CHECK-ASEXEC-OUT: Exec Root : {{.*/exec-discovery$}}
|
|
|
|
#
|
2013-08-07 05:12:51 +02:00
|
|
|
# CHECK-ASEXEC-OUT: -- Available Tests --
|
|
|
|
# CHECK-ASEXEC-OUT: sub-suite :: test-one
|
|
|
|
# CHECK-ASEXEC-OUT: sub-suite :: test-two
|
|
|
|
# CHECK-ASEXEC-OUT: top-level-suite :: subdir/test-three
|
|
|
|
# CHECK-ASEXEC-OUT: top-level-suite :: test-one
|
|
|
|
# CHECK-ASEXEC-OUT: top-level-suite :: test-two
|
2013-04-12 21:08:57 +02:00
|
|
|
|
|
|
|
# Check discovery when exact test names are given.
|
|
|
|
#
|
|
|
|
# FIXME: Note that using a path into a subsuite doesn't work correctly here.
|
|
|
|
#
|
|
|
|
# RUN: %{lit} \
|
|
|
|
# RUN: %{inputs}/exec-discovery/subdir/test-three.py \
|
2013-08-08 22:59:25 +02:00
|
|
|
# RUN: -j 1 --show-tests --show-suites -v > %t.out
|
2013-04-12 21:08:57 +02:00
|
|
|
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-EXACT-TEST < %t.out %s
|
|
|
|
#
|
2013-08-07 05:12:51 +02:00
|
|
|
# CHECK-ASEXEC-EXACT-TEST: -- Available Tests --
|
|
|
|
# CHECK-ASEXEC-EXACT-TEST: top-level-suite :: subdir/test-three
|
2013-04-12 21:09:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Check that we don't recurse infinitely when loading an site specific test
|
|
|
|
# suite located inside the test source root.
|
|
|
|
#
|
|
|
|
# RUN: %{lit} \
|
|
|
|
# RUN: %{inputs}/exec-discovery-in-tree/obj/ \
|
2013-08-08 22:59:25 +02:00
|
|
|
# RUN: -j 1 --show-tests --show-suites -v > %t.out
|
2013-04-12 21:09:09 +02:00
|
|
|
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s
|
|
|
|
#
|
|
|
|
# CHECK-ASEXEC-INTREE: exec-discovery-in-tree-suite - 1 tests
|
|
|
|
# CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*/exec-discovery-in-tree$}}
|
|
|
|
# CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*/exec-discovery-in-tree/obj$}}
|
2013-08-07 05:12:51 +02:00
|
|
|
# CHECK-ASEXEC-INTREE-NEXT: -- Available Tests --
|
|
|
|
# CHECK-ASEXEC-INTREE-NEXT: exec-discovery-in-tree-suite :: test-one
|