lutraconsulting / MDAL

Mesh Data Abstraction Library
http://www.mdal.xyz/
MIT License
160 stars 50 forks source link

mdal_api_test fails if MDAL is built without HDF5 #304

Closed runette closed 4 years ago

runette commented 4 years ago

ERROR

You can build MDAL without HDF5 using the -DWITH_HDF5=OFF switch and the build works, but the tests fail because mdal_api_test expects the build to have used HDF5

RESULT

ApiTest.MeshNamesApi fails

EXPECTED RESULT

All tests should be passed

PROPOSED ACTION

I think that test_api.cpp probably needs to be split into two - one for tests that do not need HDF5 and one for tests that need it.

runette commented 4 years ago

I found a fix with compiler directives