diff options
author | Alex Richert <alexander.richert@noaa.gov> | 2024-08-02 02:36:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 11:36:01 +0200 |
commit | 7c5771ed11459af785f62866f193eac0b9bbf55e (patch) | |
tree | 56fab6ecde51e0df9e506a06b2de2d413ab668d0 | |
parent | 81fb1a9b8f5d92d80e8b0853c12b033240ba6436 (diff) | |
download | spack-7c5771ed11459af785f62866f193eac0b9bbf55e.tar.gz spack-7c5771ed11459af785f62866f193eac0b9bbf55e.tar.bz2 spack-7c5771ed11459af785f62866f193eac0b9bbf55e.tar.xz spack-7c5771ed11459af785f62866f193eac0b9bbf55e.zip |
ncio: add check function to run unit tests (#45448)
-rw-r--r-- | var/spack/repos/builtin/packages/ncio/package.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ncio/package.py b/var/spack/repos/builtin/packages/ncio/package.py index 2af462841b..d710a81923 100644 --- a/var/spack/repos/builtin/packages/ncio/package.py +++ b/var/spack/repos/builtin/packages/ncio/package.py @@ -24,7 +24,7 @@ class Ncio(CMakePackage): version("1.1.0", sha256="9de05cf3b8b1291010197737666cede3d621605806379b528d2146c4f02d08f6") version("1.0.0", sha256="2e2630b26513bf7b0665619c6c3475fe171a9d8b930e9242f5546ddf54749bd4") - depends_on("fortran", type="build") # generated + depends_on("fortran", type="build") depends_on("mpi") depends_on("netcdf-fortran") @@ -34,3 +34,7 @@ class Ncio(CMakePackage): env.set("NCIO_LIB", lib[0]) env.set("NCIO_INC", join_path(self.prefix, "include")) env.set("NCIO_LIBDIR", lib[0]) + + def check(self): + with working_dir(self.builder.build_directory): + make("test") |