• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import os
2from autotest_lib.client.bin import test, utils
3
4
5class fs_mark(test.test):
6    version = 1
7
8    def initialize(self):
9        self.job.require_gcc()
10
11
12    # http://developer.osdl.org/dev/doubt/fs_mark/archive/fs_mark-3.2.tgz
13    def setup(self, tarball = 'fs_mark-3.2.tgz'):
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
18        utils.make()
19
20
21    def run_once(self, dir, args = None):
22        if not args:
23            # Just provide a sample run parameters
24            args = '-s 10240 -n 1000'
25        os.chdir(self.srcdir)
26        utils.system('./fs_mark -d %s %s' %(dir, args))
27