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)
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)