Open bjoo opened 10 years ago
I have thought about porting it to gtest for a while now. Then one could have proper test fixtures and consolidate a lot of the setup and teardown code. But I would only do this after #35, because then there would not be much to tear down manually, anyway.
I have added gtest this morning, it is in tests-gtest
. It is independent of the current tests, so one can just write some new tests in that directory. If one feels like it, the existing tests can be ported into the new structure.
The setup of QDP has not been done properly, I fear. I always get nullptr
somewhere within QDP. Perhaps some memory has not been allocated at that point. Before one can actually use the Google Test, one has to fix that.
The current testing programs do too much (test dslash, solvers etc for a variety of precisions) and are a bit ad-hoc. Something more fine grained and automatable would be desirable