nir/algebraic: Add unit tests for bitsize validation
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 29 Nov 2018 16:46:59 +0000 (17:46 +0100)
committerConnor Abbott <cwabbott0@gmail.com>
Wed, 5 Dec 2018 16:57:40 +0000 (17:57 +0100)
commita0ae12ca91a45f81897e774019cde9bd081f03a0
tree87deeaf0a95807d28ed3b1f2e6075969d3a93c87
parent29a1450e288c57727a5cfe22fa4463a53f9cc8bf
nir/algebraic: Add unit tests for bitsize validation

The non-failure path can be tested by just compiling mesa and then
testing it, but the failure paths won't be hit unless you make a mistake,
so it's best to test them with some unit tests.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/compiler/Makefile.nir.am
src/compiler/nir/meson.build
src/compiler/nir/tests/algebraic_parser_test.py [new file with mode: 0644]
src/compiler/nir/tests/algebraic_parser_test.sh [new file with mode: 0644]