JeffersonLab / qphix

QCD for Intel Xeon Phi and Xeon processors
http://jeffersonlab.github.io/qphix/
Other
13 stars 11 forks source link

Better Testing #6

Open bjoo opened 10 years ago

bjoo commented 10 years ago

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

martin-ueding commented 7 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.

martin-ueding commented 7 years ago

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.

martin-ueding commented 7 years ago

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.