[Mesa-dev] [PATCH v2 00/12] Finish unit tests for meson build
Dylan Baker
dylan at pnwbakers.com
Thu Apr 5 21:51:28 UTC 2018
This series adds the rest of the unit tests in the mesa tree, including
the gallium test binaries. The relevant tests are wired into the `ninja
test` command, and all tests pass.
A big part of this series is converting tests from shell based to a pure
python base. These are mostly straight forward conversions, with one big
exception that the lower_jump_tests is converted from a tool that
generates shell scripts to run, to a single python binary that generates
tests in memory as run, and runs them. The shell scripts have been kept
to allow passing arguments to the python scripts, they are not meant to
be run directly, just to wrap the python scripts for autotools.
v2: - Gate tests that require softpipe on softpipe
- add mesa gallium state tracker tests
- Add graw tests (Thanks to Brian and Jose for explaining these)
Dylan Baker (12):
glsl/tests: reimplement warnings-test in python
meson: run glsl compiler warnings test
glsl/tests: Convert optimization-test.sh to pure python
meson: enable optimization-test
glsl/tests: Remove unused compare_ir.py script
glcpp/tests: Convert shell scripts to a python script
meson: enable glcpp test
meson: Remove TODO about mesa/main tests
meson: Build gallium trivial tests
meson: build gallium unit tests
meson: build tests for gallium mesa state tracker
meson: build graw tests
meson.build | 2 +-
src/compiler/glsl/glcpp/meson.build | 18 +-
src/compiler/glsl/glcpp/tests/glcpp-test-cr-lf.sh | 148 +--
src/compiler/glsl/glcpp/tests/glcpp-test.sh | 121 +-
src/compiler/glsl/glcpp/tests/glcpp_test.py | 221 +++-
src/compiler/glsl/tests/compare_ir.py | 58 +-
src/compiler/glsl/tests/lower_jump_cases.py | 643 ++++++++-
src/compiler/glsl/tests/lower_jumps/.gitignore | 3 +-
src/compiler/glsl/tests/lower_jumps/create_test_cases.py | 673 +--------
src/compiler/glsl/tests/meson.build | 15 +-
src/compiler/glsl/tests/optimization-test.sh | 87 +-
src/compiler/glsl/tests/optimization_test.py | 95 +-
src/compiler/glsl/tests/warnings-test.sh | 57 +-
src/compiler/glsl/tests/warnings_test.py | 74 +-
src/gallium/meson.build | 10 +-
src/gallium/targets/graw-null/meson.build | 34 +-
src/gallium/targets/graw-xlib/meson.build | 33 +-
src/gallium/tests/graw/meson.build | 36 +-
src/gallium/tests/meson.build | 25 +-
src/gallium/tests/trivial/meson.build | 29 +-
src/gallium/tests/unit/meson.build | 31 +-
src/mesa/meson.build | 2 +-
src/mesa/state_tracker/tests/meson.build | 40 +-
src/meson.build | 3 +-
24 files changed, 1307 insertions(+), 1151 deletions(-)
create mode 100755 src/compiler/glsl/glcpp/tests/glcpp_test.py
delete mode 100644 src/compiler/glsl/tests/compare_ir.py
create mode 100644 src/compiler/glsl/tests/lower_jump_cases.py
delete mode 100644 src/compiler/glsl/tests/lower_jumps/.gitignore
delete mode 100644 src/compiler/glsl/tests/lower_jumps/create_test_cases.py
create mode 100755 src/compiler/glsl/tests/optimization_test.py
create mode 100755 src/compiler/glsl/tests/warnings_test.py
create mode 100644 src/gallium/targets/graw-null/meson.build
create mode 100644 src/gallium/targets/graw-xlib/meson.build
create mode 100644 src/gallium/tests/graw/meson.build
create mode 100644 src/gallium/tests/meson.build
create mode 100644 src/gallium/tests/trivial/meson.build
create mode 100644 src/gallium/tests/unit/meson.build
create mode 100644 src/mesa/state_tracker/tests/meson.build
base-commit: 6ac87c17695ebf300a81ecc61e5703c6492b6e5c
--
git-series 0.9.1
More information about the mesa-dev
mailing list