diff options
Diffstat (limited to 'client/tests/xmtest/xmtest.py')
-rw-r--r-- | client/tests/xmtest/xmtest.py | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/client/tests/xmtest/xmtest.py b/client/tests/xmtest/xmtest.py index 32c649a7..e9216332 100644 --- a/client/tests/xmtest/xmtest.py +++ b/client/tests/xmtest/xmtest.py @@ -1,33 +1,33 @@ # (C) Copyright IBM Corp. 2006 # Author: Paul Larson <pl@us.ibm.com> # Description: -# Autotest script for running Xen xm-test -# This should be run from a Xen domain0 +# 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 + 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) + # 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') + 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) + def execute(self, args = ''): + os.chdir(self.srcdir) + utils.system('./runtest.sh ' + args) + utils.system('mv xmtest.* ' + self.resultsdir) |