charm: add possibility to run tests (#8665)

This commit is contained in:
Matthias Diener 2018-07-09 16:16:27 -05:00 committed by Adam J. Stewart
parent 4ed7931200
commit bc5168e4b1

View file

@ -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)