aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix xm-test python import after XSM security changes.kfraser@localhost.localdomain2007-09-064-4/+7
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [ACM] Some more fixeskfraser@localhost.localdomain2007-07-302-0/+18
| | | | | | | | | | | - don't reload the policy if it has been loaded - don't always load the policy in the test suite when the policy is already loaded - skip tests 07 and 09 when ACM is not enabled and xm is not using the Xen-API - fix a problem when trying to remove an invalid label Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [Xm-Test] Additional tests for the xm-test suitekfraser@localhost.localdomain2007-07-186-10/+1200
| | | | | | | This adds a couple of test cases exercising the new policy management functionality to the security tests. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [VTPM] Make vTPM hotplug scripts use the UUID of the vTPM instancekfraser@localhost.localdomain2007-07-179-97/+38
| | | | | | | | | | Make the vTPM hotplug script use the UUID of the vTPM instance for associating it with its instance number rather than the name of the domain. Also change the cleanup in the xm test to use the atexit mechanism rather than explicitly calling a function to clean up. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Extended the physinfo sysctl to export NUMA cpu_to_node topology info.kfraser@localhost.localdomain2007-07-061-3/+1
| | | | | | Print this in 'xm info'. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XM-TEST] Add test for new network functionsTom Wilkie2007-04-262-1/+73
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* [XM-TEST] Move network_utils.py to lib directoryTom Wilkie2007-04-264-59/+3
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* acm: Changes to XML schema of the policykfraser@localhost.localdomain2007-04-251-0/+1
| | | | | | | | | | | This patch changes the XML schema of the ACM policy to require a version and that every conflict set have a name. Every VM label must have one Chinese Wall Type and every resource label one Simple Type Enforcement Type. As a consequence of this some example policies needed to be changed. Also not offering that many configuration options for compiling xen anymore to make things simpler. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [vtpm] Return a proper error when in the Xen-API call.Keir Fraser2007-04-191-1/+1
| | | | | | Fix a bug in the test. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Make 06_destroy_dom0_neg pass with xm via XenAPI.Tom Wilkie2007-03-261-1/+1
| | | | | | Make check case insensitive. signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix typos.Ewan Mellor2007-03-232-2/+2
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Replace tabs with spaces.Ewan Mellor2007-03-2318-45/+44
| | | | Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
* Change the eyecatcher to be case-insensitive, so that "Internal error" isEwan Mellor2007-03-202-4/+4
| | | | | | detected. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Have xm-test wait for the network device to detach. This is an asynchronousEwan Mellor2007-03-201-0/+19
| | | | | | process, so xm-test needs to poll. Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Fix typo in xm-test.Ewan Mellor2007-03-141-1/+1
| | | | Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* [XM-TEST] vTPM test changeskfraser@localhost.localdomain2007-03-132-2/+3
| | | | | | | | 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>
* Make the VTPM.destroy method return 'void' upon success and adapt theEwan Mellor2007-03-091-4/+5
| | | | | | test case to reflect that. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test, acm: Use xvda* device name instead of sdb* device inside guest domain.kfraser@localhost.localdomain2007-02-261-9/+9
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Copy the definition of DOM0_UUID into XenDomain so that we don't need to importEwan Mellor2007-02-011-2/+1
| | | | | | large swathes of the server to run the Xen-API tests. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Align vTPM support in the Xen-API, documentation and lib-xenkaf24@localhost.localdomain2007-01-301-17/+104
| | | | | | (after the recent changes). Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [XEND] Fix get_dev_property_by_uuidAlastair Tse2007-01-222-1/+131
| | | | | | | | | | | 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>
* This patch does the following:Ewan Mellor2007-01-113-52/+127
| | | | | | | | | | | | | | | - 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>
* Update sched-credit test to match new format from xm sched-credit.Ewan Mellor2007-01-091-13/+20
| | | | Signed-off-by: Ewan Mellor <ewan@xensource.com>
* [XM-TEST] Tweak 06_block-destroy_check_list_pos to allow more time to checkSteven Hand2007-01-041-2/+6
| | | | | | block device has gone away from point of view of domain sxp. Signed-off-by: Steven Hand <steven@xensource.com>
* This patch provides XmTestManagedDomain and XenManagedDomain classesEwan Mellor2006-12-012-1/+78
| | | | | | | | | | | | | | | | | | | 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>
* [XM-TEST] Relax craete_mem*_pos checks to allow a 2MB less thanAlastair Tse2006-11-093-3/+3
| | | | | | | | | 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>
* Correct copy-n-paste error.Ewan Mellor2006-11-011-4/+2
| | | | | | Also Whitespace cleanups. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
* Update all block tests to use the Xen Virtual Block Device (xvd) rather than ↵Ewan Mellor2006-11-0122-130/+128
| | | | | | | | | | | | 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>
* The XenDomain class does not respect the arch defaults whereEwan Mellor2006-11-011-8/+3
| | | | | | | | | | | 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>
* Fix Memory assumptions in the create tests.Ewan Mellor2006-10-244-7/+16
| | | | | | Use the architecture specified idea of minimum memory. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
* [ACM] An environment where ACM and its tools have not been installed beforekfraser@localhost.localdomain2006-10-192-1/+7
| | | | | | will throw an error during 'make' of the test suite. This fixes the problem. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [TPM] Add tests cases for the ACM security hooks and tools tokfraser@localhost.localdomain2006-10-1810-0/+582
| | | | | | | | | | | | | | | | | | | | | | 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>
* [XM-TEST] Remove the test for /dev/tpm0, which may be a prerequisite to startkfraser@localhost.localdomain2006-09-271-4/+2
| | | | | 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>
* Revert change to vtpm_utils related to skipping the test when the tpm is notEwan Mellor2006-09-151-0/+3
| | | | | | | | found -- we need to skip the test on non-TPM platforms, of course. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* When redirecting the output of the echo command using '>' on bash, theEwan Mellor2006-09-144-6/+3
| | | | | | | | | | | | 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>
* [XM-TEST] Increase timeout on hotplug-cpus-down test to 30 seconds.kaf24@firebug.cl.cam.ac.uk2006-07-141-4/+4
| | | | | | This is needed when dom0 has 32 CPUs. Signed-off-by: Susan Krysan <krysans@unisys.com>
* [TPM] Add 3 more test cases to the xm testsuite that extend thekaf24@firebug.cl.cam.ac.uk2006-06-289-78/+493
| | | | | | | | | | | 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>
* Add XENVER_pagesize hypercall.kaf24@firebug.cl.cam.ac.uk2006-06-271-1/+2
| | | | | | Make xen pagesize available through xm info and sysfs. Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
* [XM-TEST] Remove second console attach in 03_memset_random_poskaf24@firebug.cl.cam.ac.uk2006-06-221-6/+0
| | | | | Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* [XM-TEST] Fix 02_block_device_write_verify.py test to parse md5sum output ↵kaf24@firebug.cl.cam.ac.uk2006-06-132-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add sched-credit xm tests but don't run them by default yet...ack@localhost.localdomain2006-06-083-0/+86
| | | | | Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
* Fix a problem where the vcpu count for dom0 doesn't get reset back to thepl@us.ibm.com2006-06-011-10/+11
| | | | | | original value when 01_enforce_dom0_cpus_basic_pos fails.
* Block device write-verify test.emellor@leeni.uk.xensource.com2006-06-012-1/+65
| | | | | | | | | | | | | | | | | | | | | | 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>
* Add a read-verify block device test to xm-test.harry@localhost.localdomain2006-05-193-3/+87
|
* Merged.emellor@leeni.uk.xensource.com2006-05-196-8/+8
|\
| * [XM-TEST] Use explicit (IP id==packet size) on hping2 tests to avoidkaf24@firebug.cl.cam.ac.uk2006-05-196-8/+8
| | | | | | | | | | | | | | problems with IP id==0 Signed-off-by: Jim Dykman <dykman@us.ibm.com>
* | The enforce_dom0_cpus test sets the number of vcpus for the Dom0 andemellor@leeni.uk.xensource.com2006-05-191-7/+25
|/ | | | | | | | | | | | | checks to see if they have been set correctly. We found that on multi-proc systems, it takes a certain amount of time for the number of vcpus to change. This patch checks the number of vcpus inside a loop until it is correct or 20 seconds elapse, whichever happens first. If after 20 seconds the number of vcpus is not changed correctly, an error is raised. Signed-off-by: Rajagopalan Subrahmanian <raj.subrahmanian@unisys.com>
* Fix up enforce_dom0_cpu test case to check that dom0 has at least 2 vcpusRyan Harper2006-05-111-21/+38
| | | | | | | | | online. Also fix bogus call to vcpu-enable; xm now uses vcpu-set as method for enable/disable of vcpus. Previously after a successful test run, this test would not leave dom0 in the same state as it was when the test started. Also some comment language changes and 80 column formatting.
* I am adding one more test case for vTPM migration. The new one doeskaf24@firebug.cl.cam.ac.uk2006-05-113-35/+141
| | | | | | | | local network migration without the 'live' parameter 3 times. The test '04' that does live migration now tests local live migration 3 times. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Fix console runaway detection for the smallmem_neg test, following the changesemellor@leeni.uk.xensource.com2006-05-071-3/+1
| | | | | | | to have Console included as part of the Domain object. Signed-off-by: Ewan Mellor <ewan@xensource.com>