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>
This commit is contained in:
Connor Abbott
2018-11-29 17:46:59 +01:00
parent 29a1450e28
commit a0ae12ca91
4 changed files with 129 additions and 1 deletions

View File

@@ -262,4 +262,11 @@ if with_tests
),
suite : ['compiler', 'nir'],
)
test(
'nir_algebraic_parser',
prog_python,
args : [
join_paths(meson.current_source_dir(), 'tests/algebraic_parser_test.py')
],
)
endif