Commit Graph
239 Commits
Author SHA1 Message Date
Tom Wilkie 97fef381d6 Remove unused import; library moved
signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-28 15:31:17 +01:00
Tom Wilkie 54a101a7dd Make 06_destroy_dom0_neg pass with xm via XenAPI.
Make check case insensitive.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-26 16:18:16 +01:00
Ewan Mellor a48a059e84 Fix typos.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-03-23 11:12:25 +00:00
Ewan Mellor 69869aa632 Replace tabs with spaces.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
2007-03-23 11:11:41 +00:00
Ewan Mellor 282cd380d9 Change the eyecatcher to be case-insensitive, so that "Internal error" is
detected.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 17:26:05 +00:00
Ewan Mellor 06979e1dc4 Have xm-test wait for the network device to detach. This is an asynchronous
process, so xm-test needs to poll.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-20 16:52:33 +00:00
Ewan Mellor a72d446f86 Fix typo in xm-test.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
2007-03-14 21:37:00 +00:00
kfraser@localhost.localdomain f4575fb04a [XM-TEST] vTPM test changes
Remove an uninitialized variable.
For some reason the 'ps aux' command does not see the process anymore
(since some time on the weekend). Need to add 'COLUMNS=n'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-13 09:52:51 +00:00
Ewan Mellor 81c452f998 Make the VTPM.destroy method return 'void' upon success and adapt the
test case to reflect that.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-03-09 02:32:52 +00:00
kfraser@localhost.localdomain 8705acb340 xm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-02-26 09:13:50 +00:00
Ewan Mellor edb08a7488 Use the new xen-python-path to set PYTHONPATH, rather than trying to do it in
XmTestLib.__init__ (and getting it wrong).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 14:41:58 +00:00
Ewan Mellor 6880c9f6b7 Copy the definition of DOM0_UUID into XenDomain so that we don't need to import
large swathes of the server to run the Xen-API tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-02-01 11:42:50 +00:00
kaf24@localhost.localdomain a36b1fbb02 Align vTPM support in the Xen-API, documentation and lib-xen
(after the recent changes).

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-30 14:51:05 +00:00
Alastair Tse 54210714d5 [XM-TEST] Allow building of ramdisk on x86_64
Signed-off-by: Alastair Tse <atse@xensource.com>
2007-01-23 11:39:32 +00:00
Alastair Tse c1e978c7cf [XEND] Fix get_dev_property_by_uuid
This patch replaces calls to get_dev_property() by calls to
get_dev_property_by_uuid() in XenAPI.py and fixes the implementation
of get_dev_property_by_uuid.

I am adding a test case to the xapi grouptests to verify the fixes.
There's a FIXME note in the test case which should be looked at.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-22 17:23:53 +00:00
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 aeb7c09a66 I added a parameter '-md' to 'runtest.sh' for running the xm test suite
in a mode where all created domains a created as xend-managed domains.

This patch also fixes a problem related to calling 'xm domid' on a
currently suspended domain if that domain is a managed domain. In that
case a 'None' is returned by Xend, which I default to '-1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-11 18:56:59 +00:00
Ewan Mellor e3e7d81e41 Update sched-credit test to match new format from xm sched-credit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2007-01-09 17:38:48 +00:00
Ewan Mellor 00e5248813 This simple patch allows domains created in the xm-test suite to be
created as managed domains using either a parameter to the
XenTestDomain() constructor or by setting the environment variable
XM_MANAGED_DOMAINS and running the tests with it.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2007-01-09 17:25:28 +00:00
Ewan Mellor e4658203b4 Add needed modules to the ramdisk if the modules exist on the current system.
(i.e. the current system contains a modularized kernel)

Signed-off-by: Lynn Bendixsen <lbendixs@novell.com>
2007-01-09 17:23:22 +00:00
Steven Hand 2ea27d8c99 [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to check
block device has gone away from point of view of domain sxp.

Signed-off-by: Steven Hand <steven@xensource.com>
2007-01-04 15:08:40 +00:00
Ewan Mellor 92e6c93c21 Only try to label resources if ACM is enabled.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-16 12:54:43 +00:00
awilliam@xenbuild2.aw 0741834153 merge with xen-unstable.hg 2006-12-08 09:09:18 -07:00
Ewan Mellor e0abcedc49 Download and symlink the i386 version of the ramdisk when running on x86_64.
This means that people don't need to explicitly set BR_ARCH.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-08 10:32:48 +00:00
awilliam@xenbuild.aw 9d64d3ff83 merge with xen-unstable.hg 2006-12-05 10:01:15 -07:00
Ewan Mellor 89ebc69e6a This adds a recently added parameter to the vm.start call.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-12-04 19:13:55 +00:00
awilliam@xenbuild.aw 793cb77839 merge with xen-unstable.hg 2006-12-04 08:24:41 -07:00
Ewan Mellor 43bbe5bc96 Revert the change to destroy all VMs when skipping or failing tests -- this
needs more thought, because people shouldn't need to set up their Xen-API server
to run the non-Xen-API bits of the test, and at the moment, you get
authentication failures on every SKIP.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-03 13:30:23 +00:00
Alastair Tse 63f6456e92 Merge 2006-12-01 18:33:11 +00:00
Ewan Mellor 468c5c0084 Use the new xen-api.sock for the calls to the Xen-API server.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-01 17:40:07 +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
awilliam@xenbuild.aw 8eb135484e merge with xen-unstable.hg 2006-11-10 11:11:04 -07:00
Ewan Mellor f5982aac5f When running tests unattended it's useful to know how long they have
taken, as (significantly) increasing the runtime (without introducing
failures) can be considered a regression.  This patch adds a block like:

====
Xm-test timing summary:
  Run Started : Fri, 10 Nov 2006 14:53:18 +1100
  Run Stopped : Fri, 10 Nov 2006 14:53:20 +1100
====

to the generated report.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-10 14:26:14 +00:00
Alastair Tse d2958856b3 [XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less than
expected.

Now that xm list outputs the real system memory allocation, this can
be 1-2MB less than expected.

Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-09 16:20:26 +00:00
Ewan Mellor edb4739e12 fix xm-test configure.ac to not define RD_PATH which prevented env override
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2006-11-02 23:05:24 +00:00
Ewan Mellor 5a45364f3f Update README.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 14:27:54 +00:00
Ewan Mellor 84bd4739d3 Fix comment.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 14:27:29 +00:00
Ewan Mellor 2ea2e0008f Add helper script for releasing xm-test binary ISOs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 14:27:19 +00:00
Ewan Mellor c0b2fe79a2 Bump xm-test version to 1.1 to accommodate new devices.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:42:02 +00:00
Ewan Mellor e1502fb422 Allow the i386 ramdisk to be used on x86_64. Part of a patch from Yu Ping Y.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-11-01 09:21:27 +00:00
Ewan Mellor 9855faf004 Correct copy-n-paste error.
Also Whitespace cleanups.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:43:54 +00:00
Ewan Mellor f19d56d6dd Add xvd devices to the initrd.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:41:24 +00:00
Ewan Mellor 3cb85f33f0 Update all block tests to use the Xen Virtual Block Device (xvd) rather than IDEor SCSI.
This patch also modifies
09_block_attach_and_dettach_device_check_data_pos.py to force / to be
read-write otherwise the mkdir fails.

Also Whistspace cleanups.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:39:45 +00:00
Ewan Mellor 240c6346f7 The XenDomain class does not respect the arch defaults where
as XmTestDomain does.  This part of the patch forces both HVM and
non-HVM tests to use XmTestDomain.  With appropriate changes to the
extraConfig arg.

On PPC we need to use the arch defaults to get the console setup
correctly.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-11-01 08:38:22 +00:00
Ewan Mellor c51e990ede This fixes another missing part for x86-64 support in the xm testsuite.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-11-01 08:34:55 +00:00
kaf24@localhost.localdomain 6bc01e4efd [XEN] Replace hvm_setup_platform() with hvm_domain_initialise()
and extra code in hvm_vcpu_initialise(). Remove 'apic' config
option -- HVM CPUs will always have an APIC (which should be
set up in virtual wire mode for backward compatibility, just as
in a real system).
Signed-off-by: Keir Fraser <keir@xensource.com>
2006-11-05 20:17:40 +00:00
Alastair Tse 1974ebc7dd [XEND] Handle permission denied when calling xc.domain_getinfo
Signed-off-by: Alastair Tse <atse@xensource.com>
2006-11-03 10:41:20 +00:00
Ewan Mellor 6c87dab0c4 Fix ramdisk Makefile so that downloading from xm-test.xensource.com actually
works.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-26 10:20:22 +01:00
Ewan Mellor 86ba178e4f Add x86_64 to the supported architectures since otherwise the tests
don't run.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-24 16:46:02 +01:00
Ewan Mellor 9a4180837b Fix Memory assumptions in the create tests.
Use the architecture specified idea of minimum memory.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-24 14:52:20 +01:00