當前位置: 首頁>>代碼示例>>Python>>正文


Python Application.test方法代碼示例

本文整理匯總了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)
開發者ID:nudded,項目名稱:easybuild,代碼行數:22,代碼來源:lapack.py

示例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)
開發者ID:nudded,項目名稱:easybuild,代碼行數:20,代碼來源:atlas.py


注:本文中的easybuild.framework.application.Application.test方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。