add unit test functionality using the Fortan package manager #8
Open
JorgeG94 wants to merge 10 commits intoACCESS-NRI:gtracersfrom
Open
add unit test functionality using the Fortan package manager #8JorgeG94 wants to merge 10 commits intoACCESS-NRI:gtracersfrom
JorgeG94 wants to merge 10 commits intoACCESS-NRI:gtracersfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds unit testing functionality to the mocsy library using test-drive. This will enable easier refactors of the library in case they are needed. Some routines are a bit...monolithic.
The FPM build system lives independently of the CMake and the Make builds systems. The tests are taken form the
examples/directory and ran using the Makefile built system to obtain the reference values.The main purpose of this PR is to get a CMake independent testing framework for mocsy before adding a linking stage to it in the CMake. The options for this are:
When testing I ran into a FPE in the numerical derivatives module, where there was an uncatched division by 0 if an input was poor. I fixed this by simply cycling, since setting it to a very small number caused other issues. This would need testing.