lit: Add a test for discovery when exact test names are given.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 11 Apr 2013 00:31:22 +0000 (00:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 11 Apr 2013 00:31:22 +0000 (00:31 +0000)
llvm-svn: 179247

llvm/utils/lit/tests/discovery.py

index 54b99d3..4c8f280 100644 (file)
 # CHECK-BASIC-OUT: PASS: top-level-suite :: subdir/test-three
 # CHECK-BASIC-OUT: PASS: top-level-suite :: test-one
 # CHECK-BASIC-OUT: PASS: top-level-suite :: test-two
+
+
+# Check discovery when exact test names are given.
+#
+# RUN: %{lit} \
+# RUN:     %{inputs}/discovery/subdir/test-three.py \
+# RUN:     %{inputs}/discovery/subsuite/test-one.txt \
+# RUN:   -j 1 --no-execute --show-suites -v > %t.out
+# RUN: FileCheck --check-prefix=CHECK-EXACT-TEST < %t.out %s
+#
+# CHECK-EXACT-TEST: -- Testing: 2 tests, 1 threads --
+# CHECK-EXACT-TEST: PASS: sub-suite :: test-one
+# CHECK-EXACT-TEST: PASS: top-level-suite :: subdir/test-three
+
+