Commit graph

2 commits

Author SHA1 Message Date
Wunk
fe9939689d
Add shader-jit unit-tests (#458)
* Rename `dynapica` TU to `shader`

These unit-tests in particular only actually test
the shader-interpreter and not any of the JITs.

* Conditionally test the shader-jit

In the case that the host supports the shader-jit, the interpreter and the shader-jit will both be tested with the same unit-tests. Allowing for even more coverage.

* Remove weird git submodule
2024-03-12 02:29:58 +02:00
Wunk
18df066463
Add shader unit-testing (#457)
* Initialize catch-2 based unit tests

* Add nihstro submodule

Enabled only during testing to help with assembling shaders in-code.

* Implement `ADD` instruction unit-test

* Add arithmetic/logical instruction unit tests

* Add embedded catch2 submodule

Will use the host catch2 if available.
2024-03-12 00:53:49 +02:00