Commit Graph
77 Commits
Author SHA1 Message Date
stekloff@elm3b216.beaverton.ibm.com b945dd3342 Adding SKIP() to tests that aren't supported for VMX domains.
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
2005-12-14 11:59:19 +00:00
danms@us.ibm.com dc0c9e694b Grab the test ID from the report submission response and provide a link
to the user's test report
Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-12-13 18:00:50 +00:00
emellor@leeni.uk.xensource.com bf68bfcf48 Change the way domain configuration is handled in xm-test.
This will simplify the way we differentiate between HV and PV domains,
as well as make it easier to run normal tests in either HV or PV mode.

This patch has been modified by Ewan Mellor, to match his recent changes to
remove the nics= configuration option.

Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
2005-12-13 16:26:24 +00:00
emellor@leeni.uk.xensource.com bc8ed50e6c Deprecate the nics option from the xm create configuration. Instead, we use the
entries in vif to guide the configuration.  This is much less confusing.

Closes bug #440.

Change the example configuration files to match.  Also change them to use the
XenSource OUI in the MAC addresses.  Also change xm-test to match.

Remove the obsolete ipaddr configuration entry, and the backend_mac vif config
option.

Remove the preprocess_vifs function, folding it into the configure_vifs
function, and creating a simple comma_sep_kv_to_dict helper.

Remove the configure_vfr method, as it is unused.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-13 00:15:53 +00:00
stekloff@elm3b216.beaverton.ibm.com 86867006af Add initial VMX support to xm-test:
1) Added script create_disk_image to make full virt image
2) Changed XenDomain.py to build separate XmTestDomain object
   for vmx guests (this structure will need to be cleaned up)
3) Changed ramdisk Makefile.am to create disk.img if vmx configured

Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
2005-12-09 11:04:55 +00:00
emellor@leeni.uk.xensource.com 293e54c10b Two domUs, ping from one to the other
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2005-12-09 10:40:41 +00:00
emellor@leeni.uk.xensource.com 1df940267e Single domU, ping to dom0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2005-12-09 10:40:28 +00:00
emellor@leeni.uk.xensource.com ef4e38f80a Single domU, ping loopback and the local eth0.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2005-12-09 10:40:00 +00:00
emellor@leeni.uk.xensource.com bb1275eca8 Some network test utilities for the library:
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2005-12-09 10:39:31 +00:00
emellor@leeni.uk.xensource.com 92f0952573 Makefile plumbing for new network tests.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
2005-12-09 10:39:16 +00:00
danms@us.ibm.com d8fdcac4df Make the xm-test ramdisk makefile correct the permissions on the rcS script
Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-12-07 15:50:59 +00:00
emellor@leeni.uk.xensource.com a64d176a1c xm-test report fails because IA64's /cpu/procinfo format is different from
x86's.  Here's a small patch to fix the problem.

Signed-off-by: Matsumoto <n_matumoto@soft.fujitsu.com>
2005-12-07 10:27:03 +00:00
dan@guaranine.beaverton.ibm.com 383dbc16f4 Output an explicit newline before the "REASON:" string so the report script
can find it, even when a domain outputs a non-newline-terminated line.
Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-12-05 15:36:11 +00:00
kaf24@firebug.cl.cam.ac.uk 2e611ccc22 Merge with xen-ia64-unstable.hg 2005-12-03 10:44:38 +01:00
djm@kirby.fc.hp.com 56aeec5ab6 Merge 2005-12-02 12:52:25 -06:00
emellor@leeni.uk.xensource.com 3ceb6ce6b7 Fix error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-12-02 01:19:25 +00:00
dan@localhost.localdomain fff236db8d Add test for the last unresolved bit of bug #416. Check that
"xm list --long" reflects removed devices.
2005-12-01 11:15:31 +00:00
stekloff@elm3b216.beaverton.ibm.com e6c3a4534a Remove config.py, it's autogenerated from config.py.in 2005-12-01 03:09:35 +00:00
emellor@leeni.uk.xensource.com effe56337b Merged. 2005-12-01 03:07:24 +00:00
emellor@leeni.uk.xensource.com fd1b54b4d1 Match rename of xm info field from memory to total_memory.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 19:25:35 +00:00
emellor@leeni.uk.xensource.com 667035011d Fix the reporting when this test fails (the eyecatcher variables would not be
created if the domain creation actually succeeded).  Use total_memory not
free_memory to determine how big to make the domain -- when ballooning down of
dom0 works properly, creating a domain larger than free_memory is possible.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:55:09 +00:00
emellor@leeni.uk.xensource.com fa45226f84 Move the translation from pages to MiB out of XendNode and into the xc layer.
xc has access to the page size for the platform and the Python layer does not,
so there was a hardcoded "/ 256" in there.

Rename the "memory" physinfo parameter to "total_memory", to match the usage
elsewhere.

Tidy the code generating the SXP for xm info.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-30 18:43:00 +00:00
dan@guaranine.beaverton.ibm.com c5924cf272 Some tweaks to the restore and migrate tests to expose the consoles of the
restored DomUs, since they currently Oops on x86_64.
2005-11-30 11:44:19 +00:00
dan@caffeine.beaverton.ibm.com d4c5f90859 Remove useless test 05_create_noroot_noram 2005-11-30 11:42:07 +00:00
dan@guaranine.beaverton.ibm.com aa32296af8 Enable console debug dumping so that we submit the oops generated by
network-detach to the reporting site.
2005-11-30 11:41:33 +00:00
dan@guaranine.beaverton.ibm.com 491738a4be Fix isConsoleDead() to actually run a command on the DomU, since a dead
console is no longer exposed when attempting to attach.  This makes test
04_memset_smallmem again able to detect console death and restart
xenconsoled so that the rest of the tests can run on x86_64.
2005-11-28 18:22:02 +00:00
emellor@leeni.uk.xensource.com 65b2887f85 Set a console limit, in order to detect runaways.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 13:09:46 +00:00
emellor@leeni.uk.xensource.com c675c9215b Fix console handling; saveLog call was broken if ConsoleError occurred.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 10:46:26 +00:00
emellor@leeni.uk.xensource.com b2538b1c49 Change the console handling, to remove the loop and timeout if a console fails
to respond first time.  For restored and unpaused domains there is no need for
the console to output data, so we cannot use this as a way to detect the
liveness of a console.  Instead, a command must always be sent to the console,
which means that this failure can only be detected once the constructor of the
Console class has returned successfully.  The __chewall loop still remains, in
order to detect runaway consoles and to clear out previous data from the
console before executing commands, but we no longer treat failure of that
method to read data as a failure of the console itself.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:06:20 +00:00
emellor@leeni.uk.xensource.com 83b3d6ce35 Use the getId method to tidy up simple call to domid.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:02:36 +00:00
emellor@leeni.uk.xensource.com cbdece93b2 Remove looping from handling of xm domid. This command should now work first
time after creation of a domain.  Have the getRunningDomains method detect
failure of the xm list command, as indicated by the error code.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 01:01:42 +00:00
emellor@leeni.uk.xensource.com 90094c1bd4 Mark 03_network_attach_detach as XFAIL. There are known bugs in the network
frontend device teardown.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:59:37 +00:00
emellor@leeni.uk.xensource.com 1db9dd55d8 Restore 05_create_noroot, as this test now seems to work, and remove
13_create_multinic from the XFAIL list, as this one works also.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:58:44 +00:00
emellor@leeni.uk.xensource.com eece6610d4 Remove some Makefile cruft.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:57:34 +00:00
emellor@leeni.uk.xensource.com 85626c44fa Renable FAIL call that was disabled back when block-attach did not work.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-27 00:10:14 +00:00
emellor@leeni.uk.xensource.com 10e8ebd5bb Merged. 2005-11-26 01:21:55 +00:00
emellor@leeni.uk.xensource.com f5553a774c Fix the unpause_basic test. The console will appear to have failed, given the
current Console.py API, because no bytes have come from it, but that's not a
failure -- an unpaused domain has no reason to output any more data.  We need
to send a command to the domain before we can be sure whether it is alive or
dead, so move the FAIL call, allowing the console connection to throw
ConsoleError.
 
Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-26 01:13:51 +00:00
emellor@leeni.uk.xensource.com 37e9f9f3b5 Fix the 06_block-list_checkremove test. The use of string.find was invalid
(should be testing against -1, not merely using if or if not), one block-list
command was missing, and the block-detach command is asynchronous (to give the
domain time to close down the device) so we need a time.sleep(1) call before
trying xm block-list.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2005-11-26 01:08:26 +00:00
emellor@leeni.uk.xensource.com d31f316358 Also, make a small tweak to the 12_block_attach test so that we don't leave
a DomU running with a block device attached.

Signed-off-by: Dan Smith <danms@us.ibm.com>
2005-11-25 23:19:23 +00:00
emellor@leeni.uk.xensource.com a8845ad36e Add help option on runtests.sh
Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
2005-11-25 15:18:26 +00:00
dan@elm3b196.beaverton.ibm.com e0f31705c8 Add sanity checks that let us know if there are any problems before
we run the entire suite
2005-11-25 15:17:37 +00:00
emellor@leeni.uk.xensource.com cbc8a361c0 Fix stupid invalid syntax on network-attach tests.
Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
2005-11-25 15:17:18 +00:00
root@localhost.localdomain d29e39f1f4 xm-test: add tests for network-attach command
Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
2005-11-23 12:32:44 +01:00
dan@guaranine.beaverton.ibm.com 399bffa1e9 Add tests for bug #331 2005-11-23 12:31:55 +01:00
dan@guaranine.beaverton.ibm.com 2d0693f8dd Make 04_memset_smallmem differentiate between console run-away and console
daemon death.
2005-11-23 12:31:30 +01:00
djm@kirby.fc.hp.com e233724f1f Merge 2005-11-18 23:16:29 -06:00
dan@guaranine.beaverton.ibm.com c4b4f208da Make test 15_create_smallmem pass mem=16M on the kernel command line. 2005-11-18 13:02:33 +01:00
dan@guaranine.beaverton.ibm.com 2f45e4aed1 Added a test to verify that devices come and go from block-list
as they are block-attach'd and block-detach'd.
2005-11-18 13:02:01 +01:00
dan@localhost.localdomain e198273e0e Add hping to the ramdisk. Also, do some very simple versioning.
This is the first change to the ramdisk since v0.1.0.  So, we now build
the image as initrd-X.Y.img, and link initrd.img to it.  This lets us
have a few checks to make sure that people rebuild their ramdisks when
necessary.
2005-11-18 13:00:13 +01:00
dan@guaranine.beaverton.ibm.com 17cb704e41 Updates to the xm-test README file. 2005-11-17 12:09:09 +01:00