From 4f6037b1e7b55049303c946b1e3694f6cad9ef58 Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Mon, 11 Sep 2023 17:22:32 -0700 Subject: [PATCH] add explicit build_check to recipe --- spack/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spack/package.py b/spack/package.py index 9b4fef44..886a1b86 100644 --- a/spack/package.py +++ b/spack/package.py @@ -85,3 +85,9 @@ def setup_run_environment(self, env): ) env.set("IP_LIB" + suffix, lib[0]) env.set("IP_INC" + suffix, join_path(self.prefix, "include_" + suffix)) + + @run_after("build") + @on_package_attributes(run_tests=True) + def check_build(self) + with working_dir(self.build_directory): + make("test")