292 fab pfunit#323
Conversation
…nfiguration to compile skeleton.
… build system and scripts.
Co-authored-by: Sam Clarke-Green <74185251+t00sa@users.noreply.github.com>
Co-authored-by: Sam Clarke-Green <74185251+t00sa@users.noreply.github.com>
Co-authored-by: Sam Clarke-Green <74185251+t00sa@users.noreply.github.com>
Co-authored-by: Sam Clarke-Green <74185251+t00sa@users.noreply.github.com>
…cific flags in order to only suppress for one file).
… link without openmp.
…pport, trying to use no-omp)
|
I've modified this PR to assume that the pfunit tool will be provided by Fab, and that Fab supports external declarations. While updating Fab's FabBase class based on the code reviews in lfric_core and um (fab ticket #544), the 'root_symbol' usage was renamed to Additionally, I discovered that the testing of the LFRicBase class in #240 was totally broken (luckily only the tests were not updated, the class itself was fine), I've fixed all the failing tests as well. I also noticed that lfric does not compile without openmp (some psykal lite files contain omp calls without sentinels, so it will cause compile time and/or linking errors. I have added a test to abort early if a user tries to disable OpenMP (ideally, we would want to just disable this command line flag, which is handled in FabBase - but afaik argparse does not provide an official way of removing command line options 😢 |
|
Matthew Hambley (@MatthewHambley), Sam Clarke-Green (@t00sa) - ready for a first review. Though it might be preferable to first handle the three required Fab updates (in case that they will require a change in the implementation, which could affect this PR):
|
PR Summary
Sci/Tech Reviewer:
Code Reviewer: Matthew Hambley (@MatthewHambley)
As discussed, this PR adds a mixin class that enables building of PFUnit-tests. It adds support to the skeleton app.
Code Quality Checklist
Testing
All N/A - this change does not integrate with cylc yet. Local builds have been successful.
Building skeleton with (and without) testing is now possible.
trac.log
N/A
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review