Commit Graph
208 Commits
Author SHA1 Message Date
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
kaf24@firebug.cl.cam.ac.uk 553243f2ea [XM-TEST] Increase timeout on hotplug-cpus-down test to 30 seconds.
This is needed when dom0 has 32 CPUs.
Signed-off-by: Susan Krysan <krysans@unisys.com>
2006-07-14 12:00:02 +01:00
kaf24@firebug.cl.cam.ac.uk 8c5ea9ceb8 Xm-test HVM network testing is broken. The new qemu code doesn't support
pcnet32, which is the current default driver loaded onto the disk.img.
This patch changes teh default to the rtl8139, which is xend's default.
This patch also adds a new "--with-network-drv" configuration option so
people can configure different drivers than the default.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-07-14 11:54:10 +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 3d8026009b Add XENVER_pagesize hypercall.
Make xen pagesize available through xm info and sysfs.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
2006-06-27 10:44:33 +01:00
kaf24@firebug.cl.cam.ac.uk 62b3de3d4a [XM-TEST] Remove second console attach in 03_memset_random_pos
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2006-06-22 21:30:51 +01:00
ack@localhost.localdomain 906ea7220e Run credit scheduler tests by default
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-06-20 12:11:28 +01:00
kaf24@firebug.cl.cam.ac.uk 18ff1c9e42 [XM-TEST] Improve detection of a guest having booted to prompt.
Lots of xm-test tests are failing with console timeouts on some machines
at the moment.  I reproduced the problem and found it was due to some
probing activity in the boot process of the -xen kernel.  The behaviour
of the current xm-test code is to assume that the boot process has
finished after performing three one-second waits for input---when the
probing activity introduces more than three one-second delays the test
suite breaks.

This patch changes the test suite to wait for the command prompt
before attempting to submit a command.  The timeout is increased from 3
seconds to 3 minutes but the wait exits early when the prompt is found
so the test suite doesn't take any longer to run.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
2006-06-19 17:43:04 +01:00
kaf24@firebug.cl.cam.ac.uk 9d43a190b1 [XM-TEST] Fix 02_block_device_write_verify.py test to parse md5sum output correctly.
The 02_block_device_write_verify.py test that I wrote is failing because
the regular expression to extract the md5sum is only looking at the
first line of output and the sum is in a subsequent line (after the
output from dd).

This patch fixes the test by adding the multiline flag to the search
parameters so that the search looks in all lines of the output for the
md5sum.  I added the multiline flag in all searches to make the tests
more robust against changes in the output format of the commands used.

I'm not exactly sure how this slipped through my testing.  I suspect
that I forgot to install the new python file after updating the test to
use dd and then tested the old version a second time by accident.
Either that or it really did work when I tested it and the output format
has changed for some reason.

I tested this patch against xen-unstable 10326 and the 02 test fails
without the patch and succeeds with it.

Thanks to James Dykman for some help with this.

Signed-off-by Harry Butterworth <butterwo@uk.ibm.com>
2006-06-13 15:41:27 +01:00
ack@localhost.localdomain b5e40184be Add sched-credit xm tests but don't run them by default yet...
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
2006-06-08 11:35:27 +01:00
emellor@leeni.uk.xensource.com e41ca46ee7 Fix typo.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-07 11:03:15 +01:00
emellor@leeni.uk.xensource.com 752382e00a Added.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-07 10:58:09 +01:00
emellor@leeni.uk.xensource.com 5e7cd95038 Move forward to new version of buildroot -- the old one has gone from the
website.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-07 10:57:25 +01:00
pl@us.ibm.com 64297b4ee4 Fix a problem where the vcpu count for dom0 doesn't get reset back to the
original value when 01_enforce_dom0_cpus_basic_pos fails.
2006-06-01 12:11:59 +01:00
emellor@leeni.uk.xensource.com 7218286f52 Block device write-verify test.
This test imports a ram disk device as a physical device into a domU.
The domU initialises the ram disk with data from /dev/urandom and
calculates the md5 checksum of the data (using tee as it is written so as to
avoid reading it back from the device which might potentially mask
problems).
The domU is stopped and the md5 checksum of the data on the device is
calculated by dom0.  The test succeeds if the checksums match, indicating
that all the data written by domU was sucessfully committed to the
device.

This patch also enables tee in BusyBox on the ramdisk and increments the
xm-test version number to 0.8.0.

The patch also installs the block-integrity tests in the default test
set so they get executed.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-06-01 11:47:00 +01:00
harry@localhost.localdomain 71fd91f9ba Add a read-verify block device test to xm-test. 2006-05-19 16:30:21 +01:00
stekloff@elm3b216.beaverton.ibm.com 9c8277a2d8 This patch resizes the file system on the xm-test HVM disk.img to use
the entire space available.

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2006-05-19 16:29:34 +01:00