History log of /frameworks/rs/tests/lldb/tests/harness/assert_mixins.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
506520732420b196f4f17d67596fd81004faf009 21-Dec-2016 Luke Drummond <luke.drummond@codeplay.com> Update tests to reflect recent changes in lldb upstream and librs

- Recent work in lldb upstream has changed the output format for printing
resolved breakpoints to not print the function address in case the name
is known, and to now return `None` instead of "" in case a command has
no output

- The recent addition of licence headers to the RenderScript sources in
the lldb testsuite has caused upset to tests of breakpoints involving
specified file/lines. The copyright headers were introduced in
5bbcc3861c44435f89481f80946ef5c9c49968f2 which broke these tests

Test: aosp_x86_64-eng (emulator) rs/tests/lldb
- required various other pending CLs

Bug: 23535482

Change-Id: Ib65889865ea3d6442e7ee5c909afafee2fe947a0
Signed-off-by: Luke Drummond <luke.drummond@codeplay.com>
/frameworks/rs/tests/lldb/tests/harness/assert_mixins.py
4546f4b74db2655d36b2e19d1e839d7ef37cb27c 04-Nov-2016 Luke Drummond <luke.drummond@codeplay.com> Add tests for the debugging of Reduction kernels

These testcases check LLDB's handling of reductions: tracking script
modules that contain reduction kernels; setting breakpoints on reduction
kernels; testing the tracking and display of kernel metadata across
generated and user-provided funtions; testing breakpoints predicated on
`--function-role`; setting breakpoints on functions predicated on
`.expand` coordinates.

I've also factored out the coordinate handling for allocations tests
to make the coordinate-conditional breakpoint assertions reusable now
we're able to debug multiple types of RenderScript kernel.

Tests coverage:
- conditional compilation of combiner (single and multithreaded
tests)
- testcase with autogenerated combiner and user-supplied combiner
function
- setting breakpoints on named reductions conditional on the
function type and possible permutations of the set of available
function types (testing the lldb `--function-role` breakpoint
argument.
- Test that all available reductions are resolved and check that
foreach kernels are listed separately for a script having both
forEach and Reduction kernels.
- Test deletion and creation of Reduction breakpoints as a group.

Test: Run the RenderScript lldb testsuite
(frameworks/rs/tests/lldb/run_tests.py)

Change-Id: Ib6c61a04d0cbce121cebc8bde83b6afb43d5aa61
Signed-off-by: Luke Drummond <luke.drummond@codeplay.com>
/frameworks/rs/tests/lldb/tests/harness/assert_mixins.py