ROCm / hipfort

Fortran interfaces for ROCm libraries
https://rocm.docs.amd.com/projects/hipfort/en/latest/
Other
66 stars 34 forks source link

Add CTest support #130

Closed cgmb closed 8 months ago

cgmb commented 8 months ago

Add CTest support. To build the tests with CMake add -DBUILD_TESTING=ON. After the build is finished, the tests can be run with make test.

e.g.

cmake -S. -Bbuild -DBUILD_TESTING=ON
make -C build
CTEST_OUTPUT_ON_FAILURE=1 make -C build test

The tests can't successfully build with -std=f2003 or -std=f2008 because they depend on GNU extensions. I may look into making them more portable in the future, but for the moment, enabling BUILD_TESTING requires a compiler that supports -std=gnu.