irods / irods_docs

iRODS Documentation
3 stars 17 forks source link

Developer documentation: how to write unit tests for plugins #211

Open SwooshyCueb opened 1 year ago

SwooshyCueb commented 1 year ago

Prerequisite: #210

We build our plugins as "module" libraries, a CMake construct that, in our case, is just a shared library that is treated differently by the buildsystem. They cannot be linked against, which makes writing unit tests for them potentially tricky. We should document how to use an object library target to make symbols accessible to unit tests.