本文整理匯總了Python中easybuild.framework.application.Application.test方法的典型用法代碼示例。如果您正苦於以下問題:Python Application.test方法的具體用法?Python Application.test怎麽用?Python Application.test使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類easybuild.framework.application.Application
的用法示例。
在下文中一共展示了Application.test方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test
# 需要導入模塊: from easybuild.framework.application import Application [as 別名]
# 或者: from easybuild.framework.application.Application import test [as 別名]
def test(self):
"""
Run BLAS and LAPACK tests that come with netlib's LAPACK.
"""
if self.getcfg('test_only'):
if not get_software_root('lapack'):
self.log.error("You need to make sure that the LAPACK module is loaded to perform testing.")
blaslib = get_blas_lib(self.log)
self.log.info('Running BLAS and LAPACK tests included.')
# run BLAS and LAPACK tests
for lib in ["blas", "lapack"]:
self.log.info("Running %s tests..." % lib.upper())
cmd = "make BLASLIB='%s' %s_testing" % (blaslib, lib)
run_cmd(cmd, log_all=True, simple=True)
else:
Application.test(self)
示例2: test
# 需要導入模塊: from easybuild.framework.application import Application [as 別名]
# 或者: from easybuild.framework.application.Application import test [as 別名]
def test(self):
# always run tests
if self.getcfg('runtest'):
self.log.warning("ATLAS testing is done using 'make check' and 'make ptcheck',"\
" so no need to set 'runtest' in the .eb spec file.")
# sanity tests
self.setcfg('runtest', 'check')
Application.test(self)
# checks of threaded code
self.setcfg('runtest', 'ptcheck')
Application.test(self)
# performance summary
self.setcfg('runtest', 'time')
Application.test(self)