summaryrefslogtreecommitdiff
path: root/utils/lit/tests/discovery.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-01-31 00:21:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-01-31 00:21:51 +0000
commitada2de95ac8268fb142b669d3fd1be7563dffd0f (patch)
treef5244c9f341bde5ccfa6c8413306db13d33bfef2 /utils/lit/tests/discovery.py
parent412d805841da9ac25decbdf2aeda8e6d36109e89 (diff)
downloadllvm-ada2de95ac8268fb142b669d3fd1be7563dffd0f.tar.gz
llvm-ada2de95ac8268fb142b669d3fd1be7563dffd0f.tar.bz2
llvm-ada2de95ac8268fb142b669d3fd1be7563dffd0f.tar.xz
[lit] Add a basic discovery test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/tests/discovery.py')
-rw-r--r--utils/lit/tests/discovery.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/lit/tests/discovery.py b/utils/lit/tests/discovery.py
new file mode 100644
index 0000000000..54b99d3945
--- /dev/null
+++ b/utils/lit/tests/discovery.py
@@ -0,0 +1,25 @@
+# Check the basic discovery process, including a sub-suite.
+#
+# RUN: %{lit} %{inputs}/discovery \
+# RUN: -j 1 --debug --no-execute --show-suites -v > %t.out 2> %t.err
+# RUN: FileCheck --check-prefix=CHECK-BASIC-OUT < %t.out %s
+# RUN: FileCheck --check-prefix=CHECK-BASIC-ERR < %t.err %s
+#
+# CHECK-BASIC-ERR: loading suite config '{{.*}}/tests/Inputs/discovery/lit.cfg'
+# CHECK-BASIC-ERR: loading local config '{{.*}}/tests/Inputs/discovery/subdir/lit.local.cfg'
+# CHECK-BASIC-ERR: loading suite config '{{.*}}/tests/Inputs/discovery/subsuite/lit.cfg'
+#
+# CHECK-BASIC-OUT: -- Test Suites --
+# CHECK-BASIC-OUT: sub-suite - 2 tests
+# CHECK-BASIC-OUT: Source Root:
+# CHECK-BASIC-OUT: Exec Root :
+# CHECK-BASIC-OUT: top-level-suite - 3 tests
+# CHECK-BASIC-OUT: Source Root:
+# CHECK-BASIC-OUT: Exec Root :
+#
+# CHECK-BASIC-OUT: -- Testing: 5 tests, 1 threads --
+# CHECK-BASIC-OUT: PASS: sub-suite :: test-one
+# CHECK-BASIC-OUT: PASS: sub-suite :: test-two
+# 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