framework: Split backend into a separate package

Graphics / Mesa 3D Graphics Library / Piglit - Dylan Baker [intel.com] - 2 October 2014 13:46 UTC

This moves all of the Backend classes into a separate package from the main framework, and uses it's __init__.py to allow some predefined objects from all of the packages to be accessed directly through backends. This API should be sufficient for most applications. It is possible to directly access the modules in the backends package.

In many of the cases where we need to bypass the backends package API the code accessing could use refactoring. Some of this refactoring will be done by this series.

b8d8cfa framework: Split backend into a separate package
framework/backends/__init__.py | 41 ++++
framework/backends/abstract.py | 125 ++++++++++
framework/backends/json_.py | 261 +++++++++++++++++++++
framework/backends/junit.py | 144 ++++++++++++
framework/programs/run.py | 12 +-
framework/results.py | 460 +------------------------------------
framework/tests/backends_tests.py | 153 ++++++++++++
framework/tests/dmesg_tests.py | 3 +-
framework/tests/results_tests.py | 126 ----------
9 files changed, 735 insertions(+), 590 deletions(-)

Upstream: cgit.freedesktop.org


  • Share