Commit Graph
224 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 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
Ewan Mellor 64dd1b77ae This puts two small fixes in the xm-test suite:
- it turns off verbose mode of the ACM module
- copies the test policy to the policies directory only if the directory
has been created

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-24 14:47:41 +01:00
Ewan Mellor d2e25ca823 Added multiarch support to xm-test. Bumped version number to xm-test 1.0.
New README for public ramdisks.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-24 14:47:17 +01:00
Ewan Mellor 8467310110 Update buildroot configs to match snapshot downloaded for public ramdisks.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-10-24 14:46:23 +01:00
Ewan Mellor c4549d574a Default to appending to "extra" in XenConfig.
PowerPC needs console information from the command line.  Resetting the whole
command line causes false failures.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:17:10 +01:00
Ewan Mellor 1cbb1ec85e Add ability to inspect messages from domain for arbitrary strings.
Used on PowerPC to FAIL(), if the guest domain hits a BUG() and enters XMON.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:16:20 +01:00
Ewan Mellor 7c0553c867 Add configuration data for powerpc.
Allows for building of initrd, and running of tests.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:15:39 +01:00
Ewan Mellor 3c1dd690bc Refactor code to encapsulate architecture decisions in one place.
Also includes some whitespace fixes.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:14:13 +01:00
Ewan Mellor 6723227e25 Rename buildroot -> buildroot-i386.
Also update Makefile.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
2006-10-23 10:07:15 +01:00
kfraser@localhost.localdomain bb7670b698 [ACM] An environment where ACM and its tools have not been installed before
will throw an error during 'make' of the test suite. This fixes the problem.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-19 15:15:36 +01:00
kfraser@localhost.localdomain 8917832a55 [TPM] Allow all tests of the xm test suite to be run when ACM
security is turned on in hypervisor. This is done by implicitly
labeling VMs and resources if they have not been labeled through
explicit calls.
To allow the xm tests suite to label resources automatically, run

./configure --enable-full-labeling

once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 16:08:58 +01:00
kfraser@localhost.localdomain b77b89e80e [TPM] Add tests cases for the ACM security hooks and tools to
the xm test suite. The tests can be run with ACM turned off (not
compiled into Xen; see user doc for this), but most of them will be
skipped then. They can be run with a command like

make -C tests/security-acm check-TESTS

from the xm-test directory. They are also part of the default tests in
the tests suite and part of a new group test 'security'.
Since some of the tests require resources to be labeled, one must
explicitly enable the resources to be allowed to be labeled by the
test
suite by running

./configure --enable-full-labeling

once. To turn it off, the '--enable-full-labeling' parameter should be
omitted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
2006-10-18 16:07:55 +01: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@localhost.localdomain ec0ebb15e5 [XM-TEST] Fix network tests for -route and -nat
vif-nat and vif-route need to know domU ethX IP addresses in order to set
up the appropriate routes.The new network test infrastructure is not
providing the IP address on the vif line in /tmp/xm-test.conf; adding
it turns out to be a one-liner.

Tested with xm-test running with -bridge, -route, and -nat network
scripts.

Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-08-12 15:58:52 +01:00