add unit tests for embree#952
Conversation
|
Thanks @ikoruk , just FYI, we are in the process of migrating to Catch2 instead of google unit test. |
|
This looks good. Is there a special way I'm suppose to mark this as reviewed? |
qnzhou
left a comment
There was a problem hiding this comment.
Looks good to me. Not directly related, but I kind of think EmbreeIntersector class should be templated. The PointMatrixType and FaceMatrixType are hard coded to be column major, which may be inefficient. @alecjacobson @jdumas
alecjacobson
left a comment
There was a problem hiding this comment.
Looks good (I figured out reviewing).
|
I agree @qnzhou , but that looks like a separate PR to me. |
|
I discovered a bug in intersectBeam and issued a fix into this PR yesterday, so this should be re-reviewed before merging. |
|
there is a script (posted on the other PR) to convert a google test into Catch2 test |
now all test have a common target
updated test to catch2
|
I updated the test to catch2. @ikoruk can you check? |
teseoch
left a comment
There was a problem hiding this comment.
it seems that windows cannot see the tests anymore
|
@teseoch The changes look fine to me but I haven't used catch, don't know what would make it skip tests on windows. |
removed tab to rerun CI
temporary commented embree tests in cmake to debug missing tests
more misterious debugging
|
Alright, I managed to compile embree statically on Windows, the build on AppVeyor looks ok now! As for why unit-tests were not showing on AppVeyor before, this has to do with the way Catch2 discovers unit tests and populates the CTest config. Indeed, the macro |
Unit test for embree, in preparation of #947