crtm: disable testing if not self.run_tests (#49469)

* crtm: disable testing if not self.run_tests
* Update package.py
This commit is contained in:
Alex Richert 2025-03-13 22:23:51 -07:00 committed by GitHub
parent 3676381357
commit 916755e22a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,10 +92,12 @@ def url_for_version(self, version):
# https://github.com/JCSDA/spack-stack/issues/1088
patch("v3.1.0-skylabv8.installprefix.patch", when="@v3.1.0-skylabv8")
@when("@2.4.0.1")
def patch(self):
if self.compiler.name in ["gcc", "clang", "apple-clang"]:
# Line lengths in RSS_Emissivity_Model.f90 are too long for gfortran default limit
filter_file(
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
)
if self.spec.satisfies("@2.4.0.1"):
if self.compiler.name in ["gcc", "clang", "apple-clang"]:
# Line lengths in RSS_Emissivity_Model.f90 are too long for gfortran default limit
filter_file(
"-fbacktrace", "-fbacktrace -ffree-line-length-none", "libsrc/CMakeLists.txt"
)
if not self.run_tests:
filter_file(r"add_subdirectory\(test\)", "# disable testing", "CMakeLists.txt")