📄 makefile
字号:
#//%2006////////////////////////////////////////////////////////////////////////#//#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;#// IBM Corp.; EMC Corporation, The Open Group.#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;#// EMC Corporation; VERITAS Software Corporation; The Open Group.#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;#// EMC Corporation; Symantec Corporation; The Open Group.#//#// Permission is hereby granted, free of charge, to any person obtaining a copy#// of this software and associated documentation files (the "Software"), to#// deal in the Software without restriction, including without limitation the#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or#// sell copies of the Software, and to permit persons to whom the Software is#// furnished to do so, subject to the following conditions:#// #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#//#//==============================================================================ROOT = ../../../../..DIR = Clients/cimsub/tests/testscriptInterOpinclude $(ROOT)/mak/config.makinclude $(ROOT)/mak/test.makinclude $(ROOT)/mak/commands.makRESULTFILE = $(TMP_DIR)/resultMASTERRESULTFILE = $(ROOT)/src/$(DIR)/result.mastertests:poststarttests:cleanup: @TestCimsubInterOp cleanup @$(MAKE) -i -s cleanclean: @$(RM) $(RESULTFILE)## Create filters,handlers,and subscriptions required for running the tests#test_setup: @TestCimsubInterOp cleanup @TestCimsubInterOp register @TestCimsubInterOp testcimsubTest_InterOp: test_setup @$(RM) $(RESULTFILE) @$(MAKE) -i -s cimsubTest1_ignoreerror @$(STRIPCRS) $(COMPARERESULTS) @$(ECHO) +++ Test passed +++ @TestCimsubInterOp cleanup @$(RM) $(RESULTFILE)cimsubTest1_ignoreerror: @$(ECHO) ++++cimsub PG_InterOp tests @$(ECHO) +++++++++ Command line testing +++++++++ >> $(RESULTFILE) @$(ECHO) "List handler with namespace and class." >> $(RESULTFILE) @cimsub -lh -H test/TestProvider:CIM_ListenerDestinationCIMXML.ListenerDestination05 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with handler only." >> $(RESULTFILE) @cimsub -ls -H test/TestProvider:CIM_ListenerDestinationCIMXML.ListenerDestination05 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with filter only." >> $(RESULTFILE) @cimsub -ls -F Filter03 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Non-existent handler." >> $(RESULTFILE) @cimsub -rh -H no_handler_around >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Remove handler with different creation class." >> $(RESULTFILE) @cimsub -rh -H root/PG_InterOp:Snmphandler3 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List all subscriptions." >> $(RESULTFILE) @cimsub -ls >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List all filters." >> $(RESULTFILE) @cimsub -lf >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List all handlers." >> $(RESULTFILE) @cimsub -lh >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List all subscriptions(verbose)." >> $(RESULTFILE) @cimsub -ls -v >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List all filters(verbose)." >> $(RESULTFILE) @cimsub -lf -v >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List all handlers(verbose)." >> $(RESULTFILE) @cimsub -lh -v >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with filter and handler." >> $(RESULTFILE) @$(ECHO) " Namespace is defaulted to root/PG_InterOp." >> $(RESULTFILE) @cimsub -ls -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with filter and handler." >> $(RESULTFILE) @$(ECHO) " Subscription does not exist in non-default namespace ." >> $(RESULTFILE) @cimsub -ls -n test/TestProvider -F Filter11 -H ListenerDestination06 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with valid namespace for handler." >> $(RESULTFILE) @$(ECHO) " Subscription does not exist in non-default namespace ." >> $(RESULTFILE) @cimsub -ls -n test/TestProvider -F Filter11 -H test/TestProvider:ListenerDestination06 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with no name for handler." >> $(RESULTFILE) @cimsub -ls -n root/PG_InterOp -F root/PG_InterOp:Filter01 -H root/PG_InterOp:CIM_IndicationHandlerCIMXML. >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List subscription with full handler path." >> $(RESULTFILE) @cimsub -ls -n root/PG_InterOp -F root/PG_InterOp:Filter01 -H root/PG_InterOp:CIM_IndicationHandlerCIMXML.Handler01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Enable the already enabled test subscription." >> $(RESULTFILE) @cimsub -e -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Disable the test subscription." >> $(RESULTFILE) @cimsub -d -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Try to disable the test subscription again." >> $(RESULTFILE) @cimsub -d -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Enable the test subscription." >> $(RESULTFILE) @cimsub -e -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F Filter01 -H ListenerDestination01 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F root/cimv2:Filter12 -H root/SampleProvider:ListenerDestination06 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @cimsub -ls -F root/cimv2:Filter12 -H test/TestProvider:ListenerDestination06 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Disable the test subscription." >> $(RESULTFILE) @$(ECHO) " Specify subscription namespace." >> $(RESULTFILE) @cimsub -d -n root/PG_InterOp -F root/cimv2:Filter12 -H test/TestProvider:ListenerDestination06 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "List test subscription." >> $(RESULTFILE) @$(ECHO) " Use default subscription namespace." >> $(RESULTFILE) @cimsub -ls -F root/cimv2:Filter12 -H test/TestProvider:ListenerDestination06 >> $(RESULTFILE) $(REDIRECTERROR) @$(ECHO) >> $(RESULTFILE) @$(ECHO) "Re-enable the test subscription." >> $(RESULTFILE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -