summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Diener <matthias.diener@gmail.com>2018-07-09 16:16:27 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2018-07-09 16:16:27 -0500
commitbc5168e4b121df1802741b275984cea1aa5c3c41 (patch)
treee99548a98a0549ac747be94efabe44cc50059779
parent4ed7931200c5726532f05bf275a6aba27aa2063d (diff)
downloadspack-bc5168e4b121df1802741b275984cea1aa5c3c41.tar.gz
spack-bc5168e4b121df1802741b275984cea1aa5c3c41.tar.bz2
spack-bc5168e4b121df1802741b275984cea1aa5c3c41.tar.xz
spack-bc5168e4b121df1802741b275984cea1aa5c3c41.zip
charm: add possibility to run tests (#8665)
-rw-r--r--var/spack/repos/builtin/packages/charm/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/charm/package.py b/var/spack/repos/builtin/packages/charm/package.py
index 4ca93142b4..d123d2881a 100644
--- a/var/spack/repos/builtin/packages/charm/package.py
+++ b/var/spack/repos/builtin/packages/charm/package.py
@@ -235,3 +235,9 @@ class Charm(Package):
except (IOError, OSError):
pass
shutil.rmtree(join_path(prefix, "tmp"))
+
+ @run_after('install')
+ @on_package_attributes(run_tests=True)
+ def check_build(self):
+ make('-C', join_path(self.stage.path, 'charm/tests'),
+ 'test', parallel=False)