aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove 03_network_attach_detach_multiple_pos.test from xfail listemellor@leeni.uk.xensource.com2006-01-031-1/+1
| | | | | Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
* Replace calls to deprecated xm set-vcpus with calls to new shiny xm vcpu-set.emellor@leeni.uk.xensource.com2005-12-151-2/+2
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix block_attach_shared tests. When the sharing check succeeds, the domainemellor@leeni.uk.xensource.com2005-12-152-4/+9
| | | | | | | | is created but left paused, so it is necessary to destroy the domain afterwards, whether the test succeeded or failed. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Someone seems to have gotten carried away with cut & paste, and thenemellor@leeni.uk.xensource.com2005-12-151-1/+1
| | | | | | | didn't test. Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* Adding SKIP() to tests that aren't supported for VMX domains.stekloff@elm3b216.beaverton.ibm.com2005-12-1440-3/+111
| | | | | | Signed-off-by: Dan Stekloff <dsteklof@us.ibm.com>
* Change the way domain configuration is handled in xm-test.emellor@leeni.uk.xensource.com2005-12-1323-103/+62
| | | | | | | | | | | | 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>
* Deprecate the nics option from the xm create configuration. Instead, we use theemellor@leeni.uk.xensource.com2005-12-135-5/+8
| | | | | | | | | | | | | | | | | | | | 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>
* Add initial VMX support to xm-test:stekloff@elm3b216.beaverton.ibm.com2005-12-091-1/+1
| | | | | | | | | | | 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>
* Two domUs, ping from one to the otheremellor@leeni.uk.xensource.com2005-12-091-0/+79
| | | | | Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* Single domU, ping to dom0.emellor@leeni.uk.xensource.com2005-12-091-0/+73
| | | | | Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* Single domU, ping loopback and the local eth0.emellor@leeni.uk.xensource.com2005-12-092-0/+113
| | | | | Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* Makefile plumbing for new network tests.emellor@leeni.uk.xensource.com2005-12-091-0/+1
| | | | | Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* Fix error message.emellor@leeni.uk.xensource.com2005-12-021-1/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Add test for the last unresolved bit of bug #416. Check thatdan@localhost.localdomain2005-12-012-1/+60
| | | | | | "xm list --long" reflects removed devices.
* Merged.emellor@leeni.uk.xensource.com2005-12-012-2/+4
|\
| * Match rename of xm info field from memory to total_memory.emellor@leeni.uk.xensource.com2005-11-301-1/+1
| | | | | | | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
| * Fix the reporting when this test fails (the eyecatcher variables would not beemellor@leeni.uk.xensource.com2005-11-301-1/+3
| | | | | | | | | | | | | | | | | | 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>
* | Some tweaks to the restore and migrate tests to expose the consoles of thedan@guaranine.beaverton.ibm.com2005-11-303-9/+22
| | | | | | | | | | | | restored DomUs, since they currently Oops on x86_64.
* | Remove useless test 05_create_noroot_noramdan@caffeine.beaverton.ibm.com2005-11-302-27/+0
| |
* | Enable console debug dumping so that we submit the oops generated bydan@guaranine.beaverton.ibm.com2005-11-301-0/+3
|/ | | | | | network-detach to the reporting site.
* Set a console limit, in order to detect runaways.emellor@leeni.uk.xensource.com2005-11-271-0/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Fix console handling; saveLog call was broken if ConsoleError occurred.emellor@leeni.uk.xensource.com2005-11-271-0/+4
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Change the console handling, to remove the loop and timeout if a console failsemellor@leeni.uk.xensource.com2005-11-272-3/+3
| | | | | | | | | | | | | | 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>
* Mark 03_network_attach_detach as XFAIL. There are known bugs in the networkemellor@leeni.uk.xensource.com2005-11-271-1/+1
| | | | | | | frontend device teardown. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Restore 05_create_noroot, as this test now seems to work, and removeemellor@leeni.uk.xensource.com2005-11-271-4/+1
| | | | | | | 13_create_multinic from the XFAIL list, as this one works also. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Remove some Makefile cruft.emellor@leeni.uk.xensource.com2005-11-272-11/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Renable FAIL call that was disabled back when block-attach did not work.emellor@leeni.uk.xensource.com2005-11-271-2/+1
| | | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Merged.emellor@leeni.uk.xensource.com2005-11-263-1/+56
|\
| * Add sanity checks that let us know if there are any problems beforedan@elm3b196.beaverton.ibm.com2005-11-252-0/+55
| | | | | | | | | | | | we run the entire suite
| * Fix stupid invalid syntax on network-attach tests.emellor@leeni.uk.xensource.com2005-11-251-1/+1
| | | | | | | | | | Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
* | Fix the unpause_basic test. The console will appear to have failed, given theemellor@leeni.uk.xensource.com2005-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Fix the 06_block-list_checkremove test. The use of string.find was invalidemellor@leeni.uk.xensource.com2005-11-261-6/+12
| | | | | | | | | | | | | | | | | | | | (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>
* | Also, make a small tweak to the 12_block_attach test so that we don't leaveemellor@leeni.uk.xensource.com2005-11-251-2/+2
|/ | | | | | | a DomU running with a block device attached. Signed-off-by: Dan Smith <danms@us.ibm.com>
* xm-test: add tests for network-attach commandroot@localhost.localdomain2005-11-237-0/+235
| | | | | | Signed-off-by: Murillo Fernandes Bernardes <mfb@br.ibm.com>
* Add tests for bug #331dan@guaranine.beaverton.ibm.com2005-11-233-1/+59
|
* Make 04_memset_smallmem differentiate between console run-away and consoledan@guaranine.beaverton.ibm.com2005-11-231-3/+5
| | | | | | daemon death.
* Make test 15_create_smallmem pass mem=16M on the kernel command line.dan@guaranine.beaverton.ibm.com2005-11-181-1/+2
|
* Added a test to verify that devices come and go from block-listdan@guaranine.beaverton.ibm.com2005-11-182-1/+68
| | | | | | as they are block-attach'd and block-detach'd.
* Update 01_pause_basic test for new console behavior.dan@guaranine.beaverton.ibm.com2005-11-171-4/+1
|
* Make test 04_memset detect bug #380 and restart the console daemon.dan@guaranine.beaverton.ibm.com2005-11-171-1/+12
| | | | | | | This should allow the rest of the tests to run without reporting failure because this test killed the console system.
* Test for creating a domain with too little memory.dan@guaranine.beaverton.ibm.com2005-11-162-2/+29
|
* Make 01_reboot test more robust.dan@guaranine.beaverton.ibm.com2005-11-161-4/+14
| | | | | | | | We need to attach a console before rebooting to make sure the domain did actually boot in the first place. Also, use a better method for pulling out the uptime string.
* Review checks for Error string when checking that bad arguments are handledemellor@leeni.uk.xensource.com2005-11-1631-36/+36
| | | | | | | | | | | | | | correctly. Many checks were looking using output.find("Error") > 1, which is incorrect, as we do not guarantee that the word "Error" will be first in the output (never mind the fact that strings are indexed from 0). All these checks have been changed to compare against -1. In particular, this should fix the failure of create_noparm_neg and create_badparm_neg on a machine with the /etc/xen/xmdefconfig file in place, as xm create issues the Using config file "/etc/xen/xmdefconfig" diagnostic before reporting the error. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* This test was failing for he wrong reason. Calls to block-attach after thedan@guaranine.beaverton.ibm.com2005-11-121-3/+5
| | | | | | | | | | first *should* report failure, so the test should not fail because of this. The test now fails because multiple calls to block-attach seem to detach the block devicem, which is wrong. Signed-off-by: Dan Smith <danms@us.ibm.com>
* Make the 04_restore test verify that two block devices and two nics aredanms@us.ibm.com2005-11-101-6/+60
| | | | | | restored to a working state and that the nics retain their configuration.
* Remove this accidental commitdanms@us.ibm.com2005-11-101-14/+0
|
* Tweak the usage of mke2fs to be quiet, so that the XML reportsdan@guaranine.beaverton.ibm.com2005-11-102-3/+5
| | | | | | contain less garbage
* This patch adds a new test that attempts to save and restore a domainemellor@leeni.uk.xensource.com2005-11-092-1/+74
| | | | | | | | | with a block device attached. It starts up a domain, mounts a block device, writes data to it, saves, restores, and then verifies that the block device can still be read. Signed-off-by: Dan Smith <danms@us.ibm.com>
* Added file missed on commit of earlier patch by Dan Smith.emellor@leeni.uk.xensource.com2005-11-081-0/+44
|
* This patch removes all of the auto-generated files that were checkedemellor@leeni.uk.xensource.com2005-11-0853-27790/+0
| | | | | | | | | | | | in with xm-test in changeset 7634. It also adds an "autogen" script that re-creates these files. The auto-generated files really don't need to be in the tree, as they should be generated by the user on the machine where they plan to run xm-test. Signed-off-by: Dan Smith <danms@us.ibm.com>