Home | History | Annotate | Download | only in interbench
      1 import os
      2 from autotest_lib.client.bin import test, utils
      3 
      4 
      5 class interbench(test.test):
      6     version = 1
      7 
      8     def initialize(self):
      9         self.job.require_gcc()
     10 
     11 
     12     # http://www.kernel.org/pub/linux/kernel/people/ck/apps/interbench/interbench-0.30.tar.bz2
     13     def setup(self, tarball = 'interbench-0.30.tar.bz2'):
     14         tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
     15         utils.extract_tarball_to_dir(tarball, self.srcdir)
     16         os.chdir(self.srcdir)
     17         utils.system('patch -p1 < ../makefile.patch')
     18         utils.make()
     19 
     20 
     21     def run_once(self, args = ''):
     22         os.chdir(self.tmpdir)
     23         args += " -c"
     24         utils.system("%s/interbench -m 'run #%s' %s" % (self.srcdir,
     25                                                         self.iteration, args))
     26