diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 00:21:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 00:21:51 +0000 |
commit | f74e41ab470eabf1516e04ecb74c68c14c50157c (patch) | |
tree | 853960da5773e2ef37e3aa601954bf7ff2d2d0b2 /llvm/utils/lit/tests/discovery.py | |
parent | d00a5e5455fe711b9ca7b3b990efe12980a22920 (diff) | |
download | bcm5719-llvm-f74e41ab470eabf1516e04ecb74c68c14c50157c.tar.gz bcm5719-llvm-f74e41ab470eabf1516e04ecb74c68c14c50157c.zip |
[lit] Add a basic discovery test.
llvm-svn: 174001
Diffstat (limited to 'llvm/utils/lit/tests/discovery.py')
-rw-r--r-- | llvm/utils/lit/tests/discovery.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/discovery.py b/llvm/utils/lit/tests/discovery.py new file mode 100644 index 00000000000..54b99d39458 --- /dev/null +++ b/llvm/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 |