fortrantesthelper

August 4, 2025 ยท View on GitHub

A Fortran library to provide assistance to testing.

Status

CMake FPM

Documentation

The documentation can be found here.

Build with CMake

To configure, first navigate to the project directory and then issue the following command.

cmake -B build -DCMAKE_BUILD_TYPE=Release

To build the C API:

cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_FERROR_C_API=TRUE

If testing is to be included then:

cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=TRUE

or

cmake -B "build" -DCMAKE_BUILD_TYPE=Release -DBUILD_FERROR_C_API=TRUE -DBUILD_TESTING=TRUE

To build:

cmake --build build

Finally, to run the tests:

ctest --test-dir build/test

Building with FPM

This library can be built using Fortran Package Manager (fpm) using the supplied fpm.toml.

fpm build
fpm test --list
fpm test <test_name, see `fpm.toml` or list>