aco: add framework for unit testing

Graphics / Mesa 3D Graphics Library / Mesa - Rhys Perry [gmail.com] - 30 July 2020 16:13 UTC

And add some "tests" to test and document currently unused features of the framework.

e6366f90943 aco: add framework for unit testing
meson.build | 4 +
meson_options.txt | 8 +-
src/amd/compiler/aco_assembler.cpp | 4 +-
src/amd/compiler/aco_builder_h.py | 2 +-
src/amd/compiler/aco_lower_to_hw_instr.cpp | 2 +-
src/amd/compiler/aco_opcodes.py | 1 +
src/amd/compiler/tests/README.md | 19 ++
src/amd/compiler/tests/check_output.py | 512 +++++++++++++++++++++++++++++
src/amd/compiler/tests/framework.h | 70 ++++
src/amd/compiler/tests/helpers.cpp | 170 ++++++++++
src/amd/compiler/tests/helpers.h | 50 +++
src/amd/compiler/tests/main.cpp | 290 ++++++++++++++++
src/amd/compiler/tests/meson.build | 49 +++
src/amd/compiler/tests/test_tests.cpp | 78 +++++
src/amd/meson.build | 3 +
15 files changed, 1258 insertions(+), 4 deletions(-)

Upstream: cgit.freedesktop.org


  • Share