Skip to content

Commit

Permalink
add explicit build_check to recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Sep 12, 2023
1 parent 5bfed1f commit 4f6037b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 4f6037b

Please sign in to comment.