You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
622 B
24 lines
622 B
import os
|
|
from autotest_lib.client.bin import test, utils
|
|
|
|
|
|
class pi_tests(test.test):
|
|
version = 1
|
|
|
|
def initialize(self):
|
|
self.job.require_gcc()
|
|
|
|
|
|
# http://www.stardust.webpages.pl/files/patches/autotest/pi_tests.tar.bz2
|
|
def setup(self, tarball = 'pi_tests.tar.bz2'):
|
|
utils.check_glibc_ver('2.5')
|
|
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
|
|
utils.extract_tarball_to_dir(tarball, self.srcdir)
|
|
os.chdir(self.srcdir)
|
|
utils.make()
|
|
|
|
|
|
def execute(self, args = '1 300'):
|
|
os.chdir(self.srcdir)
|
|
utils.system('./start.sh ' + args)
|