netpbm: run custom test command (#31072)
* netpbm: run custom test command * fix styles * change method name
This commit is contained in:
parent
3c0a98c5ab
commit
874b713edf
@ -170,6 +170,15 @@ def edit(self, spec, prefix):
|
|||||||
|
|
||||||
def build(self, spec, prefix):
|
def build(self, spec, prefix):
|
||||||
make()
|
make()
|
||||||
|
if self.run_tests:
|
||||||
|
# Don't run the default command 'make check' for test
|
||||||
|
self.build_time_test_callbacks = []
|
||||||
|
|
||||||
|
@run_after('build')
|
||||||
|
@on_package_attributes(run_tests=True)
|
||||||
|
def make_check_tree(self):
|
||||||
|
# Run custom test command 'make check-tree'
|
||||||
|
make('check-tree')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
bdir = join_path(self.build_directory, 'build')
|
bdir = join_path(self.build_directory, 'build')
|
||||||
|
Loading…
Reference in New Issue
Block a user