[lldb-dev] Running a single test

Ed Maste via lldb-dev lldb-dev at lists.llvm.org
Tue Feb 9 15:44:40 PST 2016


On 9 February 2016 at 17:19, Zachary Turner <zturner at google.com> 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.

Ah yes, that works for -p, and explains why it worked for me before:
the tests themselves used to be in lldb/tests/... (that is,
subdirectories of dotest.py's location), so they were found without
specifying an explicit path. Thanks.


More information about the lldb-dev mailing list