Skip to content
Snippets Groups Projects
Commit bc5168e4 authored by Matthias Diener's avatar Matthias Diener Committed by Adam J. Stewart
Browse files

charm: add possibility to run tests (#8665)

parent 4ed79312
No related branches found
No related tags found
No related merge requests found
...@@ -235,3 +235,9 @@ def install(self, spec, prefix): ...@@ -235,3 +235,9 @@ def install(self, spec, prefix):
except (IOError, OSError): except (IOError, OSError):
pass pass
shutil.rmtree(join_path(prefix, "tmp")) 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment