class Builder:
"""Class to handle all construction steps, like cmake, configure, make, ...
"""
- def __init__(self, config, logger, product_info, options = src.options.OptResult(), debug_mode=False, check_src=True):
+ def __init__(self,
+ config,
+ logger,
+ product_info,
+ options = src.options.OptResult(),
+ debug_mode=False,
+ check_src=True):
self.config = config
self.logger = logger
self.options = options
if src.architecture.is_windows():
command = 'msbuild RUN_TESTS.vcxproj'
else :
- if self.use_autotools :
+ if self.product_info.build_source=="autotools" :
command = 'make check'
- else :
+ else:
command = 'make test'
self.log_command(command)