-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding pFUnit Support for Unit Testing in obs2ioda #23
Conversation
|
…tests. As of now, there are no unit tests but that will change in the future. Also updated installation section of The README to include instructions on how to install pFUnit and build obs2ioda with pFUnit support.
The command now is executed with bash -c '<prev command>' to make it possible to run from any shell, given the system has bash installed.
Removed seemingly hard requirement that build directories have to be named 'build' in the install instructions.
c4f1399
to
2b62978
Compare
Is the code in |
I meant to include these files in a later PR. Thanks for pointing this out!. |
If you have an environment preconfigured for `mpas-jedi`, simply source that environment prior to building `obs2ioda`. | ||
Prior to building `obs2ioda`, ensure that you have installed the following libraries: | ||
|
||
- **CMake**: Required (version 3.20 or higher). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should now read 3.12
.
@@ -54,9 +73,34 @@ To install the NCEP BUFR library, follow these steps: | |||
``` | |||
5. To locate the NCEP BUFR library, run: | |||
```bash | |||
find . -name *libbufr* | |||
bash -c "find . -name *libbufr*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a specific reason this find
command needs to be run in the bash shell?
This PR introduces support for using pFUnit to write unit tests in the
obs2ioda
project, a key step in refactoring legacy Fortran code. Unit testing is essential for verifying that code changes do not introduce subtle, breaking issues. Given the current lack of a unit testing framework inobs2ioda
, maintaining code quality and making major changes safely have been challenging.This PR addresses these issues by:
The installation instructions have been updated with guidance on installing pFUnit and enabling testing during the CMake build process.
By establishing a unit testing framework, this PR sets the foundation for future improvements and enhances the reliability of code refactoring efforts.
**Closing this PR due to compilation issues with
pFUnit
and thenvhpc
compilers (pFUnit Issue 476)