1 #//%2005////////////////////////////////////////////////////////////////////////
3 #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
6 #// IBM Corp.; EMC Corporation, The Open Group.
7 #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
9 #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 #// EMC Corporation; VERITAS Software Corporation; The Open Group.
12 #// Permission is hereby granted, free of charge, to any person obtaining a copy
13 #// of this software and associated documentation files (the "Software"), to
14 #// deal in the Software without restriction, including without limitation the
15 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 #// sell copies of the Software, and to permit persons to whom the Software is
17 #// furnished to do so, subject to the following conditions:
19 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #//==============================================================================
29 ###############################################################################
31 ## Test Makefile for Pegasus CIMOM
33 ## see the usage rule for documentation of rules etc.
36 ###############################################################################
39 @ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
41 include $(PEGASUS_ROOT)/mak/config.mak
42 include $(PEGASUS_ROOT)/mak/test.mak
43 include $(PEGASUS_ROOT)/mak/commands.mak
53 $(USAGE)"TestMakefile Primary Targets:"
55 $(USAGE)"The following are all standalone tests. They stop and start the server,"
56 $(USAGE)"and build repositories as needed."
58 $(USAGE)"alltests - Execute unittests and servertests"
59 $(USAGE)"unittests - Execute the unit functional tests - no repository"
60 $(USAGE)" or active server is required"
61 $(USAGE)"servertests - Execute a basic server test suites (No security, No SSL)"
62 $(USAGE)"standardtests - Execute an extended server test suites "
63 $(USAGE)" using multiple options."
64 $(USAGE)"serverquicktests - Executes a brief server test"
65 $(USAGE)"perftests - Executes a brief server performance test"
67 $(USAGE)"usage2 - usage on secondary test targets"
68 $(USAGE)"usagetrace - usage on trace targets"
73 $(USAGE)"TestMakefile Secondary Targets:"
75 $(USAGE)"The following are run as part of the Primary target test suites and may"
76 $(USAGE)"also be invoked as standalone tests."
78 $(USAGE)"TestXMLRepository - Executes poststarttests on XML repository"
79 $(USAGE)" built with cimmofl."
80 $(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository"
81 $(USAGE)" built with cimmof."
82 $(USAGE)"TestXMLCmpRepository - Executes poststarttests on XML compressed"
83 $(USAGE)" repository built with cimmofl."
84 $(USAGE)"TestBinRepository - Executes poststarttests on binary repository "
85 $(USAGE)" built with cimmofl."
86 $(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
87 $(USAGE)" built with cimmof."
88 $(USAGE)"TestBinCmpRepository - Executes poststarttests on binary compressed"
89 $(USAGE)" repository built with cimmofl."
91 $(USAGE)"The following require the repository to be pre-built."
93 $(USAGE)"run_SSL_TS1 - Executes the SSL tests"
94 $(USAGE)"run_OOP_TS1 - Executes the Out Of Process Provider tests"
96 $(USAGE)"The following require the repository to be pre-built and the server to be started."
98 $(USAGE)"serversuite - the collection of test run by the servertests rule"
99 $(USAGE)"serverquicksuite - The collection of test run by the serverquicktests rule"
103 ##########################################################
105 # rules that are defined in Makefile
107 ##########################################################
110 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
113 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
116 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
119 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
122 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
125 ############################################################
129 ############################################################
132 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
133 ## are available and could be invoked directly, their direct usage is
134 ## discouraged in favor of invoking the cimstop and the cimstart rules
135 ## as this allows one place where additional checks, delays etc may be
136 ## added in the future to control or further test the servers performance
137 ## in executing these commands.
140 #######################
145 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
146 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
149 #######################
153 repositoryServer: FORCE
154 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
156 $(RMDIRHIER) $(REPOSITORY_ROOT)
157 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
159 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
160 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
162 ######################
164 # prestarttests is being deprecated since poststarttest is being deprecated
165 # in favor of name more related to its intended functionality.
167 prestarttests: prestarttests_msg shortsleep unittests
169 prestarttests_msg: FORCE
170 @$(ECHO) "=============================================================================="
171 @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
172 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
173 @$(ECHO) " The equivalent new rule is \"unittests\"."
174 @$(ECHO) " Invoking the \"unittests\" rule now."
175 @$(ECHO) "=============================================================================="
179 # poststarttests is being deprecated since it multiply defines a
180 # recursive make rule leading to ambuguity and confusion.
182 poststarttests: poststarttests_msg shortsleep servertests
184 poststarttests_msg: FORCE
185 @$(ECHO) "==============================================================================="
186 @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
187 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
188 @$(ECHO) " The equivalent new rule is \"servertests\"."
189 @$(ECHO) " Invoking the \"servertests\" rule now."
190 @$(ECHO) "==============================================================================="
192 #####################
194 # tests is being deprecated since it multiply defines a
195 # recursive make rule leading to ambuguity and confusion.
197 tests: tests_msg shortsleep alltests
200 @$(ECHO) "==================================================================="
201 @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
202 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
203 @$(ECHO) " The equivalent new rule is \"alltests\"."
204 @$(ECHO) " Invoking the \"alltests\" rule now."
205 @$(ECHO) "==================================================================="
216 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
217 @ $(ECHO) "+++++ TestMakefile unittests complete"
219 #####################
224 servertestsclean: FORCE
225 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
226 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
227 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
228 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
231 servertestssetup: FORCE
232 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
233 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
234 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
237 servertests: servertestsclean servertestssetup serversuite
238 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
241 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
242 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
243 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
244 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
245 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
251 serverquicktests: servertestsclean servertestssetup serverquicksuite
252 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
254 serverquicksuite: FORCE
255 $(PEGASUS_HOME)/bin/Client
256 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
257 $(PEGASUS_HOME)/bin/TestClient
261 # perftests - simple performance test until we have better
263 # - Turns statistics on (uses TestInterop until we have better)
264 # - runs and times serverquicktests suite
265 # - runs cimperf to displat the statistics
266 # - turns statistics off
268 perftests: servertestsclean servertestssetup perfsuite
271 $(PEGASUS_HOME)/bin/TestInterop on
272 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
274 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
276 $(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
279 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
281 $(PEGASUS_HOME)/bin/TestInterop off
288 alltests: unittests servertests
289 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
290 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
291 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
293 @ $(ECHO) "+++++ TestMakefile alltests Complete"
295 ###############################################################################
296 ## Test Suite Definitions
297 ###############################################################################
299 ###############################################################################
300 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
302 ## Configuration Options: forceProviderProcesses=true
304 ###############################################################################
305 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
306 ifndef PEGASUS_DEFAULT_OOP_FALSE
308 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
311 OOP_TS1_TEST_CMDS = \
315 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
316 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
317 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
318 ###############################################################################
320 ###############################################################################
321 ## IndInit Test Suite 1: IndicationService Initialization Tests
323 ## Configuration Options: (none)
325 ###############################################################################
326 IndInit_TS1_CONFIG_OPTIONS =
327 IndInit_TS1a_TEST_CMDS = \
328 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
329 IndInit_TS1b_TEST_CMDS = \
330 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
333 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
334 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
335 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
336 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
337 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
338 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
340 ###############################################################################
341 ## SSL Test Suite 1: SSL Tests
343 ## Configuration Options: enableAuthentication=true
344 ## enableHttpsConnection=true
345 ## sslClientVerificationMode=optional
346 ## sslTrustStoreUserName=$(CURRENT_USER)
348 ###############################################################################
349 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
350 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
351 SSL_TS1_TEST_CMDS = \
352 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
354 ifdef PEGASUS_HAS_SSL
356 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
357 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
358 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
361 @ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
366 ###############################################################################
370 ##############################################################################
372 ## TestXMLRepository rule is used to run the poststarttests suite on
373 ## the XML Repository built using cimmofl
375 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
376 ## the XML Repository built using cimmof
378 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
379 ## the XML Compressed Repository built using cimmofl
382 ############################
387 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
388 @ $(ECHO) TestXMLRepository +++++ passed all test
390 ############################
392 ## TestXMLRepositoryServer
394 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
395 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
397 ############################
399 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
401 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
402 TestXMLCmpRepository: FORCE
403 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
404 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
407 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
409 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
410 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
412 TestXMLCmpRepository: FORCE
413 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
414 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
415 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
419 ###########################
424 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
425 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
428 ###########################
430 ## TestXMLStartServer
432 TestXMLStartServer: FORCE
433 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
434 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
435 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
439 #### The following caused the cimserver to fail on startup
441 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
443 ###########################
447 TestXMLBuildRepo: FORCE
448 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
449 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
452 ###########################
454 ## TestXMLBuildRepoServ
456 TestXMLBuildRepoServ: TestXMLStartServer
457 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
458 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
459 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
462 ###########################
466 TestXMLRepo: servertestsclean
467 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
468 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
469 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
476 ##############################################################################
478 ## TestBinRepository rule is used to run the poststarttests suite on
479 ## the Binary Repository built using cimmofl
481 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
482 ## the Binary Repository built using cimmof
484 ## TestBinCmpRepository rule is used to run the poststarttest suite on
485 ## the Binry Compressed Repository built using cimmofl
488 ############################
492 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
493 ### the nightly tests to run
495 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
496 @ $(ECHO) TestBinRepository +++++ passed all test
499 ############################
501 ## TestBinRepositoryServer
503 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
504 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
506 ############################
508 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
510 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
511 TestBinCmpRepository: FORCE
512 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
513 @ $(ECHO) TestBinCmpRepository +++++ passed all test
516 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
518 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
519 @ $(ECHO) TestBinCmpRepository +++++ passed all test
521 TestBinCmpRepository: FORCE
522 @ $(ECHO) TestBinCmpRepository +++++ Not tested
523 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
524 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
529 ###########################
534 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
535 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
538 ###########################
540 ## TestBinStartServer
542 TestBinStartServer: FORCE
543 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
544 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
545 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
548 ###########################
552 TestBinBuildRepo: FORCE
553 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
554 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
557 ###########################
559 ## TestBinBuildRepoServ
561 TestBinBuildRepoServ: TestBinStartServer
562 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
563 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
564 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
567 ###########################
571 TestBinRepo: servertestsclean
572 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
573 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
574 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
579 ############################
581 ## TestCmpBuild - used to compile the repository for compression
584 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
585 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
586 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
589 ############################
591 ## TestRegBuild - used to compile the repository for no compression
594 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
595 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
596 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
599 ###############################################################################
601 ## Trace Configuration
603 ## Options: see usagetrace rule
605 ###############################################################################
609 $(USAGE)"TestMakefile Trace Commands: (cimserver should be running)"
612 $(USAGE)" traceon: Enables all tracing."
613 $(USAGE)" traceoff: Disables all tracing."
614 $(USAGE)" tracesettings: Displays trace settings."
615 $(USAGE)" tracecomp: Displays a trace componenets list."
616 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)]: "
617 $(USAGE)" Enables tracing on component C at trace level L."
618 $(USAGE)" Usage example:"
619 $(USAGE)" Turns tracing on for DiscardedData at level 3"
620 $(USAGE)" traceon-CL C=DiscardedData L=3"
625 @ cimconfig -s traceComponents=ALL
626 @ cimconfig -s traceLevel=3 -c
627 @ cimconfig -g traceComponents
628 @ cimconfig -g traceLevel
631 @ cimconfig -s traceComponents=
632 @ cimconfig -g traceComponents
633 @ cimconfig -g traceLevel
638 cimconfig -g traceComponents
640 cimconfig -g traceLevel
642 cimconfig -g traceFilePath
646 @ cimconfig -s traceComponents=$C -c
647 @ cimconfig -s traceLevel=$L -c
648 @ cimconfig -g traceComponents
649 @ cimconfig -g traceLevel
653 $(USAGE)"Trace component list:"
662 $(USAGE)"ProvManager"
665 $(USAGE)"OsAbstraction"
667 $(USAGE)"IndDelivery"
669 $(USAGE)"Authentication"
670 $(USAGE)"Authorization"
671 $(USAGE)"UserManager"
672 $(USAGE)"SubscriptionService"
673 $(USAGE)"Registration"
676 $(USAGE)"IndicationService"
677 $(USAGE)"IndicationServiceInternal"
678 $(USAGE)"ConfigurationManager"
679 $(USAGE)"MessageQueueService"
680 $(USAGE)"ProviderManager"
681 $(USAGE)"ObjectResolution"
685 $(USAGE)"MetaDispatcher"
687 $(USAGE)"IndicationHandlerService"
688 $(USAGE)"CIMExportRequestDispatcher"
691 $(USAGE)"ControlProvider"
692 $(USAGE)"AsyncOpNode"
693 $(USAGE)"CIMOMHandle"
694 $(USAGE)"BinaryMessageHandler"
696 $(USAGE)"ExportClient"
698 $(USAGE)"DiscardedData"
699 $(USAGE)"ProviderAgent"
702 ###############################################################################
704 ## Trace Configuration - Old rules being deprecated
707 ## XMLTraceOn: Enables XML request and response tracing.
708 ## ProviderLoadTraceOn: Enables Provider load tracing.
709 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
711 ## AllTraceOn: Enables all tracing.
712 ## AllTraceOff: Disables all tracing.
713 ## list: Lists trace settings.
715 ###############################################################################
718 cimconfig -s traceComponents=XmlIO -c
719 cimconfig -s traceLevel=3 -c
720 cimconfig -g traceComponents
721 cimconfig -g traceLevel
724 cimconfig -s traceComponents=ProvManager,OsAbstraction
725 cimconfig -s traceLevel=3 -c
726 cimconfig -g traceComponents
727 cimconfig -g traceLevel
729 XML+ProviderLoadTraceOn:
730 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
731 cimconfig -s traceLevel=3 -c
732 cimconfig -g traceComponents
733 cimconfig -g traceLevel
737 AllTraceOff: traceoff
745 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
746 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
747 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
748 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
749 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
750 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
751 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
752 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
753 @ $(ECHO) "+++++ TestMakefile standardtests complete"
756 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
757 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
758 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
761 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
762 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
765 TestClient -user guest -password guest $(system):5988
766 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
769 DeleteNamespace -a -user guest -password guest
770 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
771 TestClient -user guest -password guest $(system):5988
772 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
775 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
776 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
777 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
778 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
779 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
780 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
783 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
789 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
790 cimconfig -s enableAuthentication=false -p
791 cimconfig -s enableNamespaceAuthorization=false -p
793 EnableAuthentication:
794 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
795 cimconfig -s enableAuthentication=true -p
796 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
797 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
800 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
801 cimconfig -s enableNamespaceAuthorization=true -p
802 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
803 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
806 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
807 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
810 ifndef PEGASUS_PAM_AUTHENTICATION
811 cimuser -a -u guest -w guest
814 ConfigureAuthorizations:
815 cimauth -a -u guest -n test/cimv2 -R -W
816 cimauth -a -u guest -n root/cimv2 -R -W
817 cimauth -a -u guest -n root/PG_Internal -R -W
818 cimauth -a -u guest -n root/PG_InterOp -R -W
819 cimauth -a -u guest -n root/benchmark -R -W
820 cimauth -a -u guest -n root/sampleprovider -R -W
821 cimauth -a -u guest -n test/static -R -W
822 cimauth -a -u guest -n root/SampleProvider -R -W
823 cimauth -a -u guest -n root -R -W
824 cimauth -a -u guest -n test1 -R -W
825 cimauth -a -u guest -n test2 -R -W
826 cimauth -a -u guest -n test3 -R -W
827 cimauth -a -u guest -n test4 -R -W
828 cimauth -a -u guest -n test5 -R -W
829 cimauth -a -u guest -n test6 -R -W
830 cimauth -a -u guest -n test1/test2 -R -W
831 cimauth -a -u guest -n test1/test2/test3 -R -W
832 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
833 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
834 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
836 startcimWithoutSSL: FORCE
837 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
840 startcimWithSSL: FORCE
841 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"