blob: 1f1c08d2b8a37c12d0b0b2bbd14d3f527bf572e5 [file] [log] [blame]
# (C) Copyright IBM Corp. 2006
# Author: Paul Larson <[email protected]>
# Description:
# Autotest script for running Xen xm-test
# This should be run from a Xen domain0
import os
from autotest_lib.client.bin import test, autotest_utils
from autotest_lib.client.common_lib import utils
class xmtest(test.test):
version = 1
# This test expects just the xm-test directory, as a tarball
# from the Xen source tree
# hg clone http://xenbits.xensource.com/xen-unstable.hg
# or wget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-unstable-src.tgz
# cd tools
# tar -czf xm-test.tgz xm-test
def setup(self, tarball = 'xm-test.tar.bz2'):
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
autotest_utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(self.srcdir)
utils.system('./autogen')
utils.system('./configure')
utils.system('make existing')
def execute(self, args = ''):
os.chdir(self.srcdir)
utils.system('./runtest.sh ' + args)
utils.system('mv xmtest.* ' + self.resultsdir)