[lldb-dev] Running a single test

Ed Maste via lldb-dev lldb-dev at lists.llvm.org
Tue Feb 9 14:01:01 PST 2016


I've been away from LLDB development for a little while but am
starting to work on it again.

I used to run a few tests using dotest.py's -f or -p flags, but they
don't seem to be working now.

  -f filterspec         Specify a filter, which consists of the test class
                        name, a dot, followed by the test method, to only
                        admit such test into the test suite
  -p pattern            Specify a regexp filename pattern for inclusion in the
                        test suite

For example, I'd expect this command:

% python dotest.py --executable
/tank/emaste/src/llvm/build-nodebug/bin/lldb -C /usr/bin/clang -v -t
-p TestCppIncompleteTypes

to run just the TestCppIncompleteTypes.py test(s), but instead it
looks like it runs the full suite.

I'd also expect

% python dotest.py --executable
/tank/emaste/src/llvm/build-nodebug/bin/lldb -C /usr/bin/clang -v -t
-f TestCppIncompleteTypes.test_limit_debug_info

to run a single test from the same suite, but it runs no tests
("Collected 0 tests").

I'm sure these options used to work, although this could be an issue
that affects only FreeBSD. Do they work on Linux/OS X?


More information about the lldb-dev mailing list