Skip to content

Conversation

@amstokely
Copy link
Contributor

This PR introduces full CMake integration for building and running the MPAS test core. It adds new CMake utility functions that automate downloading, extracting, and linking the test input data required to run the core.

The following helper functions were added:

  • download_mpas_test_data
  • untar_tarball
  • mpas_link_file_force
  • mpas_link_directory
  • setup_mpas_test_core

When the test core is built with CMake, these utilities automatically download the mpas_test_data.tar.gz archive (if not already present), extract it, and link the necessary files into the CMake binary directory. This ensures the test core can be built and executed directly through CMake without any manual setup steps.

No existing build logic or model behavior was modified. These changes only add support for building and preparing the test core environment through CMake.

This commit introduces full CMake integration for the MPAS test core,
including automatic setup, linking, and test data management. The new
CMake functions handle downloading and extracting required input files
if they are not already present, ensuring a fully self-contained test
environment. These changes simplify development and make it possible to
build and run the test core directly through CMake.
@jim-p-w
Copy link
Contributor

jim-p-w commented Oct 27, 2025

Consider adding instructions for building and running the test to the commit message. Something like

To build the test, cmake -DMPAS_CORES=test .. followed by make.
Then cd to the test directory and run ./mpas_test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants