예제 #1
0
 def setup(self):
     '''编译源码,设置程序
     '''
     if not self.check_bin(self.processBin):
         self.tar_src_dir = self.extract_bar()
         os.chdir(self.tar_src_dir)
         self.compile(configure_status=True, make_status=True)
         utils.copy(os.path.join(self.tar_src_dir, 'bonnie++'), self.processBin)
         os.chdir(self.lpt_root)
예제 #2
0
파일: stream.py 프로젝트: zhyh329/lpts
 def setup(self):
     '''编译源码,设置程序
     '''
     if not self.check_bin(self.processBin, self.processBin2):
         self.tar_src_dir = self.extract_bar()
         os.chdir(self.tar_src_dir)
         self.compile(make_status=True)
         utils.copy(os.path.join(self.tar_src_dir, 'stream'), self.processBin)
         utils.copy(os.path.join(self.tar_src_dir, 'stream_mu'), self.processBin2)
         os.chdir(self.lpt_root)
예제 #3
0
파일: dbench_fio.py 프로젝트: Scemoon/lpts
    def setup(self):
        '''编译源码,设置程序
        '''
        if not self.check_bin(self.processBin):
            self.tar_src_dir = self.extract_bar()
            os.chdir(self.tar_src_dir)
            os.system("./autogen.sh")
            self.compile(configure_status=True, make_status=True)
            utils.copy(os.path.join(self.tar_src_dir, 'dbench'), self.processBin)
            if not os.path.exists(os.path.join(self.tmp_dir, "loadfiles")):
		          utils.copy(os.path.join(self.tar_src_dir, 'loadfiles'), os.path.join(self.tmp_dir, "loadfiles"))
            os.chdir(self.lpt_root) 
예제 #4
0
 def setup(self):
     '''编译源码,设置程序
     '''
     if not self.check_bin(self.processBin):
         self.tar_src_dir = self.extract_bar()
         os.chdir(self.tar_src_dir)
         os.system("./autogen.sh")
         self.compile(configure_status=True, make_status=True)
         utils.copy(os.path.join(self.tar_src_dir, 'dbench'),
                    self.processBin)
         if not os.path.exists(os.path.join(self.tmp_dir, "loadfiles")):
             utils.copy(os.path.join(self.tar_src_dir, 'loadfiles'),
                        os.path.join(self.tmp_dir, "loadfiles"))
         os.chdir(self.lpt_root)
예제 #5
0
파일: iozone.py 프로젝트: Scemoon/lpts
 def setup(self):
     '''编译源码,设置程序
     '''
     if not self.check_bin(self.processBin):
         self.tar_src_dir = self.extract_bar()
         os.chdir(os.path.join(self.tar_src_dir, "src/current"))
         arch = sysinfo.get_current_kernel_arch()
         lptlog.debug("硬件架构: %s " % arch)
         if (arch == 'ppc'):
             para = 'linux-powerpc'
         elif (arch == 'ppc64'):
             para = 'linux-powerpc64'
         elif (arch == 'x86_64'):
             para ='linux-AMD64'
         elif (arch == "mips64el"):
             para = "linux-AMD64"
         else:
             para = "linux"
             
         self.compile(make_status=True,  make_para=para)
         utils.copy(os.path.join(self.tar_src_dir, 'src/current/iozone'), self.processBin)
예제 #6
0
파일: iozone.py 프로젝트: Scemoon/lpts
    def setup(self):
        '''编译源码,设置程序
        '''
        if not self.check_bin(self.processBin):
            self.tar_src_dir = self.extract_bar()
            os.chdir(os.path.join(self.tar_src_dir, "src/current"))
            arch = sysinfo.get_current_kernel_arch()
            lptlog.debug("硬件架构: %s " % arch)
            if (arch == 'ppc'):
                para = 'linux-powerpc'
            elif (arch == 'ppc64'):
                para = 'linux-powerpc64'
            elif (arch == 'x86_64'):
                para = 'linux-AMD64'
            elif (arch == "mips64el"):
                para = "linux-AMD64"
            else:
                para = "linux"

            self.compile(make_status=True, make_para=para)
            utils.copy(os.path.join(self.tar_src_dir, 'src/current/iozone'),
                       self.processBin)