-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from rem1776/update-ci-for-compilation
update CI image and add mkmf for fre make testing
- Loading branch information
Showing
8 changed files
with
58 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "mkmf"] | ||
path = mkmf | ||
url = https://github.com/NOAA-GFDL/mkmf | ||
[submodule "fre/gfdl_msd_schemas"] | ||
path = fre/gfdl_msd_schemas | ||
url = https://github.com/NOAA-GFDL/gfdl_msd_schemas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
''' test "fre make run-fremake" calls ''' | ||
|
||
import os | ||
from fre.make import runFremake | ||
from pathlib import Path | ||
|
||
# command options | ||
YAMLFILE = "fre/make/tests/null_example/null_model.yaml" | ||
PLATFORM = [ "ci.gnu" ] | ||
CONTAINER_PLATFORM = ["hpcme.2023"] | ||
TARGET = ["debug"] | ||
EXPERIMENT = "null_model_full" | ||
|
||
# get HOME dir to check output | ||
HOME_DIR = os.environ["HOME"] | ||
|
||
def test_fre_make_run_fremake_null_model_serial_compile(): | ||
''' run fre make with run-fremake subcommand and build the null model experiment with gnu''' | ||
runFremake.fremake_run(YAMLFILE, PLATFORM, TARGET, False, 1, False, False) | ||
assert Path(f"{HOME_DIR}/fremake_canopy/test/{EXPERIMENT}/{PLATFORM[0]}-{TARGET[0]}/exec/{EXPERIMENT}.x").exists() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters