Skip to content

jchristopherson/fortran_test_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortran_test_helper

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>

About

A Fortran library to provide assistance to testing.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors