charm: add possibility to run tests (#8665)
This commit is contained in:
parent
4ed7931200
commit
bc5168e4b1
1 changed files with 6 additions and 0 deletions
|
@ -235,3 +235,9 @@ def install(self, spec, prefix):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue