summaryrefslogtreecommitdiff
path: root/client/tests/pi_tests/pi_tests.py
blob: 7f3fcf2716f822ce01f8902af930d977097cb271 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
from autotest_lib.client.bin import test, autotest_utils
from autotest_lib.client.common_lib import utils


class pi_tests(test.test):
    version = 1

    # http://www.stardust.webpages.pl/files/patches/autotest/pi_tests.tar.bz2

    def setup(self, tarball = 'pi_tests.tar.bz2'):
        autotest_utils.check_glibc_ver('2.5')
        tarball = autotest_utils.unmap_url(self.bindir, tarball,
                                           self.tmpdir)
        autotest_utils.extract_tarball_to_dir(tarball, self.srcdir)
        os.chdir(self.srcdir)

        utils.system('make')

    def execute(self, args = '1 300'):
        os.chdir(self.srcdir)
        utils.system('./start.sh ' + args)