sigio: add unit testing with pfunit (#45454)
This commit is contained in:
@@ -21,7 +21,11 @@ class Sigio(CMakePackage):
|
|||||||
version("develop", branch="develop")
|
version("develop", branch="develop")
|
||||||
version("2.3.2", sha256="333f3cf3a97f97103cbafcafc2ad89b24faa55b1332a98adc1637855e8a5b613")
|
version("2.3.2", sha256="333f3cf3a97f97103cbafcafc2ad89b24faa55b1332a98adc1637855e8a5b613")
|
||||||
|
|
||||||
depends_on("fortran", type="build") # generated
|
depends_on("fortran", type="build")
|
||||||
|
|
||||||
|
def cmake_args(self):
|
||||||
|
args = [self.define("ENABLE_TESTS", self.run_tests)]
|
||||||
|
return args
|
||||||
|
|
||||||
def setup_run_environment(self, env):
|
def setup_run_environment(self, env):
|
||||||
lib = find_libraries("libsigio", root=self.prefix, shared=False, recursive=True)
|
lib = find_libraries("libsigio", root=self.prefix, shared=False, recursive=True)
|
||||||
@@ -35,3 +39,7 @@ def flag_handler(self, name, flags):
|
|||||||
if name == "fflags":
|
if name == "fflags":
|
||||||
flags.append("-Free")
|
flags.append("-Free")
|
||||||
return (None, None, flags)
|
return (None, None, flags)
|
||||||
|
|
||||||
|
def check(self):
|
||||||
|
with working_dir(self.builder.build_directory):
|
||||||
|
make("test")
|
||||||
|
|||||||
Reference in New Issue
Block a user