aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test
Commit message (Collapse)AuthorAgeFilesLines
* Fix some build system error handling.Keir Fraser2007-12-201-4/+4
| | | | Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xm-test: Don't run security test if ACM is not enabled.Keir Fraser2007-12-101-1/+10
| | | | | | | | | I forgot to put in the check to prevent this test case from running when ACM is not compiled into Xen. I am resetting the policy so that an update with the prepared policy can be done without changing that policy's header to match the current policy's version. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test, acm: fixes an API call due to recent changes.Keir Fraser2007-12-081-1/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: An additional ACM security test case for the test suite.Keir Fraser2007-12-064-4/+479
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Implement legacy XML-RPC interface for ACM commands.Keir Fraser2007-12-053-54/+12
| | | | | | | | | | | | | | | | | | | | | | | | This patch implements a (non Xen-API) legacy XML-RPC interface for the ACM commands and funnels the calls into code introduced by the Xen-API support for ACM security management. Since some of the functionality has changed, also the xm applications have changed. In particular the following old commands have been removed along with some tools the have become obsolete now: - loadpolicy (included in: setpolicy) - makepolicy (included in: setpolicy) - cfgbootpolicy (included in: setpolicy) and the following commands been introduced: - setpolicy - getpolicy - resetpolicy All tools have been adapted to work in Xen-API and legacy XML-RPC mode. Both modes support the same functionality. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* xm-test: various fixesKeir Fraser2007-10-253-4/+14
| | | | | | | | | | | - recently I added an other_config field to the VTPM record which now needs to be accounted for otherwise the test determines a bad key - the dry-run command was throwing a different type of exception (ACMError) than what was caught (XSMError) - the tests based on the raw Xen-API need to build the PV_args parameters from the old 'root' and 'extra' parameters. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Replace sysctl.physinfo.sockets_per_node with more directly usefulKeir Fraser2007-10-192-5/+2
| | | | | | | | sysctl.physinfo.nr_cpus. This also avoids miscalculation of sockets_per_node by Xen where the number of CPUs in the system is clipped. From: Elizabeth Kon <eak@us.ibm.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* xm-test: Fix bugzilla #1051.Keir Fraser2007-10-022-3/+3
| | | | | | | | This is a patch to fix xm-test's network errors http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1051 From: Lukasz Szymanski <Lukasz.Szymanski@unisys.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* [XM-TEST] Fixes a parameter to the external tools usedKeir Fraser2007-09-201-1/+1
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* [xm-test] Set "console=xvc0" for xm-test guests on Intel architecture platforms.James Bulpin2007-09-111-1/+6
| | | | | | | Tests have been failing because the console for the test ramdisk wasn't using xvc0 so testcases were not able to interact with it. Signed-off-by: James Bulpin <james@xensource.com>
* Fix xm-test python import after XSM security changes.kfraser@localhost.localdomain2007-09-065-5/+8
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* xm-test: Allow dom0 network interface used in tests to be overridenJames Bulpin2007-08-124-7/+17
| | | | ./configure --with-dom0-intf=<intf> (default vif0.0)
* [ACM] Some more fixeskfraser@localhost.localdomain2007-07-303-0/+22
| | | | | | | | | | | - 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-188-19/+1247
| | | | | | | 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: ia64 min memory & arbitrarily large ramdiskkfraser@localhost.localdomain2007-05-241-0/+14
| | | | | | | | | | | | | | | | | | | 1) Sets a minimum of 128MB RAM for an ia64 domU; this limit was set after experimentation, which seems to indicate it's a reasonable lower limit (the 32MB limit previously in place did not allow an ia64 domU to start). If there's any problem with this, I don't mind splitting the patch and sending it to the ia64 list, but it was small, so I hope it's okay to include it. 2) xm-test uses ramdisks built with uClibc, which doesn't compile on ia64. I was able to create a ramdisk by hand, but as it was too large, the resultant domU crashed after boot. This patch enables the use of an arbitrarily large ramdisk, so long as it's uncompressed. As xm-test builds only uncompressed ramdisks, I figured this was reasonable for that specific application. Suggestions on how to detect and handle a compressed ramdisk would be welcome. Signed-off-by: Alex Williamson <alex.williamson@hp.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-5/+9
| | | | 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>
* xm-test: Scale memory parameter for tests using XenAPIDomain.kfraser@localhost.localdomain2007-04-241-0/+2
| | | | | | | | | Scale the memory parameter for domains using the XenAPIDomain to create a domain. Those domains use the normal configuration where the memory parameter is given in 'Mb', so it needs to be adapted to 'bytes'. 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 Xm Test default to bridge when cannot read config fileTom Wilkie2007-04-121-1/+5
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
* Remove unused import; library movedTom Wilkie2007-03-281-1/+0
| | | | signed-off-by: Tom Wilkie <tom.wilkie@gmail.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-2323-60/+59
| | | | 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>
* Use the new xen-python-path to set PYTHONPATH, rather than trying to do it inEwan Mellor2007-02-012-21/+3
| | | | | | XmTestLib.__init__ (and getting it wrong). Signed-off-by: Ewan Mellor <ewan@xensource.com>
* Copy the definition of DOM0_UUID into XenDomain so that we don't need to importEwan Mellor2007-02-012-2/+4
| | | | | | 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>
* [XM-TEST] Allow building of ramdisk on x86_64Alastair Tse2007-01-231-1/+1
| | | | Signed-off-by: Alastair Tse <atse@xensource.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-119-117/+253
| | | | | | | | | | | | | | | - 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>
* I added a parameter '-md' to 'runtest.sh' for running the xm test suiteEwan Mellor2007-01-112-0/+10
| | | | | | | | | | 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>
* 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>
* This simple patch allows domains created in the xm-test suite to beEwan Mellor2007-01-092-4/+67
| | | | | | | | 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>
* Add needed modules to the ramdisk if the modules exist on the current system.Ewan Mellor2007-01-092-2/+22
| | | | | | (i.e. the current system contains a modularized kernel) Signed-off-by: Lynn Bendixsen <lbendixs@novell.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>
* Only try to label resources if ACM is enabled.Ewan Mellor2006-12-161-0/+2
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* merge with xen-unstable.hgawilliam@xenbuild2.aw2006-12-081-1/+7
|\
| * Download and symlink the i386 version of the ramdisk when running on x86_64.Ewan Mellor2006-12-081-1/+7
| | | | | | | | | | | | This means that people don't need to explicitly set BR_ARCH. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-12-051-2/+3
|\|
| * This adds a recently added parameter to the vm.start call.Ewan Mellor2006-12-041-2/+3
| | | | | | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* | merge with xen-unstable.hgawilliam@xenbuild.aw2006-12-045-1/+321
|\|