Testing: Generalized testing rules #1502
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds new rules and features to the MOM6 testing Makefile:
BUILDS
for executablesCONFIGS
for configurations (tc1, tc2, etc)TESTS
for test types (grid
,rotate
, etc)tc
and can be added toCONFIGS
, although this is still the default behavior.test.dim
can now be used to run all dimensional teststc2
will run all tc2 teststc2.grid
will run the symmetric/asymmetric grid tests on tc2tc2.dim
will run all dimension tests on tc2tc2.dim.q
will run the Q-dimensional tests on tc2NOTE:
tc2
will run diagnostic tests, but the others will not; usetc2.grid.diag
to run them, for example.test.rotations
is nowtest.rotate
.%
) rules have been redefined as explicitly over the tests.repro
build was incorrectly being built, even whenDO_REPRO_TESTS
was unset. This has been fixed.make clean
now deletes bothbuild
anddeps
(including FMS), thereby reversing the behavior ofMakefile
.make.build
rule is provided to only delete the MOM6 buildsThe GitHub Actions tests have also been updated to use the renamed