History log of /frameworks/rs/tests/lldb/tests/testcases/test_allocation_dump_struct.py
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/tests/testcases/test_allocation_dump_struct.py
5bbcc3861c44435f89481f80946ef5c9c49968f2 11-Nov-2016 Luke Drummond <luke.drummond@codeplay.com> [NFC] Add missing copyright headers to lldb tests

Test: NFC

Change-Id: I94fb6b3965887f24188d9afdc7b115c370f42b3f
Signed-off-by: Luke Drummond <luke.drummond@codeplay.com>
/frameworks/rs/tests/lldb/tests/testcases/test_allocation_dump_struct.py
a3c6f62775506c95afd556e617f14d7a28839f01 20-Jun-2016 Luke Drummond <luke.drummond@codeplay.com> Bring lldb testsuite up to date with codeplay internal

- Make source python2/3 compatible (win32 lldb with debug symbols requires python3)
- Reduce testsuite footprint by merging duplicated tests across jni,
cpp, and java tests. This code reduction required the addition of
new app-type decorators in tests/harness/decorators. Separate
directories for each bundle type are no longer required.
- Improve wimpy test logic: @wimpy decorator added. `harness.TestBase`
now take wimpy argument which is an attribute on all test-cases
objects.
- Bundle type is now printed in the logs.
- Revise the test breakpoint coordinate test, and fix problem with
incorrectly numbered breakpoints in
`test_breakpoint_coordinate_3d_add_half_kernel()`
- Support better test descovery with multiple `test_*` methods per
`TestBase` object, and multiple TestBase objects per module.
- Added single source tests.
- Added `--fail-fast` command line switch to bail out after first failure.
- Added basic progress metering
- Deprecate running the emulator from the testsuite; this required the
addition of the `decorators.deprecated` decorator.
- Added `--app-type` command line argument to specify a subset of tests
to run.
- Clean up naming conventions in the tested apps.

Change-Id: Ifc34a9c2a2666152760a261333a20d585cfb3162
Signed-off-by: Luke Drummond <luke.drummond@codeplay.com>
/frameworks/rs/tests/lldb/tests/testcases/test_allocation_dump_struct.py