Commit Graph
15 Commits
Author SHA1 Message Date
Ewan Mellor baacea8058 This patch does the following:
- renames the XenManagedDomain.py file to XenAPIDomain.py, since this
name better reflects its functionality/purpose
- adds domain tracking to the XenAPIDomain class so that xend-managed
domains can be deleted in an 'atexit' handler upon test case termination
- adds one basic xapi-related test which is part of the grouptests
'xapi'
- refactors the vtpm-related test using xen-api and adds it to the
grouptest 'xapi'
- adds documentation to the README for how to configure xm and xend to
use XML-RPC or Xen-API for communication

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 19:00:35 +00:00
Ewan Mellor cebaab7c6b This patch provides XmTestManagedDomain and XenManagedDomain classes
similar to the XmTestDomain and XenDomain classes. I have wrapped the
xen-api for VM configuration creation, starting and stopping of VMs and
destruction of the VM configuration in the XenManagedDomain class's
methods. No device-related functions are provided through the class.

The managed domains' UUIDs are tracked and all created VMs are destroyed
upon failure or skipping of the test or by calling
xapi.vm_destroy_all().

I am adding a new grouptest 'xapi' for running xen-api tests.

Only caveat: I am using an empty username and password
(XmTestList/xapi.py) with Xend's authentication deactivated to run these
tests.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-01 17:37:09 +00:00
kfraser@localhost.localdomain 380485a5e8 [XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to start
the vtpm_manager. A 'SKIP' is shown if the vtpm_manager process has not been started.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-09-27 14:30:36 +01:00
Ewan Mellor 3714ab433f Revert change to vtpm_utils related to skipping the test when the tpm is not
found -- we need to skip the test on non-TPM platforms, of course.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-09-15 23:54:04 +01:00
Ewan Mellor 2df254060e When redirecting the output of the echo command using '>' on bash, the
output seems to be broken up into multiple write()s (depending on the
version of busybox?). Unfortunately /dev/tpm0 needs to have the complete
command written to in one chunk. The work-around 'echo <string> > file ;
cat file > /dev/tpm0' seems to get around this problem.
The patch also removes a redundant test and error output.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-09-14 07:57:41 +01:00
kaf24@firebug.cl.cam.ac.uk d36b2acb2b [TPM] Add 3 more test cases to the xm testsuite that extend the
state of a PCR register and test that the value remains the same during
a suspend/resume cycle and during live and non-live local migration. 
The patch adapts existing tests to the changes in the driver (moving of
the sysfs entry). Some problems with existing tests are fixed.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-06-28 16:22:38 +01:00
kaf24@firebug.cl.cam.ac.uk dd2e5172dc I am adding one more test case for vTPM migration. The new one does
local network migration without the 'live' parameter 3 times. The test
'04' that does live migration now tests local live migration 3 times.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-05-11 13:43:09 +01:00
emellor@leeni.uk.xensource.com 57a3f4ca82 Second step toward a new network infrastructure, move XmConsole to be
in XenDomain. The devices we will add, like network, will need to run
console commands when a domain is started. So I have made console be
a part of domain object, which it's tied to anyway.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-05-04 14:22:17 +01:00
emellor@leeni.uk.xensource.com 3c4f089bd8 This patch adds a test case for local virtual machine migration with a
virtual TPM attached.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-04-21 11:56:40 +01:00
emellor@leeni.uk.xensource.com 1d060e23af This adds proper cleanup in case of a failure.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-04-06 17:41:07 +01:00
emellor@leeni.uk.xensource.com 6ebfc91b5d The patch fixes a problem when testing for device /dev/tpm0. The API
call os.path.exists() must be called instead of os.path.isfile().

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-21 18:57:23 +01:00
emellor@leeni.uk.xensource.com 92b9cad184 Break out common parts of vtpm tests into new vtpm_utils library.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 11:49:29 +01:00
emellor@leeni.uk.xensource.com c03842a4e9 Put 03_vtpm-susp_res.py in its rightful place.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-03-21 09:53:00 +01:00
emellor@leeni.uk.xensource.com 3a9669c79f Test suspend and resume cycles of the TPM front- and backend.
Now that sysfs is mounted in the RAM disk of the test environment, the
test code does not need to do this anymore. This patch also simplifies
previous tests and the APIs used there. If prerequisites are not met
(vtpm manager not running) the patch will 'skip'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-03-21 01:28:29 +01:00
emellor@leeni.uk.xensource.com 7aa86f0d35 Move files that have appeared in the wrong place due to incorrect patch -p setting.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-02-27 16:28:57 +01:00