Is there a unit testing framework (or a plugin to a framework) that supports testing of objects in host and device code? Or are there plans for such a framework?
For example I have a matrix class that has some methods like calculating the determinant or trace. It would be nice to write a test that is automatically run on cpu and in a cuda kernel.
In this example I want to write a test like this:
Matrix a; fillWithData(a); assert_eq( theDeterminant, a.det() );
In this simple case a unit testing framework could easily setup code for a kernel to run the test.
Of course, I can write such a code myself, but my question is if there is already a standard way to do this.