# HG changeset patch # User Luke Szymanski # Date 1178309020 14400 # Node ID 488ff52fe88df98efa155c8f145885415c6be3fc # Parent 1903faaf4d3708bc34135bf34b34a168ae46fc69 These files are the start of the test suite. The xml file is an input file to cimtester and runs through various associations/ references/enumerations/etc. Signed-off-by: Luke Szymanski diff -r 1903faaf4d37 -r 488ff52fe88d test/README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/README Fri May 04 16:03:40 2007 -0400 @@ -0,0 +1,27 @@ +1. INTRODUCTION + +The purpose of this directory is to ensure the intrinsics and extrinsics of +the CIM Providers are in working order. Currently, only files dealing with +cimtester (http://omc.svn.sourceforge.net/viewvc/omc/tools/trunk/cimtester/) +are included. + +Xen_CIM.xml: the input file for cimtester +provider_list: the names of providers to be tested +create_provider_list.sh: will create Xen_CIM.xml from the provider_list + +2. CONFIGURING + +3. BUILDING + +4. INSTALLING + +To install cimtester, go to +http://omc.svn.sourceforge.net/viewvc/omc/tools/trunk/cimtester/ + +5. RUNNING + +# cimtester Xen_CIM.xml > output_file + +If you wish to add a provider for testing, simply update the +provider_list and it will automatically be included. + diff -r 1903faaf4d37 -r 488ff52fe88d test/Xen_CIM.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Xen_CIM.xml Fri May 04 16:03:40 2007 -0400 @@ -0,0 +1,321 @@ + + + + +root/cimv2 + + + + + + + + + + + + + + + + + + + + + + + + + + + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + + + + + + + + + + + + + + + + + + + + + + + + + + + + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + + + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + + + + + + + + + + + + + + + + + + + + + + + + + + + + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + + + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + +true + + diff -r 1903faaf4d37 -r 488ff52fe88d test/create_xml_file.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/create_xml_file.sh Fri May 04 16:03:40 2007 -0400 @@ -0,0 +1,66 @@ +#! /bin/bash + +# start of xml input file +echo "" > Xen_CIM.xml +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +echo "root/cimv2" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml + +# Sanity test +sed -e 's/^/@g' test123 >> Xen_CIM.xml + +# Association test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ \ +true @g' test123 >> Xen_CIM.xml + +# EnumInstances test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ @g' test123 >> Xen_CIM.xml + +# References test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ \ +true @g' test123 >> Xen_CIM.xml + +# GetInstance test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ \ +true @g' test123 >> Xen_CIM.xml + +# EnumInstanceNames test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ @g' test123 >> Xen_CIM.xml + +# AssociatorNames test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ \ +true @g' test123 >> Xen_CIM.xml + +# ReferenceNames test +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml +sed -e 's/^/ \ +true @g' test123 >> Xen_CIM.xml + +#end of xml input file +echo "" >> Xen_CIM.xml +echo "" >> Xen_CIM.xml + +rm test123 diff -r 1903faaf4d37 -r 488ff52fe88d test/provider_list --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/provider_list Fri May 04 16:03:40 2007 -0400 @@ -0,0 +1,23 @@ +Xen_RegisteredSVProfile +Xen_VirtualizationCapabilities +Xen_Disk +Xen_VirtualSystemManagementService +Xen_ProcessorSettingData +Xen_Memory +Xen_Processor +Xen_MemoryCapabilitiesSettingData +Xen_RegisteredVSProfile +Xen_Console +Xen_ProcessorPool +Xen_DiskSettingData +Xen_OperatingSystem +Xen_ConsoleSettingData +Xen_ComputerSystem +Xen_MemorySettingData +Xen_NetworkPortSettingData +Xen_MemoryPool +Xen_VirtualSystemManagementCapabilities +Xen_NetworkPort +Xen_ComputerSystemSettingData +Xen_ComputerSystemCapabilities +Xen_ProcessorCapabilitiesSettingData