Skip to content

Commit

Permalink
Merge pull request #3157 from GEOS-ESM/bugfix/mathomp4/pfunit-check
Browse files Browse the repository at this point in the history
Add CMake to skip ExtData2G unit test if pfunit not found
  • Loading branch information
mathomp4 authored Nov 6, 2024
2 parents a39cae0 + fdceeec commit 611fcd3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ workflows:
# ExtData1G tests were removed from ESSENTIAL, so we run them separately here as UFS might still use 1G?
ctest_options: "-L 'ESSENTIAL|EXTDATA1G_SMALL_TESTS' --output-on-failure"

# Builds MAPL without pFUnit support
- ci/build:
name: build-MAPL-without-pFUnit-on-<< matrix.compiler >>
context:
- docker-hub-creds
matrix:
parameters:
compiler: [ifort]
baselibs_version: *baselibs_version
repo: MAPL
mepodevelop: false
remove_pfunit: true
run_unit_tests: true
ctest_options: "-L 'ESSENTIAL' --output-on-failure"

# Run MAPL Tutorials
- ci/run_mapl_tutorial:
name: run-<< matrix.tutorial_name >>-Tutorial-with-<< matrix.compiler >>
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updates to CI
- Use v7.27.0 Baselibs
- Use GCC 14 for GNU tests
- Add pFUnit-less build test

### Fixed

Expand Down
4 changes: 3 additions & 1 deletion gridcomps/ExtData2G/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ if (CMAKE_Fortran_COMPILER_ID MATCHES Intel AND CMAKE_BUILD_TYPE MATCHES Release
set_source_files_properties(ExtDataGridCompNG.F90 PROPERTIES COMPILE_OPTIONS ${FOPT1})
endif ()

add_subdirectory(tests EXCLUDE_FROM_ALL)
if(PFUNIT_FOUND)
add_subdirectory(tests EXCLUDE_FROM_ALL)
endif()

0 comments on commit 611fcd3

Please sign in to comment.