Repository navigation
Link optional fbasics tests with abort recovery support - #180
sylvesterkaczmarek wants to merge 1 commit into
Conversation
|
Thanks for taking this on. I confirmed it on Windows 11 with gfortran 16.1 (conda-forge), the configuration from #174: with Running it on Windows exposed two problems in the existing tests, neither caused by this change. Drafted with Claude's assistance
|
|
Thanks for the independent Windows and Linux verification, @djkees. It is particularly helpful to know the optional fbasics target now links in the Windows configuration from #174. I've included your findings in the PR description and marked the change ready for review. The existing USER/USERNAME and exponent-format test differences appear separate from this CMake linkage fix, so I'll keep them out of its scope. Appreciate you testing the branch. |
Summary
Fixes #174.
Link the optional
fb_core_testtarget tocea_abort_supportwhen the C bindings are enabled, matching the existingcea_core_testlinkage. Keep this CEA-specific dependency beside the other recovery-support links rather than adding it to the vendored fbasics target definition.Changes
if(TARGET fb_core_test)so builds without the optional tests remain unchanged.fb_core_testin the existing pFUnit CI job. The following CTest step runs it with the other tests.Testing
On macOS arm64 with GNU Fortran 14.2 and CMake 4.3:
core-cbuild withCEA_BUILD_TESTING=ONandFB_BUILD_TESTING=ONfails to linkfb_core_testwith the two reportedcea_bindc_abort_*undefined symbols.core-cbuild and all 16 CTest targets pass, including the CEA core, CLI and C-binding tests.-hsmoke test.actionlintandgit diff --checkpass. Independent source review found no actionable defects.Windows/Intel compiler validation was not run locally. This change covers the reported C-bindings-enabled configuration; it does not redesign existing recovery-support linkage for standalone fbasics or C-bindings-disabled builds.
Compatibility / Numerical behavior
No solver, Fortran implementation, thermodynamic inputs or transport inputs are changed.
Independent platform verification
@djkees confirmed the linkage on Windows 11 with gfortran 16.1 in the same C bindings/testing configuration. Their fork's Linux GCC 11 pFUnit job built and passed fb_core_test and all 15 other CTest targets. On Windows, the existing USER/USERNAME assumption and E-12 versus E-012 exponent formatting in the test code cause two unrelated test failures; the optional test now links and runs. These platform observations were supplied by the contributor and were not independently executed on my machine.