[llvm] r179247 - lit: Add a test for discovery when exact test names are given.

Daniel Dunbar daniel at zuster.org
Wed Apr 10 17:31:22 PDT 2013


Author: ddunbar
Date: Wed Apr 10 19:31:22 2013
New Revision: 179247

URL: http://llvm.org/viewvc/llvm-project?rev=179247&view=rev
Log:
lit: Add a test for discovery when exact test names are given.

Modified:
    llvm/trunk/utils/lit/tests/discovery.py

Modified: llvm/trunk/utils/lit/tests/discovery.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/discovery.py?rev=179247&r1=179246&r2=179247&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/discovery.py (original)
+++ llvm/trunk/utils/lit/tests/discovery.py Wed Apr 10 19:31:22 2013
@@ -23,3 +23,18 @@
 # 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
+
+





More information about the llvm-commits mailing list