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>
14 files changed
tree: a789e098863e3479c1bac4d02620e4b1d242dca1
  1. api/
  2. cpp/
  3. cpu_ref/
  4. driver/
  5. java/
  6. rsov/
  7. scriptc/
  8. server/
  9. tests/
  10. Android.bp
  11. Android.mk
  12. build_rs.py
  13. CleanSpec.mk
  14. libRS.map
  15. rs.h
  16. rs.spec
  17. rs_compat.spec
  18. rs_hal.h
  19. rsAllocation.cpp
  20. rsAllocation.h
  21. rsAnimation.cpp
  22. rsAnimation.h
  23. rsApiAllocation.cpp
  24. rsApiContext.cpp
  25. rsApiDevice.cpp
  26. rsApiElement.cpp
  27. rsApiFileA3D.cpp
  28. rsApiMesh.cpp
  29. rsApiType.cpp
  30. rsClosure.cpp
  31. rsClosure.h
  32. rsCompatibilityLib.cpp
  33. rsCompatibilityLib.h
  34. rsComponent.cpp
  35. rsComponent.h
  36. rsContext.cpp
  37. rsContext.h
  38. rsCppUtils.cpp
  39. rsCppUtils.h
  40. rsDebugHelper.h
  41. rsDefines.h
  42. rsDevice.cpp
  43. rsDevice.h
  44. rsDriverLoader.cpp
  45. rsElement.cpp
  46. rsElement.h
  47. rsEnv.h
  48. rsFBOCache.cpp
  49. rsFBOCache.h
  50. rsFifo.h
  51. rsFifoSocket.cpp
  52. rsFifoSocket.h
  53. rsFileA3D.cpp
  54. rsFileA3D.h
  55. rsFont.cpp
  56. rsFont.h
  57. rsg.spec
  58. rsg_generator.c
  59. rsgApi.cpp.rsg
  60. rsgApiFuncDecl.h.rsg
  61. rsgApiReplay.cpp.rsg
  62. rsgApiStructs.h.rsg
  63. rsGrallocConsumer.cpp
  64. rsGrallocConsumer.h
  65. rsInternalDefines.h
  66. rsList.h
  67. rsMap.h
  68. rsMatrix2x2.cpp
  69. rsMatrix2x2.h
  70. rsMatrix3x3.cpp
  71. rsMatrix3x3.h
  72. rsMatrix4x4.cpp
  73. rsMatrix4x4.h
  74. rsMesh.cpp
  75. rsMesh.h
  76. rsMutex.cpp
  77. rsMutex.h
  78. rsObjectBase.cpp
  79. rsObjectBase.h
  80. rsProgram.cpp
  81. rsProgram.h
  82. rsProgramBase.h
  83. rsProgramFragment.cpp
  84. rsProgramFragment.h
  85. rsProgramRaster.cpp
  86. rsProgramRaster.h
  87. rsProgramStore.cpp
  88. rsProgramStore.h
  89. rsProgramVertex.cpp
  90. rsProgramVertex.h
  91. rsRuntime.h
  92. rsSampler.cpp
  93. rsSampler.h
  94. rsScript.cpp
  95. rsScript.h
  96. rsScriptC.cpp
  97. rsScriptC.h
  98. rsScriptC_Lib.cpp
  99. rsScriptC_LibGL.cpp
  100. rsScriptGroup.cpp
  101. rsScriptGroup.h
  102. rsScriptGroup2.cpp
  103. rsScriptGroup2.h
  104. rsScriptGroupBase.h
  105. rsScriptIntrinsic.cpp
  106. rsScriptIntrinsic.h
  107. rsSignal.cpp
  108. rsSignal.h
  109. rsStream.cpp
  110. rsStream.h
  111. rsThreadIO.cpp
  112. rsThreadIO.h
  113. rsType.cpp
  114. rsType.h
  115. rsUtils.h
  116. run_rs_cts.sh
  117. spec.h
  118. spec.l
  119. update-prebuilts.py
  120. update_rs_prebuilts.sh