History log of /frameworks/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/reduce_auto_comb.rs
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/java/Reduction/src/com/android/rs/lldbreductiontest/reduce_auto_comb.rs