Lines Matching full:api

21 * **API tests**: Integration tests that interact with the debugger through the
22 SB API. These are written in Python and use LLDB's ``dotest.py`` testing
59 as the Python API. For example, to test setting a breakpoint, you could do it
60 from the command line driver with ``b main`` or you could use the SB API and do
64 relatively simple. Expressivity is limited compared to the API tests, which
76 you can often get away with a broken or incomplete binary, whereas the API
89 API Tests
92 API tests are located under ``lldb/test/API``. They are run with the
94 compiled with Make. The majority of API tests are end-to-end tests that compile
104 Below is the directory layout of the `example API test
105 <https://github.com/llvm/llvm-project/tree/main/lldb/test/API/sample_test>`_.
155 test, the API test also allow for much more complex scenarios when it comes to
205 In conclusion, you'll want to opt for an API test to test the API itself or
207 program being debugged. The fact that the API tests work with different
208 variants mean that more general tests should be API tests, so that they can be
211 Guidelines for API tests
214 API tests are expected to be fast, reliable and maintainable. To achieve this
215 goal, API tests should conform to the following guidelines in addition to normal
224 The part of the SB API that can be tested with just a target includes
230 the `SBType`-related parts of the API. With those languages it's also
249 use a cache that is shared between all API tests and that contains
277 **Prefer LLDB testing utilities over directly working with the SB API.**
287 **Prefer calling the SB API over checking command output.**
289 the output of LLDB commands and instead try calling into the SB API. Relying
352 As an example, take a look at test/API/functionalities/breakpoint/breakpoint_conditions/main.c whic…
373 As an example, take a look at test/API/lang/c/forward/TestForwardDeclaration.py which has these lin…
398 for example, in test/API/terminal/TestSTTYBeforeAndAfter.py:
456 * Use ``check-lldb-api`` to run just the SB API tests.
461 target ``check-lldb-shell-objectfile``. However, because the unit tests and API
485 For the SB API tests it is possible to forward arguments to ``dotest.py`` by
493 Below is an overview of running individual test in the unit and API test suites
496 Running a Specific Test or Set of Tests: API Tests