hanchenye-llvm-project/lldb
Enrico Granata 165f8af8c5 Initial commit of a new testsuite feature: test categories.
This feature allows us to group test cases into logical groups (categories), and to only run a subset of test cases based on these categories.

Each test-case can have a new method getCategories(self): which returns a list of strings that are the categories to which the test case belongs.
If a test-case does not provide its own categories, we will look for categories in the class that contains the test case.
If that fails too, the default implementation looks for a .category file, which contains a comma separated list of strings.
The test suite will recurse look for .categories up until the top level directory (which we guarantee will have an empty .category file).

The driver dotest.py has a new --category <foo> option, which can be repeated, and specifies which categories of tests you want to run.
(example: ./dotest.py --category objc --category expression)

All tests that do not belong to any specified category will be skipped. Other filtering options still exist and should not interfere with category filtering.
A few tests have been categorized. Feel free to categorize others, and to suggest new categories that we could want to use.

All categories need to be validly defined in dotest.py, or the test suite will refuse to run when you use them as arguments to --category.

In the end, failures will be reported on a per-category basis, as well as in the usual format.

This is the very first stage of this feature. Feel free to chime in with ideas for improvements!

llvm-svn: 164403
2012-09-21 19:10:53 +00:00
..
docs Incorporate suggestions from Jim, add "USING LLDB" and "FILES" sections. 2012-06-08 23:49:32 +00:00
examples Added auto LLDB import to the crashlog script. 2012-09-19 01:59:34 +00:00
include Fixed a problem where persistent variables did 2012-09-20 23:21:16 +00:00
lib Fixes by Daniel Malea. 2012-08-28 13:59:38 +00:00
lldb.xcodeproj Bump to lldb-168, debugserver-193. 2012-09-20 06:42:30 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Bump to lldb-168, debugserver-193. 2012-09-20 06:42:30 +00:00
scripts Fix some type-related swig bugs on FreeBSD on x86_64 (and maybe other OS/arch). 2012-09-19 15:22:05 +00:00
source Full KDP process control with per CPU resume and step. 2012-09-21 16:31:20 +00:00
test Initial commit of a new testsuite feature: test categories. 2012-09-21 19:10:53 +00:00
tools Re-adding this previously removed file. 2012-09-20 23:08:52 +00:00
utils Minor cleanup. 2012-03-05 18:25:29 +00:00
www Don't force libc++ and c++11 on everyone. 2012-09-14 17:09:06 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
INSTALL.txt
LICENSE.TXT
Makefile Don't force libc++ and c++11 on everyone. 2012-09-14 17:09:06 +00:00