Zachary's solution will work as well but that one won't make debugging the test too easy (still using several processes). If you want to run just 1 test then you have to specify --no-multiprocess and then you can use the same flags as before (-p, -f)
On Tue, Feb 9, 2016 at 10:19 PM Zachary Turner via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Try passing the directory to start in as the last argument. Also make > sure you include .py on the filename when using -p (I don't actually know > if this is required but I do it). > > % python dotest.py > --executable /tank/emaste/src/llvm/build-nodebug/bin/lldb -C /usr/bin/clang > -v -t -p TestCppIncompleteTypes.py > ~/src/llvm/tools/lldb/packages/Python/lldbsuite/test > > I don't know off the top of my head why that last argument is required, > and I agree it's counterintuitive and probably doesn't *need* to be that > way for technical reasons. > > LMK if this works > > On Tue, Feb 9, 2016 at 2:01 PM Ed Maste via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > >> 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? >> _______________________________________________ >> lldb-dev mailing list >> lldb-dev@lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev >> > _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev >
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev