os-cmpi-xen

changeset 121:4868ace2726b

Add initial consistence checks in test suite for Xen_MemoryPool, Xen_ProcessorPool and Xen_VirtualSystemManagementService.

Signed-off-by: Luke Szymanski <Lukasz.Szymanski@Unisys.com>
author Jim Fehlig <jfehlig@novell.com>
date Fri Jun 08 10:22:05 2007 -0600 (2007-06-08)
parents 0ea27641bb83
children 28e8c94e92de
files ChangeLog test/README test/setup-test.sh test/system/Xen_MemoryPool.system test/system/Xen_ProcessorPool.system test/system/Xen_VirtualSystemManagementService.system
line diff
     1.1 --- a/ChangeLog	Fri Jun 08 10:05:42 2007 -0600
     1.2 +++ b/ChangeLog	Fri Jun 08 10:22:05 2007 -0600
     1.3 @@ -1,3 +1,10 @@
     1.4 +-------------------------------------------------------------------
     1.5 +Fri Jun  8 10:16:45 MDT 2007 - jfehlig@novell.com
     1.6 +
     1.7 +        - Add initial consistence checks in test suite for Xen_MemoryPool,
     1.8 +          Xen_ProcessorPool and Xen_VirtualSystemManagementService.
     1.9 +          Patch provided by Luke Szymanski.
    1.10 +
    1.11  -------------------------------------------------------------------
    1.12  Mon Jun  4 16:57:17 MDT 2007 - jfehlig@novell.com
    1.13  
     2.1 --- a/test/README	Fri Jun 08 10:05:42 2007 -0600
     2.2 +++ b/test/README	Fri Jun 08 10:22:05 2007 -0600
     2.3 @@ -7,7 +7,8 @@ project.  sblim-testsuite is capable of 
     2.4  Interface tests are tests performed on the various provider interfaces, e.g.
     2.5  instance, method, and association.  Consistence tests include verifying the
     2.6  corrent number of instances is returned, verifying the property value of a
     2.7 -given instance is correct, and so on.
     2.8 +given instance is correct, and so on.  A few property values are checked against
     2.9 +the values of xm info.
    2.10  
    2.11  Currently only a subset of the instance interface tests are implemented:
    2.12  enumInstanceNames
     3.1 --- a/test/setup-test.sh	Fri Jun 08 10:05:42 2007 -0600
     3.2 +++ b/test/setup-test.sh	Fri Jun 08 10:22:05 2007 -0600
     3.3 @@ -113,4 +113,9 @@ done
     3.4  rm ../association_provider_list
     3.5  rm association_provider_template
     3.6  
     3.7 +# Copy provider_name.system files to the system/linux directory
     3.8 +# These files are for the consistence test
     3.9 +cd ../..
    3.10 +cp system/* sblim-test-suite/system/linux
    3.11 +
    3.12  echo 'Done.'
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/test/system/Xen_MemoryPool.system	Fri Jun 08 10:22:05 2007 -0600
     4.3 @@ -0,0 +1,5 @@
     4.4 +********************************************************************************
     4.5 +class : Xen_MemoryPool
     4.6 +
     4.7 +Capacity : -eq -cmd expr `xm info | grep total_memory | sed -e 's/^.*: //g'` '*' 1024 '*' 1024
     4.8 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/test/system/Xen_ProcessorPool.system	Fri Jun 08 10:22:05 2007 -0600
     5.3 @@ -0,0 +1,5 @@
     5.4 +********************************************************************************
     5.5 +class : Xen_ProcessorPool
     5.6 +
     5.7 +Capacity : -eq -cmd xm info | grep nr_cpus | sed -e 's/^.*: //'
     5.8 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/test/system/Xen_VirtualSystemManagementService.system	Fri Jun 08 10:22:05 2007 -0600
     6.3 @@ -0,0 +1,5 @@
     6.4 +********************************************************************************
     6.5 +class : Xen_VirtualSystemManagementService
     6.6 +
     6.7 +SystemName : -eq -cmd xm info | grep host | sed -e 's/^.*: //g'
     6.8 +