(file) Return to TestMakefile CVS log (file) (dir) Up to [Pegasus] / pegasus

   1 martin 1.99 #//%LICENSE////////////////////////////////////////////////////////////////
   2 martin 1.100 #//
   3 martin 1.99  #// Licensed to The Open Group (TOG) under one or more contributor license
   4              #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
   5              #// this work for additional information regarding copyright ownership.
   6              #// Each contributor licenses this file to you under the OpenPegasus Open
   7              #// Source License; you may not use this file except in compliance with the
   8              #// License.
   9 martin 1.100 #//
  10 martin 1.99  #// Permission is hereby granted, free of charge, to any person obtaining a
  11              #// copy of this software and associated documentation files (the "Software"),
  12              #// to deal in the Software without restriction, including without limitation
  13              #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
  14              #// and/or sell copies of the Software, and to permit persons to whom the
  15              #// Software is furnished to do so, subject to the following conditions:
  16 martin 1.100 #//
  17 martin 1.99  #// The above copyright notice and this permission notice shall be included
  18              #// in all copies or substantial portions of the Software.
  19 martin 1.100 #//
  20 martin 1.99  #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21 martin 1.100 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22 martin 1.99  #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23              #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  24              #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25              #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26              #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27 martin 1.100 #//
  28 martin 1.99  #//////////////////////////////////////////////////////////////////////////
  29 kumpf  1.1   ###############################################################################
  30              ##
  31              ## Test Makefile for Pegasus CIMOM
  32              ##
  33 jim.wunderlich 1.40  ## see the usage rule for documentation of rules etc.
  34 jim.wunderlich 1.34  ##
  35                      ##
  36 kumpf          1.1   ###############################################################################
  37                      
  38 david.dillard  1.15  error:
  39 jim.wunderlich 1.40  	@ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
  40 kumpf          1.1   
  41 kumpf          1.23  include $(PEGASUS_ROOT)/mak/config.mak
  42                      include $(PEGASUS_ROOT)/mak/test.mak
  43                      include $(PEGASUS_ROOT)/mak/commands.mak
  44                      
  45                      system = localhost
  46                      
  47 jim.wunderlich 1.34  .PHONY: FORCE
  48                      
  49                      FORCE:
  50                      
  51 jim.wunderlich 1.40  usage: FORCE
  52                      	$(USAGE)
  53                      	$(USAGE)"TestMakefile Primary Targets:"
  54                      	$(USAGE)
  55                      	$(USAGE)"The following are all standalone tests. They stop and start the server,"
  56                      	$(USAGE)"and build repositories as needed."
  57                      	$(USAGE)
  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 jim.wunderlich 1.45  	$(USAGE)"perftests          - Executes a brief server performance test"
  65 jim.wunderlich 1.40  	$(USAGE)
  66                      	$(USAGE)"usage2             - usage on secondary test targets"
  67 jim.wunderlich 1.43  	$(USAGE)"usagetrace         - usage on trace targets"
  68 j.alex         1.66  	$(USAGE)"stresstests        - Execute the default stress test suite"
  69 jim.wunderlich 1.40  	$(USAGE)
  70                      
  71                      usage2: FORCE
  72                      	$(USAGE)
  73                      	$(USAGE)"TestMakefile Secondary Targets:"
  74                      	$(USAGE)
  75                      	$(USAGE)"The following are run as part of the Primary target test suites and may"
  76                      	$(USAGE)"also be invoked as standalone tests."
  77                      	$(USAGE)
  78                      	$(USAGE)"TestXMLRepository       - Executes poststarttests on XML repository"
  79                      	$(USAGE)"                          built with cimmofl."
  80 kumpf          1.101 	$(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository"
  81 jim.wunderlich 1.40  	$(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."
  90                      	$(USAGE)
  91                      	$(USAGE)"The following require the repository to be pre-built."
  92                      	$(USAGE)
  93 sushma.fernandes 1.84  	$(USAGE)"run_SSL_CBA_TS1         - Executes the Certificate based authentication test suite."
  94                        	$(USAGE)"run_SSL_IPV4_TS1        - Executes the IPv4 SSL connection test suite."
  95                        	$(USAGE)"run_SSL_IPV6_TS1        - Executes the IPv6 SSL connection test suite."
  96 jim.wunderlich   1.40  	$(USAGE)"run_OOP_TS1             - Executes the Out Of Process Provider tests"
  97 kumpf            1.46  	$(USAGE)"run_G11N_TS1            - Executes the Globalization tests"
  98 jim.wunderlich   1.40  	$(USAGE)
  99                        	$(USAGE)"The following require the repository to be pre-built and the server to be started."
 100                        	$(USAGE)
 101                        	$(USAGE)"serversuite             - the collection of test run by the servertests rule"
 102 j.alex           1.66  	$(USAGE)"run_STRESS_TS1          - Executes the stresstests"
 103 dave.sudlik      1.78  	$(USAGE)"slptests                - Executes the slptests"
 104 kumpf            1.101 	$(USAGE)"run_Cmpi_Sub            - Executes the CMPI subscription tests"
 105 jim.wunderlich   1.40  	$(USAGE)
 106 rohini.deshpande 1.112 	$(USAGE)"The following requires wseventsink to be installed on the server and is not run"
 107                        	$(USAGE)"as part of Primary target tests suites."
 108                        	$(USAGE)"run_WSMAN_TS            - Executes the WSMAN indication deliver test"
 109 jim.wunderlich   1.40  
 110                        
 111                        ##########################################################
 112                        #
 113                        # rules that are defined in Makefile
 114                        #
 115                        ##########################################################
 116 kumpf            1.21  
 117 jim.wunderlich   1.39  build: FORCE
 118                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
 119 kumpf            1.21  
 120 jim.wunderlich   1.40  world: FORCE
 121                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
 122                        
 123                        new: FORCE
 124                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
 125                        
 126 jim.wunderlich   1.39  clean: FORCE
 127 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
 128                        
 129 jim.wunderlich   1.40  depend: FORCE
 130                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
 131                        
 132 denise.eckstein  1.69  ###############################################################################
 133                        #   mak/certificate_test.mak implements three key functions for
 134                        #   testing Certificate-Based Authentication (CBA).
 135 kumpf            1.101 #
 136 denise.eckstein  1.69  #   setupCBATestCertificates is used to create a set of test certificates
 137                        #       make -f TestMakefile setupCBATestCertificates
 138                        #
 139                        #   runCBATestSuites is used to run a set of CBA tests
 140                        #       make -f TestMakefile runCBATestSuites
 141                        #
 142                        #   cleanupCBATestCertificates can be used to remove the test certificates
 143                        #       make -f TestMakefile cleanupCBATestCertificates
 144                        ###############################################################################
 145                        include $(PEGASUS_ROOT)/mak/certificate_test.mak
 146 jim.wunderlich   1.40  
 147                        ############################################################
 148                        #
 149                        # rules defined here
 150                        #
 151                        ############################################################
 152                        
 153 jim.wunderlich   1.41  ##
 154                        ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
 155                        ## are available and could be invoked directly, their direct usage is
 156                        ## discouraged in favor of invoking the cimstop and the cimstart rules
 157 kumpf            1.101 ## as this allows one place where additional checks, delays etc may be
 158 jim.wunderlich   1.41  ## added in the future to control or further test the servers performance
 159                        ## in executing these commands.
 160                        ##
 161                        
 162 jim.wunderlich   1.40  #######################
 163                        #
 164                        # doc
 165                        #
 166 kumpf            1.1   doc:
 167 mday             1.6   	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 168                        	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 169 kumpf            1.1   
 170 jim.wunderlich   1.40  
 171                        #######################
 172                        #
 173                        # repositoryServer
 174                        #
 175                        repositoryServer: FORCE
 176 kumpf            1.22  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 177 kumpf            1.19  	$(SLEEP) 5
 178 kumpf            1.90  	$(RMREPOSITORY) $(REPOSITORY_ROOT)
 179 jim.wunderlich   1.41  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
 180 kumpf            1.19  	$(SLEEP) 5
 181 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
 182                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
 183 mday             1.6   
 184 jim.wunderlich   1.40  ######################
 185                        #
 186                        # prestarttests is being deprecated since poststarttest is being deprecated
 187 kumpf            1.101 # in favor of name more related to its intended functionality.
 188 jim.wunderlich   1.40  #
 189                        prestarttests: prestarttests_msg shortsleep unittests
 190                        
 191                        prestarttests_msg: FORCE
 192                        	@$(ECHO) "=============================================================================="
 193                        	@$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
 194                        	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 195 kumpf            1.101 	@$(ECHO) "              The equivalent new rule is \"unittests\"."
 196 jim.wunderlich   1.40  	@$(ECHO) "              Invoking the \"unittests\" rule now."
 197                        	@$(ECHO) "=============================================================================="
 198                        
 199                        ####################
 200                        #
 201 kumpf            1.101 # poststarttests is being deprecated since it multiply defines a
 202 jim.wunderlich   1.40  # recursive make rule leading to ambuguity and confusion.
 203                        #
 204 kumpf            1.101 poststarttests: poststarttests_msg shortsleep servertests
 205 jim.wunderlich   1.40  
 206                        poststarttests_msg: FORCE
 207                        	@$(ECHO) "==============================================================================="
 208 kumpf            1.101 	@$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
 209 jim.wunderlich   1.40  	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 210 kumpf            1.101 	@$(ECHO) "              The equivalent new rule is \"servertests\"."
 211 jim.wunderlich   1.40  	@$(ECHO) "              Invoking the \"servertests\" rule now."
 212                        	@$(ECHO) "==============================================================================="
 213                        
 214                        #####################
 215                        #
 216 kumpf            1.101 # tests is being deprecated since it multiply defines a
 217 jim.wunderlich   1.40  # recursive make rule leading to ambuguity and confusion.
 218                        #
 219                        tests: tests_msg shortsleep alltests
 220                        
 221                        tests_msg: FORCE
 222                        	@$(ECHO) "==================================================================="
 223                        	@$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
 224                        	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 225 kumpf            1.101 	@$(ECHO) "              The equivalent new rule is \"alltests\"."
 226 jim.wunderlich   1.40  	@$(ECHO) "              Invoking the \"alltests\" rule now."
 227                        	@$(ECHO) "==================================================================="
 228                        
 229                        
 230                        shortsleep: FORCE
 231                        	@$(SLEEP) 5
 232                        
 233                        ####################
 234                        #
 235                        # unittests
 236                        #
 237                        unittests: FORCE
 238 h.sterling       1.38  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
 239 jim.wunderlich   1.40  	@ $(ECHO) "+++++ TestMakefile unittests complete"
 240                        
 241                        #####################
 242                        #
 243                        # servertests
 244                        #
 245 kumpf            1.1   
 246 jim.wunderlich   1.40  servertestsclean: FORCE
 247 jim.wunderlich   1.41  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 248 lucier           1.17  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
 249                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
 250 mday             1.6   	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
 251 jim.wunderlich   1.31  
 252 jim.wunderlich   1.40  servertestssetup: FORCE
 253 denise.eckstein  1.50  ifdef PEGASUS_HAS_SSL
 254 jim.wunderlich   1.61  #
 255 kumpf            1.101 # The association between user names and certificates is stored in the
 256 jim.wunderlich   1.61  # repository.  If the repository is recreated, we also need to re-initialize
 257 kumpf            1.101 # the trust store directories. Otherwise, the truststore content will be
 258 jim.wunderlich   1.61  # out-of-sync with the mapping stored in the repository.
 259                        #
 260 w.otsuka         1.76  #  NOTE: Tests that require their own test namespaces to run poststarttests
 261                        #  should add their namespace creation make commands to pegasus/Makefile
 262                        #  under the testrepository tag.
 263                        #
 264 denise.eckstein  1.50  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
 265                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
 266                        endif
 267 jim.wunderlich   1.40  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
 268                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
 269 denise.eckstein  1.69  	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
 270                                    cleanupCBATestCertificates
 271                        	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
 272                                    setupCBATestCertificates
 273 jim.wunderlich   1.41  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
 274 kumpf            1.19  	$(SLEEP) 5
 275 jim.wunderlich   1.61  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
 276                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 277 denise.eckstein  1.73  ifeq ($(PEGASUS_TEST_SDK),true)
 278 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples -f Makefile setupSDK
 279 denise.eckstein  1.73  endif
 280 kumpf            1.98  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
 281 denise.eckstein  1.73  
 282 dave.sudlik      1.78  # slptests are run under separate target because these testcases require that
 283                        # both the cimserver and SLP are running. There is no need for special options
 284                        # while starting cimserver.
 285                        slptests:
 286                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/slptests -f Makefile slptests
 287                        	@ $(ECHO) "+++++ TestMakefile slp test suite completed"
 288 jim.wunderlich   1.40  
 289                        servertests: servertestsclean servertestssetup serversuite
 290                        	@ $(ECHO) "+++++ TestMakefile servertests suites complete"
 291                        
 292                        serversuite: FORCE
 293 kumpf            1.98  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests -f Makefile commandtests
 294 amit99shah       1.115 ifeq ($(PEGASUS_ENABLE_SLP),true)
 295                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/srv_reg/ -f Makefile tests
 296                        endif
 297 kumpf            1.98  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
 298 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
 299 jim.wunderlich   1.33  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
 300 w.otsuka         1.76  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimsub_InterOp
 301 kumpf            1.20  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
 302 carolann.graves  1.28  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
 303 carolann.graves  1.67  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
 304                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
 305 carolann.graves  1.74  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS3
 306 denise.eckstein  1.47  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
 307 sushma.fernandes 1.84  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV4_TS1
 308                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV6_TS1
 309                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_CBA_TS1
 310 kumpf            1.46  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
 311 denise.eckstein  1.69  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
 312 denise.eckstein  1.73  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
 313 carolann.graves  1.75  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1
 314 sahana.prabhakar 1.103 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimserver_Availability
 315 rohini.deshpande 1.108 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_sslCipherSuiteTests
 316 dl.meetei        1.116 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_TLSv1_2_tests
 317 kumpf            1.87  ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
 318 s.kodali         1.85  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub
 319                        endif
 320 s.kodali         1.105 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimprovagt32tests
 321 marek            1.111 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile chgdhoststests
 322 dave.sudlik      1.88  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout1
 323                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout2
 324 venkat.puvvada   1.107 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_providerLifecycleIndicationTests
 325 dev.meetei       1.110 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimListenAddress
 326                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_interfaceRestrictionTest
 327 anusha.kandepu   1.114 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_providerReregisterTests 
 328 karl             1.118 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ENUMCTXT_TS1
 329                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ENUMCTXT_TS2
 330 kumpf            1.1   
 331 j.alex           1.66  #####################
 332                        #
 333                        # stresstests
 334                        #
 335                        stresstests:
 336                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
 337                        
 338 jim.wunderlich   1.40  ####################
 339                        #
 340 jim.wunderlich   1.45  # perftests - simple performance test until we have better
 341                        #
 342                        # - Turns statistics on (uses TestInterop until we have better)
 343 kumpf            1.81  # - runs poststarttests suite and TestBenchmark
 344 jim.wunderlich   1.45  # - runs cimperf to displat the statistics
 345 kumpf            1.101 # - turns statistics off
 346 jim.wunderlich   1.45  #
 347                        perftests: servertestsclean servertestssetup perfsuite
 348                        
 349                        perfsuite: FORCE
 350                        	$(PEGASUS_HOME)/bin/TestInterop on
 351                        	$(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
 352                        	@ $(ECHO) " "
 353                        	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
 354                        	@ $(ECHO) " "
 355 kumpf            1.81  	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestBenchmark
 356 jim.wunderlich   1.45  	@ $(ECHO) " "
 357                        	@ $(ECHO) " "
 358                        	$(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
 359                        	@ $(ECHO) " "
 360                        	$(PEGASUS_HOME)/bin/TestInterop off
 361                        
 362 jim.wunderlich   1.40  
 363                        ####################
 364                        #
 365                        # alltests
 366                        #
 367                        alltests: unittests servertests
 368 a.dunfey         1.79  ifeq ($(OS_TYPE),windows)
 369 kumpf            1.22  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 370 mday             1.6   	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 371 tony             1.5   endif
 372 jim.wunderlich   1.40  	@ $(ECHO) "+++++ TestMakefile alltests Complete"
 373 kumpf            1.1   
 374                        ###############################################################################
 375 denise.eckstein  1.18  ##  Test Suite Definitions
 376                        ###############################################################################
 377                        
 378                        ###############################################################################
 379 kumpf            1.101 ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
 380 denise.eckstein  1.18  ##
 381                        ##  Configuration Options: forceProviderProcesses=true
 382                        ##
 383 jim.wunderlich   1.54  ##  If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
 384 jim.wunderlich   1.51  ##  since tests have already been run with OOP enabled.
 385                        ##
 386                        ##
 387 denise.eckstein  1.18  ###############################################################################
 388 jim.wunderlich   1.54  ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 389 jim.wunderlich   1.52  OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 390                        else
 391 denise.eckstein  1.18  OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 392 kumpf            1.44  endif
 393 jim.wunderlich   1.51  
 394 kumpf            1.96  ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
 395                            # When privilege separation is enabled, most providers run out of process
 396                            # regardless of the forceProviderProcesses setting.  The exception is
 397                            # providers that register with UserContext = 5 (CIM Server).  The only
 398                            # case of this in the automated tests is the UserContextTestProvider.
 399                            OOP_TS1_TEST_CMDS = \
 400                                $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/UserContextTestProvider/testclient@@poststarttests
 401                        else
 402                            OOP_TS1_TEST_CMDS = \
 403                                $(MAKE)@@--directory=$(PEGASUS_ROOT)@@-f@@Makefile@@poststarttests
 404                        endif
 405 denise.eckstein  1.18  
 406                        run_OOP_TS1:
 407 denise.eckstein  1.26  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 408 denise.eckstein  1.18              CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
 409                                    TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
 410 jim.wunderlich   1.51  
 411 denise.eckstein  1.18  ###############################################################################
 412                        
 413                        ###############################################################################
 414 kumpf            1.101 ##  IndInit Test Suite 1: IndicationService Initialization Tests
 415 carolann.graves  1.28  ##
 416                        ##  Configuration Options: (none)
 417                        ##
 418                        ###############################################################################
 419 kumpf            1.101 IndInit_TS1_CONFIG_OPTIONS =
 420 carolann.graves  1.28  IndInit_TS1a_TEST_CMDS = \
 421                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
 422                        IndInit_TS1b_TEST_CMDS = \
 423                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
 424                        
 425                        run_IndInit_TS1:
 426                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 427                                    CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 428                                    TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
 429                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 430                                    CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 431                                    TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
 432                        
 433                        ###############################################################################
 434 carolann.graves  1.67  ##  OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
 435                        ##
 436                        ##  Configuration Options: forceProviderProcesses=true
 437                        ##  enableAuthentication=true, enableAuthentication=false
 438                        ##
 439                        ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 440                        ##  suite is always run with OOP enabled.  This test suite causes a provider to
 441                        ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 442                        ##  to exit and the test suite to fail.
 443                        ##
 444                        ##  NOTE: The test is run once with authentication enabled, and once without
 445                        ##  authentication enabled.
 446                        ##
 447                        ###############################################################################
 448 venkat.puvvada   1.104 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true maxFailedProviderModuleRestarts=0
 449                        OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false maxFailedProviderModuleRestarts=0
 450 carolann.graves  1.67  OOPProvFail_TS1_TEST_CMDS = \
 451                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
 452                        
 453 carolann.graves  1.68  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 454 carolann.graves  1.67  run_OOPProvFail_TS1:
 455                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 456                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
 457                                    TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 458                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 459                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
 460                                    TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 461 carolann.graves  1.68  else
 462                        run_OOPProvFail_TS1: FORCE
 463                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
 464                        endif
 465 carolann.graves  1.67  
 466                        ###############################################################################
 467 kumpf            1.101 ##  OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
 468 carolann.graves  1.67  ##                            Initialization Tests
 469                        ##
 470                        ##  Configuration Options: forceProviderProcesses=true
 471                        ##                         enableAuthentication=true
 472                        ##
 473                        ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 474                        ##  suite is always run with OOP enabled.  This test suite causes a provider to
 475                        ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 476                        ##  to exit and the test suite to fail.
 477                        ##
 478                        ###############################################################################
 479                        OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 480                        OOPProvFail_TS2a_TEST_CMDS = \
 481                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
 482                        OOPProvFail_TS2b_TEST_CMDS = \
 483                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
 484                        
 485 carolann.graves  1.68  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 486 carolann.graves  1.67  run_OOPProvFail_TS2:
 487                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 488                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 489                                    TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
 490                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 491                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 492                                    TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
 493 carolann.graves  1.68  else
 494                        run_OOPProvFail_TS2: FORCE
 495                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
 496                        endif
 497 carolann.graves  1.67  
 498                        ###############################################################################
 499 carolann.graves  1.74  ##  OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
 500                        ##                            Tests
 501                        ##
 502                        ##  Configuration Options: forceProviderProcesses=true
 503                        ##                         enableAuthentication=true
 504                        ##
 505                        ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 506                        ##  suite is always run with OOP enabled.  This test suite causes a provider to
 507                        ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 508                        ##  to exit and the test suite to fail.
 509                        ##
 510                        ###############################################################################
 511 venkat.puvvada   1.104 OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true maxFailedProviderModuleRestarts=0
 512 carolann.graves  1.74  OOPProvFail_TS3a_TEST_CMDS = \
 513                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
 514                        OOPProvFail_TS3b_TEST_CMDS = \
 515                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
 516                        
 517                        ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 518                        run_OOPProvFail_TS3:
 519                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 520                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 521                                    TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
 522                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 523                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 524                                    TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
 525                        else
 526                        run_OOPProvFail_TS3: FORCE
 527                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
 528                        endif
 529                        
 530                        ###############################################################################
 531 denise.eckstein  1.47  ##  Indication SSL Test Suite 1: Indication Testing over HTTPS
 532                        ##
 533                        ##  Configuration Options: (none)
 534                        ##
 535                        ###############################################################################
 536 denise.eckstein  1.50  INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 537 denise.eckstein  1.47  INDSSL_TS1a_TEST_CMDS = \
 538 denise.eckstein  1.50  	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
 539                        
 540                        INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
 541 denise.eckstein  1.47  INDSSL_TS1b_TEST_CMDS = \
 542 denise.eckstein  1.50  	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
 543                        
 544 denise.eckstein  1.47  
 545                        ifdef PEGASUS_HAS_SSL
 546 jim.wunderlich   1.53  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 547 jim.wunderlich   1.61  run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
 548 denise.eckstein  1.47  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 549 denise.eckstein  1.50              CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
 550 denise.eckstein  1.47              TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
 551                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 552 denise.eckstein  1.50              CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
 553 denise.eckstein  1.47              TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
 554                        else
 555                        run_INDSSL_TS1: FORCE
 556 jim.wunderlich   1.53  	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"	
 557                        endif
 558                        else
 559                        run_INDSSL_TS1: FORCE
 560                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
 561 denise.eckstein  1.47  endif
 562                        
 563                        
 564                        ###############################################################################
 565 rohini.deshpande 1.112 ##  WSMAN Indication test suite : WSMAN Indication Testing over HTTPS
 566                        ##
 567                        ##  Configuration Options:  (none for cimserver)
 568                        ##     wsevensink should be installed as the wsman listner.
 569                        ##
 570 rohini.deshpande 1.113 ##  There is no WSMAN listner in OP as of now. Therefore, wseventsink of
 571                        ##  openwsman is used. This is available only on Linux. On other OSes, the
 572                        ##  destination of the subcription/indication should be changed to a Linux
 573                        ##  system where wseventsink is running.
 574                        ##  Once we have a wsman listner in OP we include this test in Nigthly tests.
 575                        ##  As of now, this has to be run explicitly. 
 576                        ##
 577 rohini.deshpande 1.112 ###############################################################################
 578 rohini.deshpande 1.113 ifeq ($(OS),linux) 
 579 rohini.deshpande 1.112 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
 580                        INDWSMAN_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 581                        INDWSMAN_TS1a_TEST_CMDS = \
 582                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationTestProvider/wsmanTestClient@@-f@@Makefile@@runWSMANtests
 583                        
 584                        run_WSMAN_TS: FORCE
 585                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 586                                    CIMSERVER_CONFIG_OPTIONS="$(INDWSMAN_CONFIG_OPTIONS)" \
 587                                    TESTSUITE_CMDS="$(INDWSMAN_TS1a_TEST_CMDS)"
 588                        endif
 589                        endif
 590                        
 591                        ###############################################################################
 592 kumpf            1.101 
 593 denise.eckstein  1.47  ###############################################################################
 594 sushma.fernandes 1.84  ##  SSL IPv4 Test Suite : Tests SSL connections for IPv4
 595                        ##
 596                        ##  Configuration Options: enableHttpsConnection=true
 597                        ##  NOTE : Authentication is not enabled as we are only verifying
 598                        ##         if SSL based IPv6 connections are working correctly. The osinfo
 599                        ##         client requires a password to be passed for a remote connection
 600 kumpf            1.101 ##         otherwise it will prompt for one. As a work around,
 601                        ##         we are providing a dummy password.
 602 sushma.fernandes 1.84  ##
 603                        ###############################################################################
 604 ouyang.jian      1.91  SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
 605                              enableAuthentication=false
 606 sushma.fernandes 1.84  SSL_IPV4_TS1_CMD_1 = \
 607                                osinfo -s -w notapassword -h 127.0.0.1 -p 5989
 608                        SSL_IPV4_TS1_CMD_2 = \
 609                                osinfo -s -w notapassword -h localhost -p 5989
 610                        
 611                        ifdef PEGASUS_HAS_SSL
 612                            run_SSL_IPV4_TS1: FORCE
 613                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 614                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 615                                    TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
 616                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 617                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 618                                    TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
 619                        else
 620                            run_SSL_IPV4_TS1: FORCE
 621                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
 622                        endif
 623                        
 624                        ###############################################################################
 625                        ##  SSL IPv6 Test Suite : Tests SSL connections for IPv6
 626                        ##
 627 sushma.fernandes 1.84  ##  Configuration Options: enableHttpsConnection=true
 628                        ##  NOTE : Authentication is not enabled as we are only verifying
 629                        ##         if SSL based IPv6 connections are working correctly. The osinfo
 630                        ##         client requires a password to be passed for a remote connection
 631                        ##         otherwise it will prompt for one. As a work around,
 632 kumpf            1.101 ##         we are providing a dummy password.
 633 sushma.fernandes 1.84  ##
 634 sushma.fernandes 1.86  ##         The IPv4-mapped IPv6 address test is only enabled for unix
 635                        ##         platforms as Windows does not support IPv4-mapped IPv6 addresses
 636 kumpf            1.101 ##         on certain versions.
 637 sushma.fernandes 1.86  ##
 638 sushma.fernandes 1.84  ###############################################################################
 639 ouyang.jian      1.91  SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
 640                              enableAuthentication=false
 641 sushma.fernandes 1.84  SSL_IPV6_TS1_CMD_1 = \
 642                                osinfo -s -w notapassword -h ::1 -p 5989
 643                        SSL_IPV6_TS1_CMD_2 = \
 644                                osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
 645                        
 646                        ifdef PEGASUS_HAS_SSL
 647                            run_SSL_IPV6_TS1: FORCE
 648                            ifeq ($(PEGASUS_TEST_IPV6), true)
 649                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 650                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 651                                    TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
 652 sushma.fernandes 1.86        ifeq ($(OS_TYPE), unix)
 653 sushma.fernandes 1.84  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 654                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 655                                    TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
 656 sushma.fernandes 1.86        endif
 657 sushma.fernandes 1.84      else
 658                        	@ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
 659                            endif
 660                        else
 661                            run_SSL_IPV6_TS1: FORCE
 662                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
 663                        endif
 664                        
 665                        ###############################################################################
 666                        ##  CBA SSL Test Suite 1: Certificate based authentication Tests
 667 nag.boranna      1.27  ##
 668                        ##  Configuration Options: enableAuthentication=true
 669                        ##                         enableHttpsConnection=true
 670                        ##                         sslClientVerificationMode=optional
 671                        ##                         sslTrustStoreUserName=$(CURRENT_USER)
 672                        ##
 673                        ###############################################################################
 674 sushma.fernandes 1.84  SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
 675 nag.boranna      1.27         sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
 676 sushma.fernandes 1.84  SSL_CBA_TS1_TEST_CMD_1 = \
 677 sushma.fernandes 1.71         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
 678 sushma.fernandes 1.84  SSL_CBA_TS1_TEST_CMD_2 = \
 679 sushma.fernandes 1.72         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
 680 nag.boranna      1.27  
 681 jim.wunderlich   1.39  ifdef PEGASUS_HAS_SSL
 682 jim.wunderlich   1.53  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 683 sushma.fernandes 1.84  run_SSL_CBA_TS1: FORCE
 684 nag.boranna      1.27  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 685 sushma.fernandes 1.84              CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 686                                    TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
 687 sushma.fernandes 1.72  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 688 sushma.fernandes 1.84              CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 689                                    TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
 690 jim.wunderlich   1.39  else
 691 sushma.fernandes 1.84  run_SSL_CBA_TS1: FORCE
 692                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"	
 693 jim.wunderlich   1.53  endif
 694                        else
 695 sushma.fernandes 1.84  run_SSL_CBA_TS1: FORCE
 696                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
 697 jim.wunderlich   1.39  
 698                        endif
 699                        
 700 jim.wunderlich   1.61  ############################################################################
 701 kumpf            1.101 #
 702 jim.wunderlich   1.61  # Create_SSL_Certificate
 703                        #
 704                        # create a certificate that can be used for certification testing.
 705                        # It is currently used by the following tests:
 706                        #            -run_INDSSL_TS1
 707                        #
 708                        Create_SSL_Certificate_ignore: FORCE
 709                        	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 710                        
 711                        Create_SSL_Certificate: FORCE
 712                        ifdef PEGASUS_HAS_SSL
 713                        ifdef PEGASUS_TEST_USER_DEFINED
 714                        	$(ECHO) "Creating SSL certificate for test"
 715 sushma.fernandes 1.71  	cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
 716 jim.wunderlich   1.61  endif
 717                        else
 718                        	$(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
 719                        endif
 720                        
 721 rohini.deshpande 1.108 ############################################################################
 722                        ##
 723                        ##  run_sslCipherSuiteTests
 724                        ##
 725                        ##  Configuration Options: enableHttpsConnection=true
 726                        ##                         sslCipherSuite=HIGH
 727                        ##
 728                        ############################################################################
 729                        
 730 dl.meetei        1.116 SSL_CIPHER_SUITE_TEST_CONFIG_OPTIONS= enableHttpsConnection=true sslCipherSuite=HIGH
 731 rohini.deshpande 1.108 SSL_CIPHER_SUITE_TEST_CMDS= \
 732                        	$(MAKE)@@--directory \
 733                                    $(PEGASUS_ROOT)/src/Pegasus/Client/tests/SSLCipherVerification/ \
 734                                    -f@@Makefile@@sslCipherSuiteTests
 735                        
 736                        ifdef PEGASUS_HAS_SSL
 737                        run_sslCipherSuiteTests:
 738                        	@$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 739                                     CIMSERVER_CONFIG_OPTIONS="$(SSL_CIPHER_SUITE_TEST_CONFIG_OPTIONS)" \
 740                                     TESTSUITE_CMDS="$(SSL_CIPHER_SUITE_TEST_CMDS)"
 741                        else
 742                        run_sslCipherSuiteTests: FORCE
 743                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_sslCipherSuiteTests"
 744                        endif
 745                        
 746                        
 747 kumpf            1.46  ###############################################################################
 748 kumpf            1.101 ##  G11N Test Suite 1: Globalization Tests
 749 kumpf            1.46  ##
 750                        ##  Configuration Options: forceProviderProcesses=false
 751                        ##
 752                        ###############################################################################
 753                        G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 754                        G11N_TS1_TEST_CMDS = \
 755                                $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
 756                                    -f Makefile g11ntest
 757                        
 758                        run_G11N_TS1:
 759                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 760                                    CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
 761                                    TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
 762 j.alex           1.66  
 763                        ###############################################################################
 764                        ##  Stress Test Suite 1:  Default Stress Tests
 765                        ##
 766                        ##  Configuration Options: (none)
 767                        ##
 768                        ###############################################################################
 769                        STRESS_TS1_CONFIG_OPTIONS =
 770                        STRESS_TS1_TEST_CMDS = \
 771                                TestStressTestController
 772                        
 773                        run_STRESS_TS1:
 774                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 775                                    CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
 776                                    TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
 777 kumpf            1.46  ###############################################################################
 778                        
 779 denise.eckstein  1.73  ###############################################################################
 780                        ##  SDK Test Suite 1:  SDK Tests
 781                        ##
 782                        ##  Configuration Options: (none)
 783                        ##
 784                        ###############################################################################
 785                        SDK_TS1_CONFIG_OPTIONS =
 786                        SDK_TS1_TEST_CMDS = \
 787                                $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
 788 kumpf            1.101             -f Makefile testSDK
 789 denise.eckstein  1.73  
 790                        ifeq ($(PEGASUS_TEST_SDK),true)
 791                        run_SDK_TS1: FORCE
 792                        	$(MAKE) --directory=$(PEGASUS_ROOT)/mak \
 793                                    -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
 794                                    PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
 795                                    PEGASUS_INCLUDE_DIR=/include
 796                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 797                                    -f Makefile clean
 798                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 799                                    -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
 800                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 801                                    CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
 802                                    TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
 803                        else
 804                        run_SDK_TS1: FORCE
 805                        	@ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"	
 806                        endif
 807                        ###############################################################################
 808 jim.wunderlich   1.39  
 809 nag.boranna      1.27  ###############################################################################
 810 carolann.graves  1.75  ##  Export Client SSL Test Suite 1:
 811                        ##
 812                        ##  Configuration Options: enableHttpsConnection=true
 813                        ##
 814                        ###############################################################################
 815                        ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
 816                        ExportClientSSL_TS1_TEST_CMDS = \
 817                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
 818                        
 819                        ifdef PEGASUS_HAS_SSL
 820                        run_ExportClientSSL_TS1:
 821                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 822                                    CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
 823                                    TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
 824                        else
 825                        run_ExportClientSSL_TS1: FORCE
 826                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
 827                        endif
 828                        
 829                        ###############################################################################
 830 nag.boranna      1.27  
 831 jim.wunderlich   1.34  
 832 dl.meetei        1.116 ###############################################################################
 833                        ##  TLS v 1.2 support test as per NIST 800-131a
 834                        ##
 835                        ##  Configuration Options: enableHttpsConnection=true sslCipherSuite = TLSv1.2
 836                        ##
 837                        ###############################################################################
 838                        TLS_1_2_SUPPORT_CONFIG = enableHttpsConnection=true sslCipherSuite=TLSv1.2
 839                        TLSv1_2_support_tests = \
 840                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests/TLSv_1_2_Support@@-f@@Makefile@@test_TLSv1_2
 841                        
 842                        ifdef PEGASUS_HAS_SSL
 843                        run_TLSv1_2_tests:
 844                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 845                                    CIMSERVER_CONFIG_OPTIONS="$(TLS_1_2_SUPPORT_CONFIG)" \
 846                                    TESTSUITE_CMDS="$(TLSv1_2_support_tests)"
 847                        else
 848                        run_TLSv1_2_tests: FORCE
 849                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping TLSv 1.2 support tests"
 850                        endif
 851                        
 852                        ###############################################################################
 853 dl.meetei        1.116 
 854 jim.wunderlich   1.34  
 855 w.otsuka         1.76  ###############################################################################
 856 dave.sudlik      1.88  ##  idleConnectionTimeout Test Suite 1:  uses ChunkingStressProvider Tests
 857                        ##
 858 dave.sudlik      1.89  ##  Configuration Options: idleConnectionTime=55
 859 dave.sudlik      1.88  ##
 860                        ###############################################################################
 861 dave.sudlik      1.89  IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS = idleConnectionTimeout=55
 862 dave.sudlik      1.88  IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS = \
 863                        	$(MAKE)@@--directory \
 864                                    $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \
 865                                    -f@@Makefile@@poststarttests
 866 karl             1.118 
 867 dave.sudlik      1.88  run_idleConnectionTimeout1: FORCE
 868                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 869                                    CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \
 870                                    TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS)"
 871                        ###############################################################################
 872                        
 873                        ###############################################################################
 874                        ##  idleConnectionTimeout Test Suite 2:  uses IdleConnectionTimeout client test
 875                        ##
 876                        ##  Configuration Options: idleConnectionTime=6
 877                        ##
 878                        ###############################################################################
 879                        IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS = idleConnectionTimeout=6
 880                        IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS = \
 881                        	$(MAKE)@@--directory \
 882                                    $(PEGASUS_ROOT)/src/Pegasus/Client/tests/IdleConnectionTimeout/ \
 883                                    -f@@Makefile@@timeoutTest@@IDLETIME=10
 884                        run_idleConnectionTimeout2: FORCE
 885                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 886                                    CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS)" \
 887                                    TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS)"
 888 dave.sudlik      1.88  ###############################################################################
 889                        
 890 sahana.prabhakar 1.103 ###############################################################################
 891                        ##  cimserver thread limit test:
 892                        ##
 893                        ##  Configuration Options: none
 894                        ##
 895                        ###############################################################################
 896                        CIMSERVER_THREAD_LIMIT_TEST_CONFIG_OPTIONS = forceProviderProcesses=true
 897                        CIMSERVER_THREAD_LIMIT_TEST_CMDS = \
 898                               $(MAKE)@@--directory \
 899                                    $(PEGASUS_ROOT)/src/Providers/TestProviders/FaultyInstanceProvider/testclient \
 900                                    -f@@Makefile@@runAvailabilityTest
 901                        run_Cimserver_Availability: FORCE
 902                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 903                                    CIMSERVER_CONFIG_OPTIONS="$(CIMSERVER_THREAD_LIMIT_TEST_CONFIG_OPTIONS)" \
 904                                    TESTSUITE_CMDS="$(CIMSERVER_THREAD_LIMIT_TEST_CMDS)"
 905                        ###############################################################################
 906 dave.sudlik      1.88  
 907                        ###############################################################################
 908 w.otsuka         1.76  ##  cimsub CLI Test Suite 1:  PG_InterOp Tests
 909                        ##
 910                        ##  Configuration Options: (none)
 911                        ##
 912                        ###############################################################################
 913                        CIMSUB_INTEROP_CONFIG_OPTIONS =
 914                        CIMSUB_INTEROP_TEST_CMDS = \
 915                        	$(MAKE) --directory \
 916                                    $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
 917                                    -f Makefile cimsubTest_InterOp
 918                        run_Cimsub_InterOp: FORCE
 919                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 920                                    CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
 921                                    TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
 922                        ###############################################################################
 923                        
 924                        ###############################################################################
 925 s.kodali         1.85  ## CMPI subscription activation Test Suite 1:
 926                        ##
 927                        ## Configuration Options: (none)
 928                        ##
 929                        ###############################################################################
 930                        CMPI_SUB_TEST_CONFIG_OPTIONS=
 931                        CMPI_SUBa_TEST_CMDS = \
 932                        	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
 933                        CMPI_SUBb_TEST_CMDS = \
 934                        	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
 935                        CMPI_SUBc_TEST_CMDS =  \
 936                        	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
 937                        run_Cmpi_Sub: FORCE
 938                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 939                                    CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 940                                    TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
 941                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 942                                    CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 943                                    TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
 944                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 945                                    CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 946 s.kodali         1.85              TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
 947 kumpf            1.101 
 948 s.kodali         1.85  ##############################################################################
 949 w.otsuka         1.76  
 950 karl             1.118 ###############################################################################
 951                        ##  EnumerationContext Black Box test 1
 952                        ##
 953                        ##  Configuration Options: Run with trace on and at least EnumContext compent
 954                        ##                         set.  Trace output used to diagnose results
 955                        ##                         Run with forceProviderProcesses=true
 956                        ##  Runs a test of pull operations and tests the trace output to determine if
 957                        ##  it includes an equal number of create and remove trace entries indicating
 958                        ##  that all enumerations contexts completed. Note that today the code that
 959                        ##  tests the trace results is a sh script and grep so this runs only on
 960                        ##  systems that have these tools
 961                        ##  This test was added in OpenPegasus 2.14 when the pull operations were 
 962                        ##  added
 963                        ##
 964                        ###############################################################################
 965                        ENUMCTXT_TS1_CONFIG_OPTIONS = traceComponents=EnumContext traceLevel=4 forceProviderProcesses=true
 966                        
 967                        ENUMCTXT_TS1A_TEST_CMDS = \
 968                        	$(MAKE)@@--directory \
 969                                    $(PEGASUS_ROOT)/src/Pegasus/Client/tests/pullop -f@@Makefile poststarttests
 970                        
 971 karl             1.118 ENUMCTXT_TS1B_TEST_CMDS = \
 972                        	$(MAKE)@@--directory \
 973                                    $(PEGASUS_ROOT)/src/Pegasus/Client/tests/PullErrors -f@@Makefile poststarttests
 974                        
 975                        ENUMCTXT_POSTTEST_CMD = $(PEGASUS_ROOT)/src/Pegasus/Client/tests/pullop/testContextTraceOutput
 976                        
 977                        run_ENUMCTXT_TS1:
 978                        ifeq ($(findstring LINUX_, $(PEGASUS_PLATFORM)), LINUX_)
 979                        	$(RM) $(PEGASUS_HOME)/trace/*
 980                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 981                                    CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS1_CONFIG_OPTIONS)" \
 982                                    TESTSUITE_CMDS="$(ENUMCTXT_TS1A_TEST_CMDS)"
 983                        	$(ENUMCTXT_POSTTEST_CMDS)
 984                        
 985                        	$(RM) $(PEGASUS_HOME)/trace/*
 986                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 987                                    CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS1_CONFIG_OPTIONS)" \
 988                                    TESTSUITE_CMDS="$(ENUMCTXT_TS1B_TEST_CMDS)"
 989                        	$(ENUMCTXT_POSTTEST_CMD)
 990                        else
 991                        	@ $(ECHO) "+++++ run_ENUMCTXT_TS1 runs only in certain environments"
 992 karl             1.118 endif
 993                        ###############################################################################
 994                        
 995                        ###############################################################################
 996                        ##  EnumerationContext Black Box test 2
 997                        ##  Parallel to ENUMCTXT_TS1 except with forceProviderProcesses=false
 998                        ##
 999                        ###############################################################################
1000                        ENUMCTXT_TS2_CONFIG_OPTIONS = traceComponents=EnumContext traceLevel=4 forceProviderProcesses=false
1001                        
1002                        ## uses the test commands from run_ENUMCTXT_TS1
1003                        
1004                        run_ENUMCTXT_TS2:
1005                        ifeq ($(findstring LINUX_, $(PEGASUS_PLATFORM)), LINUX_)
1006                        	$(RM) $(PEGASUS_HOME)/trace/*
1007                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
1008                                    CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS2_CONFIG_OPTIONS)" \
1009                                    TESTSUITE_CMDS="$(ENUMCTXT_TS1A_TEST_CMDS)"
1010                        	$(ENUMCTXT_POSTTEST_CMDS)
1011                        
1012                        	$(RM) $(PEGASUS_HOME)/trace/*
1013 karl             1.118 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
1014                                    CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS2_CONFIG_OPTIONS)" \
1015                                    TESTSUITE_CMDS="$(ENUMCTXT_TS1B_TEST_CMDS)"
1016                        	$(ENUMCTXT_POSTTEST_CMD)
1017                        else
1018                        	@ $(ECHO) "+++++ run_ENUMCTXT_TS1 runs only in certain environments"
1019                        endif
1020                        ###############################################################################
1021 w.otsuka         1.76  
1022 s.kodali         1.105 #############################################################################
1023                        ##
1024                        ## 32-bit provider tests on 64-bit CIMServer
1025                        ##
1026                        #############################################################################
1027                        
1028                        TEST_32BIT_CONFIG_OPTIONS = providerDir=lib32:lib
1029                        TEST_32BIT_CMDS = \
1030                               $(MAKE)@@--directory \
1031                                    $(PEGASUS_ROOT)/src/Providers/TestProviders -f@@Makefile.cimprovagt32tests@@cimprovagt32tests
1032                        cimprovagt32tests: FORCE
1033 venkat.puvvada   1.106 ifdef PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT
1034 s.kodali         1.105 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
1035                                    CIMSERVER_CONFIG_OPTIONS="$(TEST_32BIT_CONFIG_OPTIONS)" \
1036                                    TESTSUITE_CMDS="$(TEST_32BIT_CMDS)"
1037 venkat.puvvada   1.106 else
1038                        	@$(ECHO) "PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT not defined, skipping 32-bit tests..."
1039                        endif
1040 s.kodali         1.105 
1041 marek            1.111 #############################################################################
1042                        ##
1043                        ## CIMServer with overridden hostnames testing
1044                        ##
1045                        #############################################################################
1046                        
1047                        TEST_CHGD_HOSTS_OPTIONS = "hostname=hugo fullyQualifiedHostName=hugo.bert"
1048                        TEST_CHGD_HOSTS_CMDS = \
1049                               $(MAKE)@@--directory \
1050                                    $(PEGASUS_ROOT)/src/Pegasus/Config/tests/ChgdHosts@@chgdhoststest
1051                        chgdhoststests: FORCE
1052                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
1053                                    CIMSERVER_CONFIG_OPTIONS=$(TEST_CHGD_HOSTS_OPTIONS) \
1054                                    TESTSUITE_CMDS="$(TEST_CHGD_HOSTS_CMDS)"
1055                        
1056 venkat.puvvada   1.107 
1057                        #############################################################################
1058                        ##
1059                        ## provider lifecycle indications tests
1060                        ##
1061                        #############################################################################
1062                        run_providerLifecycleIndicationTests: FORCE
1063                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile setupLogFile
1064                        	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1065                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="forceProviderProcesses=true maxFailedProviderModuleRestarts=1"
1066                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile createPLISubscription
1067                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1068                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="forceProviderProcesses=true maxFailedProviderModuleRestarts=1"
1069                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile testPLI
1070                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile deletePLISubscription
1071                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1072                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile testLogFile
1073                        
1074 dev.meetei       1.110 
1075                        #############################################################################
1076 anusha.kandepu   1.114 #
1077                        # Provider reregistration tests.
1078                        #
1079                        ##############################################################################
1080                        run_providerReregisterTests:FORCE
1081                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1082                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1083                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient -f Makefile createSubscriptions
1084                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1085                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1086                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient -f Makefile reregister_providerTests
1087                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1088                        	
1089                        
1090                        #############################################################################
1091 dev.meetei       1.110 ##
1092                        ## Network Interface restriction tests
1093                        ##
1094                        ##  Configuration Options: enableHttpsConnection=true
1095                        ##                         enableHttpConnection=true
1096                        ##                         listenAddress=x.y.x.z
1097                        ##
1098                        #############################################################################
1099                        startcimListenAddress: FORCE
1100                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=true enableHttpsConnection=true listenAddress=::1,127.0.0.1"
1101                        	$(SLEEP) 5
1102                        
1103                        
1104                        
1105 dl.meetei        1.117 #Hardcoding the addess 127.0.0.1,
1106                        RESTRICT_INTRFC_TEST_CONFIG_OPTIONS= enableHttpConnection=true enableHttpsConnection=true listenAddress=127.0.0.1
1107 dev.meetei       1.110 RESTRICT_INTRFC_TEST_CMDS=$(MAKE)@@--directory $(PEGASUS_ROOT)/src/Pegasus/Server/tests/InterfaceRestriction@@-f@@Makefile@@RestrictionTest
1108                        
1109                        run_interfaceRestrictionTest:FORCE
1110                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
1111                        	    CIMSERVER_CONFIG_OPTIONS="$(RESTRICT_INTRFC_TEST_CONFIG_OPTIONS)" \
1112                        	    TESTSUITE_CMDS="$(RESTRICT_INTRFC_TEST_CMDS)"
1113 dl.meetei        1.117 
1114 dev.meetei       1.110 
1115 jim.wunderlich   1.34  ##############################################################################
1116                        ##
1117                        ## TestXMLRepository rule is used to run the poststarttests suite on
1118                        ## the XML Repository built using cimmofl
1119                        ##
1120                        ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
1121                        ## the XML Repository built using cimmof
1122                        ##
1123 kumpf            1.101 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
1124 jim.wunderlich   1.34  ## the XML Compressed Repository built using cimmofl
1125                        ##
1126                        
1127                        ############################
1128                        ##
1129                        ## TestXMLRepository
1130                        ##
1131                        
1132                        TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
1133                        	@ $(ECHO) TestXMLRepository +++++ passed all test
1134                        
1135                        ############################
1136                        ##
1137                        ## TestXMLRepositoryServer
1138                        ##
1139                        TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
1140                        	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
1141                        
1142                        ############################
1143                        ##
1144                        ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
1145 jim.wunderlich   1.34  ##
1146                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
1147                        TestXMLCmpRepository: FORCE
1148                        	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
1149                        	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
1150                        else
1151                        
1152                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
1153                        
1154                        TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
1155                        	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
1156                        else
1157                        TestXMLCmpRepository: FORCE
1158 kumpf            1.101 	@ $(ECHO) TestXMLCmpRepository +++++ Not tested
1159 jim.wunderlich   1.34  	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
1160 kumpf            1.101 	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
1161 jim.wunderlich   1.34  endif
1162                        endif
1163                        
1164                        ###########################
1165                        ##
1166                        ## TestXMLClean
1167                        ##
1168                        TestXMLClean: FORCE
1169 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1170 jim.wunderlich   1.34  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
1171                        
1172                        
1173                        ###########################
1174                        ##
1175                        ## TestXMLStartServer
1176                        ##
1177                        TestXMLStartServer: FORCE
1178                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
1179                        	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
1180                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
1181                        	$(SLEEP) 5
1182                        
1183                        ####
1184                        #### The following caused the cimserver to fail on startup
1185                        ####
1186                        ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
1187                        
1188                        ###########################
1189                        ##
1190                        ## TestXMLBuildRepo
1191 jim.wunderlich   1.34  ##
1192                        TestXMLBuildRepo: FORCE
1193                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1194                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1195                        
1196                        
1197                        ###########################
1198                        ##
1199                        ## TestXMLBuildRepoServ
1200                        ##
1201                        TestXMLBuildRepoServ: TestXMLStartServer
1202                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1203                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1204 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1205 jim.wunderlich   1.34  
1206                        
1207                        ###########################
1208                        ##
1209                        ## TestXMLRepo
1210                        ##
1211 jim.wunderlich   1.40  TestXMLRepo: servertestsclean
1212 jim.wunderlich   1.35  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
1213 jim.wunderlich   1.34  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1214 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1215 jim.wunderlich   1.34  
1216                        
1217                        
1218                        
1219                        
1220                        
1221 jim.wunderlich   1.29  ##############################################################################
1222                        ##
1223 jim.wunderlich   1.31  ## TestBinRepository rule is used to run the poststarttests suite on
1224 jim.wunderlich   1.33  ## the Binary Repository built using cimmofl
1225 jim.wunderlich   1.29  ##
1226 jim.wunderlich   1.31  ## TestBinRepositoryServer rule is used to run the poststarttests suite on
1227 jim.wunderlich   1.33  ## the Binary Repository built using cimmof
1228                        ##
1229 kumpf            1.101 ## TestBinCmpRepository rule is used to run the poststarttest suite on
1230 jim.wunderlich   1.33  ## the Binry Compressed Repository built using cimmofl
1231 jim.wunderlich   1.29  ##
1232 jim.wunderlich   1.31  
1233                        ############################
1234 jim.wunderlich   1.29  ##
1235 jim.wunderlich   1.31  ## TestBinRepository
1236 jim.wunderlich   1.29  ##
1237 jim.wunderlich   1.33  ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
1238                        ### the nightly tests to run
1239                        
1240 jim.wunderlich   1.31  TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
1241 jim.wunderlich   1.33  	@ $(ECHO) TestBinRepository +++++ passed all test
1242 jim.wunderlich   1.36  
1243 jim.wunderlich   1.29  
1244 jim.wunderlich   1.31  ############################
1245                        ##
1246                        ## TestBinRepositoryServer
1247                        ##
1248                        TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
1249 jim.wunderlich   1.33  	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
1250                        
1251                        ############################
1252                        ##
1253                        ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
1254                        ##
1255                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
1256 jim.wunderlich   1.34  TestBinCmpRepository: FORCE
1257 jim.wunderlich   1.33  	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
1258                        	@ $(ECHO) TestBinCmpRepository +++++ passed all test
1259                        else
1260                        
1261                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
1262                        
1263 jim.wunderlich   1.34  TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
1264 jim.wunderlich   1.33  	@ $(ECHO) TestBinCmpRepository +++++ passed all test
1265                        else
1266 jim.wunderlich   1.34  TestBinCmpRepository: FORCE
1267 kumpf            1.101 	@ $(ECHO) TestBinCmpRepository +++++ Not tested
1268 jim.wunderlich   1.33  	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
1269 kumpf            1.101 	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
1270 jim.wunderlich   1.33  endif
1271                        endif
1272                        
1273                        
1274 jim.wunderlich   1.31  ###########################
1275                        ##
1276                        ## TestBinClean
1277                        ##
1278 jim.wunderlich   1.34  TestBinClean: FORCE
1279 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1280 jim.wunderlich   1.31  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
1281 jim.wunderlich   1.29  
1282 jim.wunderlich   1.31  
1283                        ###########################
1284 jim.wunderlich   1.29  ##
1285 jim.wunderlich   1.31  ## TestBinStartServer
1286 jim.wunderlich   1.29  ##
1287 jim.wunderlich   1.34  TestBinStartServer: FORCE
1288 jim.wunderlich   1.30  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
1289 jim.wunderlich   1.31  	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
1290                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
1291 jim.wunderlich   1.29  	$(SLEEP) 5
1292 jim.wunderlich   1.31  
1293                        ###########################
1294 jim.wunderlich   1.29  ##
1295 jim.wunderlich   1.31  ## TestBinBuildRepo
1296 jim.wunderlich   1.29  ##
1297 jim.wunderlich   1.34  TestBinBuildRepo: FORCE
1298 jim.wunderlich   1.29  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1299                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1300 jim.wunderlich   1.31  
1301                        
1302                        ###########################
1303                        ##
1304                        ## TestBinBuildRepoServ
1305                        ##
1306                        TestBinBuildRepoServ: TestBinStartServer
1307                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1308                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1309 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1310 jim.wunderlich   1.31  
1311                        
1312                        ###########################
1313                        ##
1314                        ## TestBinRepo
1315                        ##
1316 kumpf            1.101 TestBinRepo: servertestsclean
1317 jim.wunderlich   1.35  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
1318 jim.wunderlich   1.29  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1319 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1320 jim.wunderlich   1.29  
1321                        
1322                        
1323 jim.wunderlich   1.34  
1324                        ############################
1325                        ##
1326                        ## TestCmpBuild - used to compile the repository for compression
1327                        ##
1328                        TestCmpBuild: FORCE
1329                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1330                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1331                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1332                        
1333                        
1334                        ############################
1335                        ##
1336                        ## TestRegBuild - used to compile the repository for no compression
1337                        ##
1338                        TestRegBuild: FORCE
1339                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1340 kumpf            1.101 	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
1341                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
1342 jim.wunderlich   1.34  
1343 nag.boranna      1.27  ###############################################################################
1344 kumpf            1.1   ##
1345                        ## Trace Configuration
1346                        ##
1347 jim.wunderlich   1.43  ## Options: see usagetrace rule
1348                        ##
1349                        ###############################################################################
1350                        
1351                        usagetrace: FORCE
1352                        	$(USAGE)
1353 jim.wunderlich   1.60  	$(USAGE)"TestMakefile Trace Commands: "
1354                        	$(USAGE)"  The cimserver must be running when using W=c which is the default for W"
1355 jim.wunderlich   1.43  	$(USAGE)
1356 jim.wunderlich   1.60  	$(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
1357                        	$(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
1358                        	$(USAGE)" tracesettings:                      Displays all trace settings."
1359                        	$(USAGE)" tracecomp:                          Displays a trace componenets list."
1360                        	$(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1361                        	$(USAGE)"                           Enables tracing on component C at trace level L."
1362                        	$(USAGE)
1363 kumpf            1.101 	$(USAGE)" W defaults to c in the above commands where W can be specified"
1364 jim.wunderlich   1.43  	$(USAGE)
1365 jim.wunderlich   1.60  	$(USAGE)"  Usage examples:"
1366                        	$(USAGE)"   traceon       turns on trace in current server config"
1367                        	$(USAGE)"   traceon W=c   turns on trace in current server config"
1368                        	$(USAGE)"   traceon W=p   turns on trace in planned server config"
1369                        	$(USAGE)"   traceoff      turns on trace in current server config"
1370                        	$(USAGE)"   traceoff W=c  turns on trace in current server config"
1371                        	$(USAGE)"   traceoff W=p  turns on trace in planned server config"
1372                        	$(USAGE)
1373                        	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
1374                        	$(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
1375                        	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
1376                        	$(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
1377 jim.wunderlich   1.43  	$(USAGE)
1378                        	$(USAGE)
1379                        
1380                        traceon: FORCE
1381 kumpf            1.101 	@ cimconfig -s traceComponents=ALL -$W
1382 jim.wunderlich   1.60  	@ cimconfig -s traceLevel=3 -$W
1383                        	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1384                        
1385 jim.wunderlich   1.43  
1386                        traceoff: FORCE
1387 jim.wunderlich   1.60  	@ cimconfig -s traceComponents=  -$W
1388                        	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1389 jim.wunderlich   1.43  
1390                        
1391                        tracesettings: FORCE
1392                        	@ $(ECHO) " "
1393 jim.wunderlich   1.60  	cimconfig -g traceComponents -c -p
1394 jim.wunderlich   1.43  	@ $(ECHO) " "
1395 jim.wunderlich   1.60  	cimconfig -g traceLevel -c -p
1396 jim.wunderlich   1.43  	@ $(ECHO) " "
1397 jim.wunderlich   1.60  	cimconfig -g traceFilePath -c -p
1398 jim.wunderlich   1.43  	@ $(ECHO) " "
1399                        
1400                        traceon-CL: FORCE
1401 jim.wunderlich   1.60  	@ cimconfig -s traceComponents=$C -$W
1402                        	@ cimconfig -s traceLevel=$L -$W
1403                        	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1404 jim.wunderlich   1.43  
1405                        tracecomp: FORCE
1406                        	$(USAGE)
1407                        	$(USAGE)"Trace component list:"
1408                        	$(USAGE)
1409                        	$(USAGE)"Channel"
1410                        	$(USAGE)"XmlParser"
1411                        	$(USAGE)"XmlWriter"
1412                        	$(USAGE)"XmlReader"
1413                        	$(USAGE)"XmlIO"
1414                        	$(USAGE)"Http"
1415                        	$(USAGE)"CimData"
1416                        	$(USAGE)"ProvManager"
1417                        	$(USAGE)"Repository"
1418                        	$(USAGE)"Dispatcher"
1419                        	$(USAGE)"OsAbstraction"
1420                        	$(USAGE)"Config"
1421                        	$(USAGE)"IndDelivery"
1422                        	$(USAGE)"IndHandler"
1423                        	$(USAGE)"Authentication"
1424                        	$(USAGE)"Authorization"
1425 jim.wunderlich   1.43  	$(USAGE)"UserManager"
1426                        	$(USAGE)"SubscriptionService"
1427                        	$(USAGE)"Registration"
1428                        	$(USAGE)"Shutdown"
1429                        	$(USAGE)"Server"
1430                        	$(USAGE)"IndicationService"
1431                        	$(USAGE)"IndicationServiceInternal"
1432                        	$(USAGE)"ConfigurationManager"
1433                        	$(USAGE)"MessageQueueService"
1434                        	$(USAGE)"ProviderManager"
1435                        	$(USAGE)"ObjectResolution"
1436                        	$(USAGE)"WQL"
1437                        	$(USAGE)"CQL"
1438                        	$(USAGE)"Thread"
1439                        	$(USAGE)"MetaDispatcher"
1440                        	$(USAGE)"IPC"
1441                        	$(USAGE)"IndicationHandlerService"
1442                        	$(USAGE)"CIMExportRequestDispatcher"
1443                        	$(USAGE)"Memory"
1444                        	$(USAGE)"SSL"
1445                        	$(USAGE)"ControlProvider"
1446 jim.wunderlich   1.43  	$(USAGE)"AsyncOpNode"
1447                        	$(USAGE)"CIMOMHandle"
1448                        	$(USAGE)"L10N"
1449                        	$(USAGE)"ExportClient"
1450                        	$(USAGE)"Listener"
1451                        	$(USAGE)"DiscardedData"
1452                        	$(USAGE)"ProviderAgent"
1453 karl             1.118 	$(USAGE)"EnumContext"
1454 jim.wunderlich   1.43  	$(USAGE)
1455                        
1456                        ###############################################################################
1457                        ##
1458                        ## Trace Configuration - Old rules being deprecated
1459                        ##
1460 kumpf            1.1   ## Options:
1461                        ##      XMLTraceOn: Enables XML request and response tracing.
1462                        ##      ProviderLoadTraceOn: Enables Provider load tracing.
1463                        ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1464                        ##                                 load tracing.
1465                        ##      AllTraceOn: Enables all tracing.
1466                        ##      AllTraceOff: Disables all tracing.
1467                        ##      list: Lists trace settings.
1468                        ##
1469                        ###############################################################################
1470                        
1471                        XMLTraceOn:
1472                        	cimconfig -s traceComponents=XmlIO -c
1473                        	cimconfig -s traceLevel=3 -c
1474                        	cimconfig -g traceComponents
1475                        	cimconfig -g traceLevel
1476                        
1477                        ProviderLoadTraceOn:
1478                        	cimconfig -s traceComponents=ProvManager,OsAbstraction
1479                        	cimconfig -s traceLevel=3 -c
1480                        	cimconfig -g traceComponents
1481 kumpf            1.1   	cimconfig -g traceLevel
1482                        
1483                        XML+ProviderLoadTraceOn:
1484                        	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1485                        	cimconfig -s traceLevel=3 -c
1486                        	cimconfig -g traceComponents
1487                        	cimconfig -g traceLevel
1488                        
1489 jim.wunderlich   1.43  AllTraceOn: traceon
1490                        
1491                        AllTraceOff: traceoff
1492 kumpf            1.1   
1493 jim.wunderlich   1.43  list: tracesettings
1494 kumpf            1.1   
1495 jim.wunderlich   1.55  #########################################################################
1496                        # standardtests
1497                        #
1498                        # More testing options...
1499                        #
1500 kumpf            1.101 # The standard test seem to contain additional test that may not be able
1501 jim.wunderlich   1.55  # to run on all platforms so they have been grouped here for now rather than
1502                        # being included in the serversuite rule.
1503                        #
1504                        # The test are:
1505                        #      TestCimmof
1506                        #      TestNoSecurity
1507                        #      TestLocalSecurity
1508                        #      TestRemoteSecurity
1509                        #      TestAuthorization
1510                        #
1511                        # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1512                        #       TestNoSecurity.
1513                        #
1514                        # NOTE: The TestNoSecurity step runs the servertests which builds the
1515                        #       the repository that is then left in place for the remaining tests.
1516                        #       The cimof test must be before the TestNosecurity step as it removes
1517                        #       the repository builds a new one with cimmofl and another one with
1518 kumpf            1.101 #       cimmof and then compares them.
1519 jim.wunderlich   1.55  #
1520 kumpf            1.101 # NOTE: The Authentication test is comprised of EnableAuthentication,
1521                        #       TestLocalSecurity and TestRemoteSecurity.
1522 jim.wunderlich   1.55  #
1523                        # NOTE: The Authorization test is comprised of EnableAuthorization and
1524 kumpf            1.101 #       TestAuthorization.
1525 jim.wunderlich   1.55  #
1526 kumpf            1.101 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1527 jim.wunderlich   1.55  #       root access. Pegasus doesn't currently have the infrastructure
1528                        #       in place to run the server as root and run the test as non-root.
1529                        #       Rather than run everything, server, tests, providers, clients etc.
1530                        #       as root many testers prefer to run the tests as non-root. Setting
1531 kumpf            1.101 #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1532 jim.wunderlich   1.55  #       facilitate that.
1533                        #
1534 kumpf            1.1   
1535 jim.wunderlich   1.40  standardtests: FORCE
1536 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1537                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1538 kumpf            1.94  #	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1539                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository testrepository
1540 jim.wunderlich   1.55  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
1541 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1542                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1543                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1544                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1545                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
1546 jim.wunderlich   1.53  else
1547 jim.wunderlich   1.55  	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
1548 jim.wunderlich   1.53  	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "	
1549                        endif
1550 kumpf            1.94          # Reset the security options to the defaults
1551                        	cimconfig -u enableNamespaceAuthorization -p
1552                        	cimconfig -u enableAuthentication -p
1553 kumpf            1.93  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1554 jim.wunderlich   1.40  	@ $(ECHO) "+++++ TestMakefile standardtests complete"
1555 kumpf            1.1   
1556                        TestNoSecurity:
1557 jim.wunderlich   1.56  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
1558 kumpf            1.24  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1559 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1560 kumpf            1.1   
1561                        TestLocalSecurity:
1562 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1563 kumpf            1.1   	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1564                        
1565                        TestRemoteSecurity:
1566 jim.wunderlich   1.59  	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1567                        	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-u$(PEGASUS_TEST_USER_ID) PASSWORD=-w$(PEGASUS_TEST_USER_PASS) SECURITY_ENABLED=true
1568 kumpf            1.1   
1569                        TestAuthorization:
1570 jim.wunderlich   1.59  	TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1571 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1572 jim.wunderlich   1.59  	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1573                        	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-u$(PEGASUS_TEST_USER_ID) PASSWORD=-w$(PEGASUS_TEST_USER_PASS) SECURITY_ENABLED=true
1574 kumpf            1.1   
1575                        TestSubscriptions:
1576 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1577 kumpf            1.1   	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1578                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1579 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1580 david.dillard    1.15  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1581 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1582 kumpf            1.1   
1583                        TestCimmof:
1584 kumpf            1.95          # Build the repository with cimmofl and cimmof and compare them.
1585                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1586                        	-@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-save
1587                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1588                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1589                        	@$(ECHO) $(CIM_SCHEMA_DIR)
1590                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1591                        	@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmofl
1592                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
1593                        	@$(ECHO) $(CIM_SCHEMA_DIR)
1594                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
1595                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1596                        	@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmof
1597                        	-@$(MOVE) $(REPOSITORY_DIR)/repository-save $(REPOSITORY_DIR)/repository
1598                        	TestCompareRepositories $(REPOSITORY_DIR)/repository-cimmofl $(REPOSITORY_DIR)/repository-cimmof
1599                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1600                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1601 kumpf            1.1   
1602                        RunTestClientLocal:
1603                        	TestClient -local
1604                        
1605                        DisableSecurity:
1606 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1607 kumpf            1.1   	cimconfig -s enableAuthentication=false -p
1608                        	cimconfig -s enableNamespaceAuthorization=false -p
1609                        
1610 jim.wunderlich   1.61  EnableUsers:
1611                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1612                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1613                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1614                        
1615 kumpf            1.1   EnableAuthentication:
1616 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1617 kumpf            1.1   	cimconfig -s enableAuthentication=true -p
1618 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1619                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1620 kumpf            1.1   
1621                        EnableAuthorization:
1622 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1623 kumpf            1.10  	cimconfig -s enableNamespaceAuthorization=true -p
1624 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1625                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1626 kumpf            1.1   
1627                        EnableSSL:
1628 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1629                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1630 kumpf            1.1   
1631 jim.wunderlich   1.61  #
1632                        # ConfigureUsers
1633                        #
1634                        # The server must be running prior to invoking this rule
1635                        #
1636 kumpf            1.1   ConfigureUsers:
1637                        ifndef PEGASUS_PAM_AUTHENTICATION
1638 jim.wunderlich   1.62  	-cimuser -l
1639 jim.wunderlich   1.61  	-cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1640 kumpf            1.1   endif
1641                        
1642 jim.wunderlich   1.61  #
1643                        # ConfigureAuthorizations rule
1644                        #
1645                        # The server must be running prior to invoking this rule
1646                        #
1647 kumpf            1.1   ConfigureAuthorizations:
1648 jim.wunderlich   1.59  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1649                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1650                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1651 anusha.kandepu   1.109 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n $(PEGASUS_INTEROP_NAMESPACE) -R -W
1652 jim.wunderlich   1.59  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1653                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1654                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1655                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1656                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1657 sushma.fernandes 1.80  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1658                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
1659 kumpf            1.65  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1660 jim.wunderlich   1.59  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1661                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1662                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1663                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1664                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1665                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1666                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1667                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1668                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1669                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1670                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1671 kumpf            1.82  ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1672 kumpf            1.83  	cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
1673 kumpf            1.82  endif
1674 kumpf            1.1   
1675 jim.wunderlich   1.41  startcimWithoutSSL: FORCE
1676                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1677 kumpf            1.19  	$(SLEEP) 5
1678 kumpf            1.1   
1679 jim.wunderlich   1.41  startcimWithSSL: FORCE
1680                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1681 kumpf            1.19  	$(SLEEP) 5
1682 j.alex           1.66  
1683 denise.eckstein  1.97  ###############################################################################
1684                        ##
1685                        ## check_for_cores - used to search for core files in the build environment.
1686                        ##
1687                        ## This option will search (1) each source directory, (2) the PEGASUS_CORE_DIR
1688                        ## if it is defined and (3) the PEGASUS_TMP directory.
1689                        ##
1690                        ###############################################################################
1691                        CORE_FILE_LIST = $(PEGASUS_HOME)/CoreFileList
1692                        
1693                        check_core_search_results:
1694                        ifneq ($(wildcard $(CORE_FILE_LIST)), )
1695                        	@$(ECHO) "*** One or more core files found. ***"
1696                        	@$(CAT) $(CORE_FILE_LIST)
1697                        	@exit 1
1698                        endif
1699                        
1700                        ifdef PEGASUS_CORE_DIR
1701                           CORE_FILES_IN_CORE_DIR = \
1702                               $(wildcard $(PEGASUS_CORE_DIR)/$(PLATFORM_CORE_PATTERN))
1703                        endif
1704 denise.eckstein  1.97  ifdef PEGASUS_TMP
1705                           CORE_FILES_IN_TMP_DIR = \
1706                               $(wildcard $(PEGASUS_TMP)/$(PLATFORM_CORE_PATTERN))
1707                        endif
1708                        
1709                        generate_core_file_list:
1710                        	@$(RM) $(CORE_FILE_LIST)
1711                        	@$(MAKE) -s directory=$(PEGASUS_ROOT) general OPTION=CORE_SEARCH \
1712 kumpf            1.101             CORE_FILE_LIST=$(CORE_FILE_LIST)
1713 denise.eckstein  1.97  ifdef PEGASUS_CORE_DIR
1714                           ifneq ($(CORE_FILES_IN_CORE_DIR), )
1715                        	@$(ECHO) $(CORE_FILES_IN_CORE_DIR) >> $(CORE_FILE_LIST)
1716                           endif
1717                        endif
1718                        ifdef PEGASUS_TMP
1719                           ifneq ($(CORE_FILES_IN_TMP_DIR), )
1720                        	@$(ECHO) $(CORE_FILES_IN_TMP_DIR) >> $(CORE_FILE_LIST)
1721                           endif
1722                        endif
1723                        
1724                        check_for_cores:
1725                        	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1726 kumpf            1.101             generate_core_file_list
1727 denise.eckstein  1.97  	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1728 kumpf            1.101             check_core_search_results
1729 kumpf            1.102 
1730                        ###############################################################################
1731                        ##
1732                        ## option_summary - used to generate a concise list of build options for use in
1733                        ## a nightly build status report.  This is not intended to be a complete list,
1734                        ## so it is likely that some options are omitted.  New options may be added
1735                        ## here as needs dictate.
1736                        ##
1737                        ###############################################################################
1738                        
1739                        OPTION_SUMMARY =
1740                        ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
1741                            OPTION_SUMMARY += "+CMPI"
1742                        endif
1743                        ifeq ($(PEGASUS_ENABLE_CQL),true)
1744                            OPTION_SUMMARY += "+CQL"
1745                        endif
1746                        ifeq ($(PEGASUS_HAS_ICU),true)
1747                            OPTION_SUMMARY += "+ICU"
1748                        endif
1749                        ifeq ($(PEGASUS_ENABLE_IPV6),true)
1750 kumpf            1.102     OPTION_SUMMARY += "+IPv6"
1751                        endif
1752                        ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER),true)
1753                            OPTION_SUMMARY += "+JMPI"
1754                        endif
1755                        ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1756                            OPTION_SUMMARY += "+PrivSep"
1757                        endif
1758                        ifdef PEGASUS_ENABLE_EXECQUERY
1759                            OPTION_SUMMARY += "+Query"
1760                        endif
1761                        ifdef PEGASUS_ENABLE_REMOTE_CMPI
1762                            OPTION_SUMMARY += "+RCMPI"
1763                        endif
1764                        ifeq ($(PEGASUS_ENABLE_SLP),true)
1765                            OPTION_SUMMARY += "+SLP"
1766                        endif
1767                        ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
1768                            OPTION_SUMMARY += "+SQLite"
1769                        endif
1770                        ifdef PEGASUS_HAS_SSL
1771 kumpf            1.102     OPTION_SUMMARY += "+SSL"
1772                        endif
1773                        ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1774                            OPTION_SUMMARY += "+WSMan"
1775                        endif
1776                        
1777                        option_summary:
1778                        	@$(ECHO) "$(OPTION_SUMMARY)"

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2