(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 kumpf            1.1   
 329 j.alex           1.66  #####################
 330                        #
 331                        # stresstests
 332                        #
 333                        stresstests:
 334                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
 335                        
 336 jim.wunderlich   1.40  ####################
 337                        #
 338 jim.wunderlich   1.45  # perftests - simple performance test until we have better
 339                        #
 340                        # - Turns statistics on (uses TestInterop until we have better)
 341 kumpf            1.81  # - runs poststarttests suite and TestBenchmark
 342 jim.wunderlich   1.45  # - runs cimperf to displat the statistics
 343 kumpf            1.101 # - turns statistics off
 344 jim.wunderlich   1.45  #
 345                        perftests: servertestsclean servertestssetup perfsuite
 346                        
 347                        perfsuite: FORCE
 348                        	$(PEGASUS_HOME)/bin/TestInterop on
 349                        	$(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
 350                        	@ $(ECHO) " "
 351                        	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
 352                        	@ $(ECHO) " "
 353 kumpf            1.81  	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestBenchmark
 354 jim.wunderlich   1.45  	@ $(ECHO) " "
 355                        	@ $(ECHO) " "
 356                        	$(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
 357                        	@ $(ECHO) " "
 358                        	$(PEGASUS_HOME)/bin/TestInterop off
 359                        
 360 jim.wunderlich   1.40  
 361                        ####################
 362                        #
 363                        # alltests
 364                        #
 365                        alltests: unittests servertests
 366 a.dunfey         1.79  ifeq ($(OS_TYPE),windows)
 367 kumpf            1.22  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 368 mday             1.6   	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 369 tony             1.5   endif
 370 jim.wunderlich   1.40  	@ $(ECHO) "+++++ TestMakefile alltests Complete"
 371 kumpf            1.1   
 372                        ###############################################################################
 373 denise.eckstein  1.18  ##  Test Suite Definitions
 374                        ###############################################################################
 375                        
 376                        ###############################################################################
 377 kumpf            1.101 ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
 378 denise.eckstein  1.18  ##
 379                        ##  Configuration Options: forceProviderProcesses=true
 380                        ##
 381 jim.wunderlich   1.54  ##  If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
 382 jim.wunderlich   1.51  ##  since tests have already been run with OOP enabled.
 383                        ##
 384                        ##
 385 denise.eckstein  1.18  ###############################################################################
 386 jim.wunderlich   1.54  ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 387 jim.wunderlich   1.52  OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 388                        else
 389 denise.eckstein  1.18  OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 390 kumpf            1.44  endif
 391 jim.wunderlich   1.51  
 392 kumpf            1.96  ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
 393                            # When privilege separation is enabled, most providers run out of process
 394                            # regardless of the forceProviderProcesses setting.  The exception is
 395                            # providers that register with UserContext = 5 (CIM Server).  The only
 396                            # case of this in the automated tests is the UserContextTestProvider.
 397                            OOP_TS1_TEST_CMDS = \
 398                                $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/UserContextTestProvider/testclient@@poststarttests
 399                        else
 400                            OOP_TS1_TEST_CMDS = \
 401                                $(MAKE)@@--directory=$(PEGASUS_ROOT)@@-f@@Makefile@@poststarttests
 402                        endif
 403 denise.eckstein  1.18  
 404                        run_OOP_TS1:
 405 denise.eckstein  1.26  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 406 denise.eckstein  1.18              CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
 407                                    TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
 408 jim.wunderlich   1.51  
 409 denise.eckstein  1.18  ###############################################################################
 410                        
 411                        ###############################################################################
 412 kumpf            1.101 ##  IndInit Test Suite 1: IndicationService Initialization Tests
 413 carolann.graves  1.28  ##
 414                        ##  Configuration Options: (none)
 415                        ##
 416                        ###############################################################################
 417 kumpf            1.101 IndInit_TS1_CONFIG_OPTIONS =
 418 carolann.graves  1.28  IndInit_TS1a_TEST_CMDS = \
 419                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
 420                        IndInit_TS1b_TEST_CMDS = \
 421                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
 422                        
 423                        run_IndInit_TS1:
 424                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 425                                    CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 426                                    TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
 427                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 428                                    CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 429                                    TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
 430                        
 431                        ###############################################################################
 432 carolann.graves  1.67  ##  OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
 433                        ##
 434                        ##  Configuration Options: forceProviderProcesses=true
 435                        ##  enableAuthentication=true, enableAuthentication=false
 436                        ##
 437                        ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 438                        ##  suite is always run with OOP enabled.  This test suite causes a provider to
 439                        ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 440                        ##  to exit and the test suite to fail.
 441                        ##
 442                        ##  NOTE: The test is run once with authentication enabled, and once without
 443                        ##  authentication enabled.
 444                        ##
 445                        ###############################################################################
 446 venkat.puvvada   1.104 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true maxFailedProviderModuleRestarts=0
 447                        OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false maxFailedProviderModuleRestarts=0
 448 carolann.graves  1.67  OOPProvFail_TS1_TEST_CMDS = \
 449                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
 450                        
 451 carolann.graves  1.68  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 452 carolann.graves  1.67  run_OOPProvFail_TS1:
 453                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 454                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
 455                                    TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 456                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 457                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
 458                                    TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 459 carolann.graves  1.68  else
 460                        run_OOPProvFail_TS1: FORCE
 461                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
 462                        endif
 463 carolann.graves  1.67  
 464                        ###############################################################################
 465 kumpf            1.101 ##  OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
 466 carolann.graves  1.67  ##                            Initialization Tests
 467                        ##
 468                        ##  Configuration Options: forceProviderProcesses=true
 469                        ##                         enableAuthentication=true
 470                        ##
 471                        ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 472                        ##  suite is always run with OOP enabled.  This test suite causes a provider to
 473                        ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 474                        ##  to exit and the test suite to fail.
 475                        ##
 476                        ###############################################################################
 477                        OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 478                        OOPProvFail_TS2a_TEST_CMDS = \
 479                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
 480                        OOPProvFail_TS2b_TEST_CMDS = \
 481                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
 482                        
 483 carolann.graves  1.68  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 484 carolann.graves  1.67  run_OOPProvFail_TS2:
 485                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 486                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 487                                    TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
 488                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 489                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 490                                    TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
 491 carolann.graves  1.68  else
 492                        run_OOPProvFail_TS2: FORCE
 493                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
 494                        endif
 495 carolann.graves  1.67  
 496                        ###############################################################################
 497 carolann.graves  1.74  ##  OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
 498                        ##                            Tests
 499                        ##
 500                        ##  Configuration Options: forceProviderProcesses=true
 501                        ##                         enableAuthentication=true
 502                        ##
 503                        ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 504                        ##  suite is always run with OOP enabled.  This test suite causes a provider to
 505                        ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 506                        ##  to exit and the test suite to fail.
 507                        ##
 508                        ###############################################################################
 509 venkat.puvvada   1.104 OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true maxFailedProviderModuleRestarts=0
 510 carolann.graves  1.74  OOPProvFail_TS3a_TEST_CMDS = \
 511                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
 512                        OOPProvFail_TS3b_TEST_CMDS = \
 513                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
 514                        
 515                        ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 516                        run_OOPProvFail_TS3:
 517                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 518                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 519                                    TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
 520                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 521                                    CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 522                                    TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
 523                        else
 524                        run_OOPProvFail_TS3: FORCE
 525                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
 526                        endif
 527                        
 528                        ###############################################################################
 529 denise.eckstein  1.47  ##  Indication SSL Test Suite 1: Indication Testing over HTTPS
 530                        ##
 531                        ##  Configuration Options: (none)
 532                        ##
 533                        ###############################################################################
 534 denise.eckstein  1.50  INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 535 denise.eckstein  1.47  INDSSL_TS1a_TEST_CMDS = \
 536 denise.eckstein  1.50  	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
 537                        
 538                        INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
 539 denise.eckstein  1.47  INDSSL_TS1b_TEST_CMDS = \
 540 denise.eckstein  1.50  	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
 541                        
 542 denise.eckstein  1.47  
 543                        ifdef PEGASUS_HAS_SSL
 544 jim.wunderlich   1.53  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 545 jim.wunderlich   1.61  run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
 546 denise.eckstein  1.47  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 547 denise.eckstein  1.50              CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
 548 denise.eckstein  1.47              TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
 549                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 550 denise.eckstein  1.50              CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
 551 denise.eckstein  1.47              TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
 552                        else
 553                        run_INDSSL_TS1: FORCE
 554 jim.wunderlich   1.53  	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"	
 555                        endif
 556                        else
 557                        run_INDSSL_TS1: FORCE
 558                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
 559 denise.eckstein  1.47  endif
 560                        
 561                        
 562                        ###############################################################################
 563 rohini.deshpande 1.112 ##  WSMAN Indication test suite : WSMAN Indication Testing over HTTPS
 564                        ##
 565                        ##  Configuration Options:  (none for cimserver)
 566                        ##     wsevensink should be installed as the wsman listner.
 567                        ##
 568 rohini.deshpande 1.113 ##  There is no WSMAN listner in OP as of now. Therefore, wseventsink of
 569                        ##  openwsman is used. This is available only on Linux. On other OSes, the
 570                        ##  destination of the subcription/indication should be changed to a Linux
 571                        ##  system where wseventsink is running.
 572                        ##  Once we have a wsman listner in OP we include this test in Nigthly tests.
 573                        ##  As of now, this has to be run explicitly. 
 574                        ##
 575 rohini.deshpande 1.112 ###############################################################################
 576 rohini.deshpande 1.113 ifeq ($(OS),linux) 
 577 rohini.deshpande 1.112 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
 578                        INDWSMAN_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 579                        INDWSMAN_TS1a_TEST_CMDS = \
 580                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationTestProvider/wsmanTestClient@@-f@@Makefile@@runWSMANtests
 581                        
 582                        run_WSMAN_TS: FORCE
 583                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 584                                    CIMSERVER_CONFIG_OPTIONS="$(INDWSMAN_CONFIG_OPTIONS)" \
 585                                    TESTSUITE_CMDS="$(INDWSMAN_TS1a_TEST_CMDS)"
 586                        endif
 587                        endif
 588                        
 589                        ###############################################################################
 590 kumpf            1.101 
 591 denise.eckstein  1.47  ###############################################################################
 592 sushma.fernandes 1.84  ##  SSL IPv4 Test Suite : Tests SSL connections for IPv4
 593                        ##
 594                        ##  Configuration Options: enableHttpsConnection=true
 595                        ##  NOTE : Authentication is not enabled as we are only verifying
 596                        ##         if SSL based IPv6 connections are working correctly. The osinfo
 597                        ##         client requires a password to be passed for a remote connection
 598 kumpf            1.101 ##         otherwise it will prompt for one. As a work around,
 599                        ##         we are providing a dummy password.
 600 sushma.fernandes 1.84  ##
 601                        ###############################################################################
 602 ouyang.jian      1.91  SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
 603                              enableAuthentication=false
 604 sushma.fernandes 1.84  SSL_IPV4_TS1_CMD_1 = \
 605                                osinfo -s -w notapassword -h 127.0.0.1 -p 5989
 606                        SSL_IPV4_TS1_CMD_2 = \
 607                                osinfo -s -w notapassword -h localhost -p 5989
 608                        
 609                        ifdef PEGASUS_HAS_SSL
 610                            run_SSL_IPV4_TS1: FORCE
 611                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 612                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 613                                    TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
 614                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 615                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 616                                    TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
 617                        else
 618                            run_SSL_IPV4_TS1: FORCE
 619                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
 620                        endif
 621                        
 622                        ###############################################################################
 623                        ##  SSL IPv6 Test Suite : Tests SSL connections for IPv6
 624                        ##
 625 sushma.fernandes 1.84  ##  Configuration Options: enableHttpsConnection=true
 626                        ##  NOTE : Authentication is not enabled as we are only verifying
 627                        ##         if SSL based IPv6 connections are working correctly. The osinfo
 628                        ##         client requires a password to be passed for a remote connection
 629                        ##         otherwise it will prompt for one. As a work around,
 630 kumpf            1.101 ##         we are providing a dummy password.
 631 sushma.fernandes 1.84  ##
 632 sushma.fernandes 1.86  ##         The IPv4-mapped IPv6 address test is only enabled for unix
 633                        ##         platforms as Windows does not support IPv4-mapped IPv6 addresses
 634 kumpf            1.101 ##         on certain versions.
 635 sushma.fernandes 1.86  ##
 636 sushma.fernandes 1.84  ###############################################################################
 637 ouyang.jian      1.91  SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
 638                              enableAuthentication=false
 639 sushma.fernandes 1.84  SSL_IPV6_TS1_CMD_1 = \
 640                                osinfo -s -w notapassword -h ::1 -p 5989
 641                        SSL_IPV6_TS1_CMD_2 = \
 642                                osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
 643                        
 644                        ifdef PEGASUS_HAS_SSL
 645                            run_SSL_IPV6_TS1: FORCE
 646                            ifeq ($(PEGASUS_TEST_IPV6), true)
 647                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 648                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 649                                    TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
 650 sushma.fernandes 1.86        ifeq ($(OS_TYPE), unix)
 651 sushma.fernandes 1.84  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 652                                    CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 653                                    TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
 654 sushma.fernandes 1.86        endif
 655 sushma.fernandes 1.84      else
 656                        	@ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
 657                            endif
 658                        else
 659                            run_SSL_IPV6_TS1: FORCE
 660                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
 661                        endif
 662                        
 663                        ###############################################################################
 664                        ##  CBA SSL Test Suite 1: Certificate based authentication Tests
 665 nag.boranna      1.27  ##
 666                        ##  Configuration Options: enableAuthentication=true
 667                        ##                         enableHttpsConnection=true
 668                        ##                         sslClientVerificationMode=optional
 669                        ##                         sslTrustStoreUserName=$(CURRENT_USER)
 670                        ##
 671                        ###############################################################################
 672 sushma.fernandes 1.84  SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
 673 nag.boranna      1.27         sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
 674 sushma.fernandes 1.84  SSL_CBA_TS1_TEST_CMD_1 = \
 675 sushma.fernandes 1.71         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
 676 sushma.fernandes 1.84  SSL_CBA_TS1_TEST_CMD_2 = \
 677 sushma.fernandes 1.72         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
 678 nag.boranna      1.27  
 679 jim.wunderlich   1.39  ifdef PEGASUS_HAS_SSL
 680 jim.wunderlich   1.53  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 681 sushma.fernandes 1.84  run_SSL_CBA_TS1: FORCE
 682 nag.boranna      1.27  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 683 sushma.fernandes 1.84              CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 684                                    TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
 685 sushma.fernandes 1.72  	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 686 sushma.fernandes 1.84              CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 687                                    TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
 688 jim.wunderlich   1.39  else
 689 sushma.fernandes 1.84  run_SSL_CBA_TS1: FORCE
 690                        	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"	
 691 jim.wunderlich   1.53  endif
 692                        else
 693 sushma.fernandes 1.84  run_SSL_CBA_TS1: FORCE
 694                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
 695 jim.wunderlich   1.39  
 696                        endif
 697                        
 698 jim.wunderlich   1.61  ############################################################################
 699 kumpf            1.101 #
 700 jim.wunderlich   1.61  # Create_SSL_Certificate
 701                        #
 702                        # create a certificate that can be used for certification testing.
 703                        # It is currently used by the following tests:
 704                        #            -run_INDSSL_TS1
 705                        #
 706                        Create_SSL_Certificate_ignore: FORCE
 707                        	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 708                        
 709                        Create_SSL_Certificate: FORCE
 710                        ifdef PEGASUS_HAS_SSL
 711                        ifdef PEGASUS_TEST_USER_DEFINED
 712                        	$(ECHO) "Creating SSL certificate for test"
 713 sushma.fernandes 1.71  	cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
 714 jim.wunderlich   1.61  endif
 715                        else
 716                        	$(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
 717                        endif
 718                        
 719 rohini.deshpande 1.108 ############################################################################
 720                        ##
 721                        ##  run_sslCipherSuiteTests
 722                        ##
 723                        ##  Configuration Options: enableHttpsConnection=true
 724                        ##                         sslCipherSuite=HIGH
 725                        ##
 726                        ############################################################################
 727                        
 728 dl.meetei        1.116 SSL_CIPHER_SUITE_TEST_CONFIG_OPTIONS= enableHttpsConnection=true sslCipherSuite=HIGH
 729 rohini.deshpande 1.108 SSL_CIPHER_SUITE_TEST_CMDS= \
 730                        	$(MAKE)@@--directory \
 731                                    $(PEGASUS_ROOT)/src/Pegasus/Client/tests/SSLCipherVerification/ \
 732                                    -f@@Makefile@@sslCipherSuiteTests
 733                        
 734                        ifdef PEGASUS_HAS_SSL
 735                        run_sslCipherSuiteTests:
 736                        	@$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 737                                     CIMSERVER_CONFIG_OPTIONS="$(SSL_CIPHER_SUITE_TEST_CONFIG_OPTIONS)" \
 738                                     TESTSUITE_CMDS="$(SSL_CIPHER_SUITE_TEST_CMDS)"
 739                        else
 740                        run_sslCipherSuiteTests: FORCE
 741                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_sslCipherSuiteTests"
 742                        endif
 743                        
 744                        
 745 kumpf            1.46  ###############################################################################
 746 kumpf            1.101 ##  G11N Test Suite 1: Globalization Tests
 747 kumpf            1.46  ##
 748                        ##  Configuration Options: forceProviderProcesses=false
 749                        ##
 750                        ###############################################################################
 751                        G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 752                        G11N_TS1_TEST_CMDS = \
 753                                $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
 754                                    -f Makefile g11ntest
 755                        
 756                        run_G11N_TS1:
 757                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 758                                    CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
 759                                    TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
 760 j.alex           1.66  
 761                        ###############################################################################
 762                        ##  Stress Test Suite 1:  Default Stress Tests
 763                        ##
 764                        ##  Configuration Options: (none)
 765                        ##
 766                        ###############################################################################
 767                        STRESS_TS1_CONFIG_OPTIONS =
 768                        STRESS_TS1_TEST_CMDS = \
 769                                TestStressTestController
 770                        
 771                        run_STRESS_TS1:
 772                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 773                                    CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
 774                                    TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
 775 kumpf            1.46  ###############################################################################
 776                        
 777 denise.eckstein  1.73  ###############################################################################
 778                        ##  SDK Test Suite 1:  SDK Tests
 779                        ##
 780                        ##  Configuration Options: (none)
 781                        ##
 782                        ###############################################################################
 783                        SDK_TS1_CONFIG_OPTIONS =
 784                        SDK_TS1_TEST_CMDS = \
 785                                $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
 786 kumpf            1.101             -f Makefile testSDK
 787 denise.eckstein  1.73  
 788                        ifeq ($(PEGASUS_TEST_SDK),true)
 789                        run_SDK_TS1: FORCE
 790                        	$(MAKE) --directory=$(PEGASUS_ROOT)/mak \
 791                                    -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
 792                                    PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
 793                                    PEGASUS_INCLUDE_DIR=/include
 794                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 795                                    -f Makefile clean
 796                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 797                                    -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
 798                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 799                                    CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
 800                                    TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
 801                        else
 802                        run_SDK_TS1: FORCE
 803                        	@ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"	
 804                        endif
 805                        ###############################################################################
 806 jim.wunderlich   1.39  
 807 nag.boranna      1.27  ###############################################################################
 808 carolann.graves  1.75  ##  Export Client SSL Test Suite 1:
 809                        ##
 810                        ##  Configuration Options: enableHttpsConnection=true
 811                        ##
 812                        ###############################################################################
 813                        ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
 814                        ExportClientSSL_TS1_TEST_CMDS = \
 815                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
 816                        
 817                        ifdef PEGASUS_HAS_SSL
 818                        run_ExportClientSSL_TS1:
 819                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 820                                    CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
 821                                    TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
 822                        else
 823                        run_ExportClientSSL_TS1: FORCE
 824                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
 825                        endif
 826                        
 827                        ###############################################################################
 828 nag.boranna      1.27  
 829 jim.wunderlich   1.34  
 830 dl.meetei        1.116 ###############################################################################
 831                        ##  TLS v 1.2 support test as per NIST 800-131a
 832                        ##
 833                        ##  Configuration Options: enableHttpsConnection=true sslCipherSuite = TLSv1.2
 834                        ##
 835                        ###############################################################################
 836                        TLS_1_2_SUPPORT_CONFIG = enableHttpsConnection=true sslCipherSuite=TLSv1.2
 837                        TLSv1_2_support_tests = \
 838                        	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests/TLSv_1_2_Support@@-f@@Makefile@@test_TLSv1_2
 839                        
 840                        ifdef PEGASUS_HAS_SSL
 841                        run_TLSv1_2_tests:
 842                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 843                                    CIMSERVER_CONFIG_OPTIONS="$(TLS_1_2_SUPPORT_CONFIG)" \
 844                                    TESTSUITE_CMDS="$(TLSv1_2_support_tests)"
 845                        else
 846                        run_TLSv1_2_tests: FORCE
 847                        	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping TLSv 1.2 support tests"
 848                        endif
 849                        
 850                        ###############################################################################
 851 dl.meetei        1.116 
 852 jim.wunderlich   1.34  
 853 w.otsuka         1.76  ###############################################################################
 854 dave.sudlik      1.88  ##  idleConnectionTimeout Test Suite 1:  uses ChunkingStressProvider Tests
 855                        ##
 856 dave.sudlik      1.89  ##  Configuration Options: idleConnectionTime=55
 857 dave.sudlik      1.88  ##
 858                        ###############################################################################
 859 dave.sudlik      1.89  IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS = idleConnectionTimeout=55
 860 dave.sudlik      1.88  IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS = \
 861                        	$(MAKE)@@--directory \
 862                                    $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \
 863                                    -f@@Makefile@@poststarttests
 864                        run_idleConnectionTimeout1: FORCE
 865                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 866                                    CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \
 867                                    TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS)"
 868                        ###############################################################################
 869                        
 870                        ###############################################################################
 871                        ##  idleConnectionTimeout Test Suite 2:  uses IdleConnectionTimeout client test
 872                        ##
 873                        ##  Configuration Options: idleConnectionTime=6
 874                        ##
 875                        ###############################################################################
 876                        IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS = idleConnectionTimeout=6
 877                        IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS = \
 878                        	$(MAKE)@@--directory \
 879                                    $(PEGASUS_ROOT)/src/Pegasus/Client/tests/IdleConnectionTimeout/ \
 880                                    -f@@Makefile@@timeoutTest@@IDLETIME=10
 881 dave.sudlik      1.88  run_idleConnectionTimeout2: FORCE
 882                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 883                                    CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS)" \
 884                                    TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS)"
 885                        ###############################################################################
 886                        
 887 sahana.prabhakar 1.103 ###############################################################################
 888                        ##  cimserver thread limit test:
 889                        ##
 890                        ##  Configuration Options: none
 891                        ##
 892                        ###############################################################################
 893                        CIMSERVER_THREAD_LIMIT_TEST_CONFIG_OPTIONS = forceProviderProcesses=true
 894                        CIMSERVER_THREAD_LIMIT_TEST_CMDS = \
 895                               $(MAKE)@@--directory \
 896                                    $(PEGASUS_ROOT)/src/Providers/TestProviders/FaultyInstanceProvider/testclient \
 897                                    -f@@Makefile@@runAvailabilityTest
 898                        run_Cimserver_Availability: FORCE
 899                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 900                                    CIMSERVER_CONFIG_OPTIONS="$(CIMSERVER_THREAD_LIMIT_TEST_CONFIG_OPTIONS)" \
 901                                    TESTSUITE_CMDS="$(CIMSERVER_THREAD_LIMIT_TEST_CMDS)"
 902                        ###############################################################################
 903 dave.sudlik      1.88  
 904                        ###############################################################################
 905 w.otsuka         1.76  ##  cimsub CLI Test Suite 1:  PG_InterOp Tests
 906                        ##
 907                        ##  Configuration Options: (none)
 908                        ##
 909                        ###############################################################################
 910                        CIMSUB_INTEROP_CONFIG_OPTIONS =
 911                        CIMSUB_INTEROP_TEST_CMDS = \
 912                        	$(MAKE) --directory \
 913                                    $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
 914                                    -f Makefile cimsubTest_InterOp
 915                        run_Cimsub_InterOp: FORCE
 916                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 917                                    CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
 918                                    TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
 919                        ###############################################################################
 920                        
 921                        ###############################################################################
 922 s.kodali         1.85  ## CMPI subscription activation Test Suite 1:
 923                        ##
 924                        ## Configuration Options: (none)
 925                        ##
 926                        ###############################################################################
 927                        CMPI_SUB_TEST_CONFIG_OPTIONS=
 928                        CMPI_SUBa_TEST_CMDS = \
 929                        	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
 930                        CMPI_SUBb_TEST_CMDS = \
 931                        	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
 932                        CMPI_SUBc_TEST_CMDS =  \
 933                        	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
 934                        run_Cmpi_Sub: FORCE
 935                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 936                                    CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 937                                    TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
 938                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 939                                    CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 940                                    TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
 941                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 942                                    CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 943 s.kodali         1.85              TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
 944 kumpf            1.101 
 945 s.kodali         1.85  ##############################################################################
 946 w.otsuka         1.76  
 947                        
 948 s.kodali         1.105 #############################################################################
 949                        ##
 950                        ## 32-bit provider tests on 64-bit CIMServer
 951                        ##
 952                        #############################################################################
 953                        
 954                        TEST_32BIT_CONFIG_OPTIONS = providerDir=lib32:lib
 955                        TEST_32BIT_CMDS = \
 956                               $(MAKE)@@--directory \
 957                                    $(PEGASUS_ROOT)/src/Providers/TestProviders -f@@Makefile.cimprovagt32tests@@cimprovagt32tests
 958                        cimprovagt32tests: FORCE
 959 venkat.puvvada   1.106 ifdef PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT
 960 s.kodali         1.105 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 961                                    CIMSERVER_CONFIG_OPTIONS="$(TEST_32BIT_CONFIG_OPTIONS)" \
 962                                    TESTSUITE_CMDS="$(TEST_32BIT_CMDS)"
 963 venkat.puvvada   1.106 else
 964                        	@$(ECHO) "PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT not defined, skipping 32-bit tests..."
 965                        endif
 966 s.kodali         1.105 
 967 marek            1.111 #############################################################################
 968                        ##
 969                        ## CIMServer with overridden hostnames testing
 970                        ##
 971                        #############################################################################
 972                        
 973                        TEST_CHGD_HOSTS_OPTIONS = "hostname=hugo fullyQualifiedHostName=hugo.bert"
 974                        TEST_CHGD_HOSTS_CMDS = \
 975                               $(MAKE)@@--directory \
 976                                    $(PEGASUS_ROOT)/src/Pegasus/Config/tests/ChgdHosts@@chgdhoststest
 977                        chgdhoststests: FORCE
 978                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 979                                    CIMSERVER_CONFIG_OPTIONS=$(TEST_CHGD_HOSTS_OPTIONS) \
 980                                    TESTSUITE_CMDS="$(TEST_CHGD_HOSTS_CMDS)"
 981                        
 982 venkat.puvvada   1.107 
 983                        #############################################################################
 984                        ##
 985                        ## provider lifecycle indications tests
 986                        ##
 987                        #############################################################################
 988                        run_providerLifecycleIndicationTests: FORCE
 989                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile setupLogFile
 990                        	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 991                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="forceProviderProcesses=true maxFailedProviderModuleRestarts=1"
 992                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile createPLISubscription
 993                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 994                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="forceProviderProcesses=true maxFailedProviderModuleRestarts=1"
 995                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile testPLI
 996                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile deletePLISubscription
 997                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 998                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile testLogFile
 999                        
1000 dev.meetei       1.110 
1001                        #############################################################################
1002 anusha.kandepu   1.114 #
1003                        # Provider reregistration tests.
1004                        #
1005                        ##############################################################################
1006                        run_providerReregisterTests:FORCE
1007                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1008                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1009                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient -f Makefile createSubscriptions
1010                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1011                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1012                        	$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient -f Makefile reregister_providerTests
1013                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1014                        	
1015                        
1016                        #############################################################################
1017 dev.meetei       1.110 ##
1018                        ## Network Interface restriction tests
1019                        ##
1020                        ##  Configuration Options: enableHttpsConnection=true
1021                        ##                         enableHttpConnection=true
1022                        ##                         listenAddress=x.y.x.z
1023                        ##
1024                        #############################################################################
1025                        startcimListenAddress: FORCE
1026                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=true enableHttpsConnection=true listenAddress=::1,127.0.0.1"
1027                        	$(SLEEP) 5
1028                        
1029                        
1030                        
1031                        LISTENING_ADD = $(shell TestListenAddress getSystemInterface)
1032                        RESTRICT_INTRFC_TEST_CONFIG_OPTIONS= enableHttpConnection=true enableHttpsConnection=true listenAddress=$(LISTENING_ADD) 
1033                        RESTRICT_INTRFC_TEST_CMDS=$(MAKE)@@--directory $(PEGASUS_ROOT)/src/Pegasus/Server/tests/InterfaceRestriction@@-f@@Makefile@@RestrictionTest
1034                        
1035                        ifneq ($(strip $(LISTENING_ADD)),)
1036                        run_interfaceRestrictionTest:FORCE
1037                        	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
1038 dev.meetei       1.110 	    CIMSERVER_CONFIG_OPTIONS="$(RESTRICT_INTRFC_TEST_CONFIG_OPTIONS)" \
1039                        	    TESTSUITE_CMDS="$(RESTRICT_INTRFC_TEST_CMDS)"
1040                        else
1041                        run_interfaceRestrictionTest:FORCE
1042                        	@ $(ECHO) "+++++ No Network Interface Detected: Skipping Network Restriction Test+++++++"
1043                        endif
1044                        	
1045                        
1046 jim.wunderlich   1.34  ##############################################################################
1047                        ##
1048                        ## TestXMLRepository rule is used to run the poststarttests suite on
1049                        ## the XML Repository built using cimmofl
1050                        ##
1051                        ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
1052                        ## the XML Repository built using cimmof
1053                        ##
1054 kumpf            1.101 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
1055 jim.wunderlich   1.34  ## the XML Compressed Repository built using cimmofl
1056                        ##
1057                        
1058                        ############################
1059                        ##
1060                        ## TestXMLRepository
1061                        ##
1062                        
1063                        TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
1064                        	@ $(ECHO) TestXMLRepository +++++ passed all test
1065                        
1066                        ############################
1067                        ##
1068                        ## TestXMLRepositoryServer
1069                        ##
1070                        TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
1071                        	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
1072                        
1073                        ############################
1074                        ##
1075                        ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
1076 jim.wunderlich   1.34  ##
1077                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
1078                        TestXMLCmpRepository: FORCE
1079                        	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
1080                        	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
1081                        else
1082                        
1083                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
1084                        
1085                        TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
1086                        	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
1087                        else
1088                        TestXMLCmpRepository: FORCE
1089 kumpf            1.101 	@ $(ECHO) TestXMLCmpRepository +++++ Not tested
1090 jim.wunderlich   1.34  	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
1091 kumpf            1.101 	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
1092 jim.wunderlich   1.34  endif
1093                        endif
1094                        
1095                        ###########################
1096                        ##
1097                        ## TestXMLClean
1098                        ##
1099                        TestXMLClean: FORCE
1100 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1101 jim.wunderlich   1.34  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
1102                        
1103                        
1104                        ###########################
1105                        ##
1106                        ## TestXMLStartServer
1107                        ##
1108                        TestXMLStartServer: FORCE
1109                        	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
1110                        	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
1111                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
1112                        	$(SLEEP) 5
1113                        
1114                        ####
1115                        #### The following caused the cimserver to fail on startup
1116                        ####
1117                        ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
1118                        
1119                        ###########################
1120                        ##
1121                        ## TestXMLBuildRepo
1122 jim.wunderlich   1.34  ##
1123                        TestXMLBuildRepo: FORCE
1124                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1125                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1126                        
1127                        
1128                        ###########################
1129                        ##
1130                        ## TestXMLBuildRepoServ
1131                        ##
1132                        TestXMLBuildRepoServ: TestXMLStartServer
1133                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1134                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1135 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1136 jim.wunderlich   1.34  
1137                        
1138                        ###########################
1139                        ##
1140                        ## TestXMLRepo
1141                        ##
1142 jim.wunderlich   1.40  TestXMLRepo: servertestsclean
1143 jim.wunderlich   1.35  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
1144 jim.wunderlich   1.34  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
1145 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1146 jim.wunderlich   1.34  
1147                        
1148                        
1149                        
1150                        
1151                        
1152 jim.wunderlich   1.29  ##############################################################################
1153                        ##
1154 jim.wunderlich   1.31  ## TestBinRepository rule is used to run the poststarttests suite on
1155 jim.wunderlich   1.33  ## the Binary Repository built using cimmofl
1156 jim.wunderlich   1.29  ##
1157 jim.wunderlich   1.31  ## TestBinRepositoryServer rule is used to run the poststarttests suite on
1158 jim.wunderlich   1.33  ## the Binary Repository built using cimmof
1159                        ##
1160 kumpf            1.101 ## TestBinCmpRepository rule is used to run the poststarttest suite on
1161 jim.wunderlich   1.33  ## the Binry Compressed Repository built using cimmofl
1162 jim.wunderlich   1.29  ##
1163 jim.wunderlich   1.31  
1164                        ############################
1165 jim.wunderlich   1.29  ##
1166 jim.wunderlich   1.31  ## TestBinRepository
1167 jim.wunderlich   1.29  ##
1168 jim.wunderlich   1.33  ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
1169                        ### the nightly tests to run
1170                        
1171 jim.wunderlich   1.31  TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
1172 jim.wunderlich   1.33  	@ $(ECHO) TestBinRepository +++++ passed all test
1173 jim.wunderlich   1.36  
1174 jim.wunderlich   1.29  
1175 jim.wunderlich   1.31  ############################
1176                        ##
1177                        ## TestBinRepositoryServer
1178                        ##
1179                        TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
1180 jim.wunderlich   1.33  	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
1181                        
1182                        ############################
1183                        ##
1184                        ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
1185                        ##
1186                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
1187 jim.wunderlich   1.34  TestBinCmpRepository: FORCE
1188 jim.wunderlich   1.33  	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
1189                        	@ $(ECHO) TestBinCmpRepository +++++ passed all test
1190                        else
1191                        
1192                        ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
1193                        
1194 jim.wunderlich   1.34  TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
1195 jim.wunderlich   1.33  	@ $(ECHO) TestBinCmpRepository +++++ passed all test
1196                        else
1197 jim.wunderlich   1.34  TestBinCmpRepository: FORCE
1198 kumpf            1.101 	@ $(ECHO) TestBinCmpRepository +++++ Not tested
1199 jim.wunderlich   1.33  	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
1200 kumpf            1.101 	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
1201 jim.wunderlich   1.33  endif
1202                        endif
1203                        
1204                        
1205 jim.wunderlich   1.31  ###########################
1206                        ##
1207                        ## TestBinClean
1208                        ##
1209 jim.wunderlich   1.34  TestBinClean: FORCE
1210 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1211 jim.wunderlich   1.31  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
1212 jim.wunderlich   1.29  
1213 jim.wunderlich   1.31  
1214                        ###########################
1215 jim.wunderlich   1.29  ##
1216 jim.wunderlich   1.31  ## TestBinStartServer
1217 jim.wunderlich   1.29  ##
1218 jim.wunderlich   1.34  TestBinStartServer: FORCE
1219 jim.wunderlich   1.30  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
1220 jim.wunderlich   1.31  	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
1221                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
1222 jim.wunderlich   1.29  	$(SLEEP) 5
1223 jim.wunderlich   1.31  
1224                        ###########################
1225 jim.wunderlich   1.29  ##
1226 jim.wunderlich   1.31  ## TestBinBuildRepo
1227 jim.wunderlich   1.29  ##
1228 jim.wunderlich   1.34  TestBinBuildRepo: FORCE
1229 jim.wunderlich   1.29  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1230                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1231 jim.wunderlich   1.31  
1232                        
1233                        ###########################
1234                        ##
1235                        ## TestBinBuildRepoServ
1236                        ##
1237                        TestBinBuildRepoServ: TestBinStartServer
1238                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1239                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1240 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1241 jim.wunderlich   1.31  
1242                        
1243                        ###########################
1244                        ##
1245                        ## TestBinRepo
1246                        ##
1247 kumpf            1.101 TestBinRepo: servertestsclean
1248 jim.wunderlich   1.35  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
1249 jim.wunderlich   1.29  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1250 kumpf            1.101 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1251 jim.wunderlich   1.29  
1252                        
1253                        
1254 jim.wunderlich   1.34  
1255                        ############################
1256                        ##
1257                        ## TestCmpBuild - used to compile the repository for compression
1258                        ##
1259                        TestCmpBuild: FORCE
1260                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1261                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1262                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1263                        
1264                        
1265                        ############################
1266                        ##
1267                        ## TestRegBuild - used to compile the repository for no compression
1268                        ##
1269                        TestRegBuild: FORCE
1270                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1271 kumpf            1.101 	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
1272                        	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
1273 jim.wunderlich   1.34  
1274 nag.boranna      1.27  ###############################################################################
1275 kumpf            1.1   ##
1276                        ## Trace Configuration
1277                        ##
1278 jim.wunderlich   1.43  ## Options: see usagetrace rule
1279                        ##
1280                        ###############################################################################
1281                        
1282                        usagetrace: FORCE
1283                        	$(USAGE)
1284 jim.wunderlich   1.60  	$(USAGE)"TestMakefile Trace Commands: "
1285                        	$(USAGE)"  The cimserver must be running when using W=c which is the default for W"
1286 jim.wunderlich   1.43  	$(USAGE)
1287 jim.wunderlich   1.60  	$(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
1288                        	$(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
1289                        	$(USAGE)" tracesettings:                      Displays all trace settings."
1290                        	$(USAGE)" tracecomp:                          Displays a trace componenets list."
1291                        	$(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1292                        	$(USAGE)"                           Enables tracing on component C at trace level L."
1293                        	$(USAGE)
1294 kumpf            1.101 	$(USAGE)" W defaults to c in the above commands where W can be specified"
1295 jim.wunderlich   1.43  	$(USAGE)
1296 jim.wunderlich   1.60  	$(USAGE)"  Usage examples:"
1297                        	$(USAGE)"   traceon       turns on trace in current server config"
1298                        	$(USAGE)"   traceon W=c   turns on trace in current server config"
1299                        	$(USAGE)"   traceon W=p   turns on trace in planned server config"
1300                        	$(USAGE)"   traceoff      turns on trace in current server config"
1301                        	$(USAGE)"   traceoff W=c  turns on trace in current server config"
1302                        	$(USAGE)"   traceoff W=p  turns on trace in planned server config"
1303                        	$(USAGE)
1304                        	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
1305                        	$(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
1306                        	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
1307                        	$(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
1308 jim.wunderlich   1.43  	$(USAGE)
1309                        	$(USAGE)
1310                        
1311                        traceon: FORCE
1312 kumpf            1.101 	@ cimconfig -s traceComponents=ALL -$W
1313 jim.wunderlich   1.60  	@ cimconfig -s traceLevel=3 -$W
1314                        	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1315                        
1316 jim.wunderlich   1.43  
1317                        traceoff: FORCE
1318 jim.wunderlich   1.60  	@ cimconfig -s traceComponents=  -$W
1319                        	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1320 jim.wunderlich   1.43  
1321                        
1322                        tracesettings: FORCE
1323                        	@ $(ECHO) " "
1324 jim.wunderlich   1.60  	cimconfig -g traceComponents -c -p
1325 jim.wunderlich   1.43  	@ $(ECHO) " "
1326 jim.wunderlich   1.60  	cimconfig -g traceLevel -c -p
1327 jim.wunderlich   1.43  	@ $(ECHO) " "
1328 jim.wunderlich   1.60  	cimconfig -g traceFilePath -c -p
1329 jim.wunderlich   1.43  	@ $(ECHO) " "
1330                        
1331                        traceon-CL: FORCE
1332 jim.wunderlich   1.60  	@ cimconfig -s traceComponents=$C -$W
1333                        	@ cimconfig -s traceLevel=$L -$W
1334                        	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1335 jim.wunderlich   1.43  
1336                        tracecomp: FORCE
1337                        	$(USAGE)
1338                        	$(USAGE)"Trace component list:"
1339                        	$(USAGE)
1340                        	$(USAGE)"Channel"
1341                        	$(USAGE)"XmlParser"
1342                        	$(USAGE)"XmlWriter"
1343                        	$(USAGE)"XmlReader"
1344                        	$(USAGE)"XmlIO"
1345                        	$(USAGE)"Http"
1346                        	$(USAGE)"CimData"
1347                        	$(USAGE)"ProvManager"
1348                        	$(USAGE)"Repository"
1349                        	$(USAGE)"Dispatcher"
1350                        	$(USAGE)"OsAbstraction"
1351                        	$(USAGE)"Config"
1352                        	$(USAGE)"IndDelivery"
1353                        	$(USAGE)"IndHandler"
1354                        	$(USAGE)"Authentication"
1355                        	$(USAGE)"Authorization"
1356 jim.wunderlich   1.43  	$(USAGE)"UserManager"
1357                        	$(USAGE)"SubscriptionService"
1358                        	$(USAGE)"Registration"
1359                        	$(USAGE)"Shutdown"
1360                        	$(USAGE)"Server"
1361                        	$(USAGE)"IndicationService"
1362                        	$(USAGE)"IndicationServiceInternal"
1363                        	$(USAGE)"ConfigurationManager"
1364                        	$(USAGE)"MessageQueueService"
1365                        	$(USAGE)"ProviderManager"
1366                        	$(USAGE)"ObjectResolution"
1367                        	$(USAGE)"WQL"
1368                        	$(USAGE)"CQL"
1369                        	$(USAGE)"Thread"
1370                        	$(USAGE)"MetaDispatcher"
1371                        	$(USAGE)"IPC"
1372                        	$(USAGE)"IndicationHandlerService"
1373                        	$(USAGE)"CIMExportRequestDispatcher"
1374                        	$(USAGE)"Memory"
1375                        	$(USAGE)"SSL"
1376                        	$(USAGE)"ControlProvider"
1377 jim.wunderlich   1.43  	$(USAGE)"AsyncOpNode"
1378                        	$(USAGE)"CIMOMHandle"
1379                        	$(USAGE)"L10N"
1380                        	$(USAGE)"ExportClient"
1381                        	$(USAGE)"Listener"
1382                        	$(USAGE)"DiscardedData"
1383                        	$(USAGE)"ProviderAgent"
1384                        	$(USAGE)
1385                        
1386                        ###############################################################################
1387                        ##
1388                        ## Trace Configuration - Old rules being deprecated
1389                        ##
1390 kumpf            1.1   ## Options:
1391                        ##      XMLTraceOn: Enables XML request and response tracing.
1392                        ##      ProviderLoadTraceOn: Enables Provider load tracing.
1393                        ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1394                        ##                                 load tracing.
1395                        ##      AllTraceOn: Enables all tracing.
1396                        ##      AllTraceOff: Disables all tracing.
1397                        ##      list: Lists trace settings.
1398                        ##
1399                        ###############################################################################
1400                        
1401                        XMLTraceOn:
1402                        	cimconfig -s traceComponents=XmlIO -c
1403                        	cimconfig -s traceLevel=3 -c
1404                        	cimconfig -g traceComponents
1405                        	cimconfig -g traceLevel
1406                        
1407                        ProviderLoadTraceOn:
1408                        	cimconfig -s traceComponents=ProvManager,OsAbstraction
1409                        	cimconfig -s traceLevel=3 -c
1410                        	cimconfig -g traceComponents
1411 kumpf            1.1   	cimconfig -g traceLevel
1412                        
1413                        XML+ProviderLoadTraceOn:
1414                        	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1415                        	cimconfig -s traceLevel=3 -c
1416                        	cimconfig -g traceComponents
1417                        	cimconfig -g traceLevel
1418                        
1419 jim.wunderlich   1.43  AllTraceOn: traceon
1420                        
1421                        AllTraceOff: traceoff
1422 kumpf            1.1   
1423 jim.wunderlich   1.43  list: tracesettings
1424 kumpf            1.1   
1425 jim.wunderlich   1.55  #########################################################################
1426                        # standardtests
1427                        #
1428                        # More testing options...
1429                        #
1430 kumpf            1.101 # The standard test seem to contain additional test that may not be able
1431 jim.wunderlich   1.55  # to run on all platforms so they have been grouped here for now rather than
1432                        # being included in the serversuite rule.
1433                        #
1434                        # The test are:
1435                        #      TestCimmof
1436                        #      TestNoSecurity
1437                        #      TestLocalSecurity
1438                        #      TestRemoteSecurity
1439                        #      TestAuthorization
1440                        #
1441                        # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1442                        #       TestNoSecurity.
1443                        #
1444                        # NOTE: The TestNoSecurity step runs the servertests which builds the
1445                        #       the repository that is then left in place for the remaining tests.
1446                        #       The cimof test must be before the TestNosecurity step as it removes
1447                        #       the repository builds a new one with cimmofl and another one with
1448 kumpf            1.101 #       cimmof and then compares them.
1449 jim.wunderlich   1.55  #
1450 kumpf            1.101 # NOTE: The Authentication test is comprised of EnableAuthentication,
1451                        #       TestLocalSecurity and TestRemoteSecurity.
1452 jim.wunderlich   1.55  #
1453                        # NOTE: The Authorization test is comprised of EnableAuthorization and
1454 kumpf            1.101 #       TestAuthorization.
1455 jim.wunderlich   1.55  #
1456 kumpf            1.101 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1457 jim.wunderlich   1.55  #       root access. Pegasus doesn't currently have the infrastructure
1458                        #       in place to run the server as root and run the test as non-root.
1459                        #       Rather than run everything, server, tests, providers, clients etc.
1460                        #       as root many testers prefer to run the tests as non-root. Setting
1461 kumpf            1.101 #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1462 jim.wunderlich   1.55  #       facilitate that.
1463                        #
1464 kumpf            1.1   
1465 jim.wunderlich   1.40  standardtests: FORCE
1466 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1467                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1468 kumpf            1.94  #	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1469                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository testrepository
1470 jim.wunderlich   1.55  ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
1471 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1472                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1473                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1474                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1475                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
1476 jim.wunderlich   1.53  else
1477 jim.wunderlich   1.55  	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
1478 jim.wunderlich   1.53  	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "	
1479                        endif
1480 kumpf            1.94          # Reset the security options to the defaults
1481                        	cimconfig -u enableNamespaceAuthorization -p
1482                        	cimconfig -u enableAuthentication -p
1483 kumpf            1.93  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1484 jim.wunderlich   1.40  	@ $(ECHO) "+++++ TestMakefile standardtests complete"
1485 kumpf            1.1   
1486                        TestNoSecurity:
1487 jim.wunderlich   1.56  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
1488 kumpf            1.24  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1489 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1490 kumpf            1.1   
1491                        TestLocalSecurity:
1492 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1493 kumpf            1.1   	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1494                        
1495                        TestRemoteSecurity:
1496 jim.wunderlich   1.59  	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1497                        	$(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
1498 kumpf            1.1   
1499                        TestAuthorization:
1500 jim.wunderlich   1.59  	TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1501 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1502 jim.wunderlich   1.59  	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1503                        	$(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
1504 kumpf            1.1   
1505                        TestSubscriptions:
1506 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1507 kumpf            1.1   	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1508                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1509 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1510 david.dillard    1.15  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1511 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1512 kumpf            1.1   
1513                        TestCimmof:
1514 kumpf            1.95          # Build the repository with cimmofl and cimmof and compare them.
1515                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1516                        	-@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-save
1517                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1518                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1519                        	@$(ECHO) $(CIM_SCHEMA_DIR)
1520                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1521                        	@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmofl
1522                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
1523                        	@$(ECHO) $(CIM_SCHEMA_DIR)
1524                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
1525                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1526                        	@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmof
1527                        	-@$(MOVE) $(REPOSITORY_DIR)/repository-save $(REPOSITORY_DIR)/repository
1528                        	TestCompareRepositories $(REPOSITORY_DIR)/repository-cimmofl $(REPOSITORY_DIR)/repository-cimmof
1529                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1530                        	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1531 kumpf            1.1   
1532                        RunTestClientLocal:
1533                        	TestClient -local
1534                        
1535                        DisableSecurity:
1536 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1537 kumpf            1.1   	cimconfig -s enableAuthentication=false -p
1538                        	cimconfig -s enableNamespaceAuthorization=false -p
1539                        
1540 jim.wunderlich   1.61  EnableUsers:
1541                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1542                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1543                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1544                        
1545 kumpf            1.1   EnableAuthentication:
1546 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1547 kumpf            1.1   	cimconfig -s enableAuthentication=true -p
1548 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1549                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1550 kumpf            1.1   
1551                        EnableAuthorization:
1552 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1553 kumpf            1.10  	cimconfig -s enableNamespaceAuthorization=true -p
1554 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1555                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1556 kumpf            1.1   
1557                        EnableSSL:
1558 kumpf            1.21  	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1559                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1560 kumpf            1.1   
1561 jim.wunderlich   1.61  #
1562                        # ConfigureUsers
1563                        #
1564                        # The server must be running prior to invoking this rule
1565                        #
1566 kumpf            1.1   ConfigureUsers:
1567                        ifndef PEGASUS_PAM_AUTHENTICATION
1568 jim.wunderlich   1.62  	-cimuser -l
1569 jim.wunderlich   1.61  	-cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1570 kumpf            1.1   endif
1571                        
1572 jim.wunderlich   1.61  #
1573                        # ConfigureAuthorizations rule
1574                        #
1575                        # The server must be running prior to invoking this rule
1576                        #
1577 kumpf            1.1   ConfigureAuthorizations:
1578 jim.wunderlich   1.59  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1579                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1580                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1581 anusha.kandepu   1.109 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n $(PEGASUS_INTEROP_NAMESPACE) -R -W
1582 jim.wunderlich   1.59  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1583                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1584                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1585                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1586                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1587 sushma.fernandes 1.80  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1588                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
1589 kumpf            1.65  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1590 jim.wunderlich   1.59  	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1591                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1592                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1593                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1594                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1595                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1596                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1597                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1598                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1599                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1600                        	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1601 kumpf            1.82  ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1602 kumpf            1.83  	cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
1603 kumpf            1.82  endif
1604 kumpf            1.1   
1605 jim.wunderlich   1.41  startcimWithoutSSL: FORCE
1606                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1607 kumpf            1.19  	$(SLEEP) 5
1608 kumpf            1.1   
1609 jim.wunderlich   1.41  startcimWithSSL: FORCE
1610                        	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1611 kumpf            1.19  	$(SLEEP) 5
1612 j.alex           1.66  
1613 denise.eckstein  1.97  ###############################################################################
1614                        ##
1615                        ## check_for_cores - used to search for core files in the build environment.
1616                        ##
1617                        ## This option will search (1) each source directory, (2) the PEGASUS_CORE_DIR
1618                        ## if it is defined and (3) the PEGASUS_TMP directory.
1619                        ##
1620                        ###############################################################################
1621                        CORE_FILE_LIST = $(PEGASUS_HOME)/CoreFileList
1622                        
1623                        check_core_search_results:
1624                        ifneq ($(wildcard $(CORE_FILE_LIST)), )
1625                        	@$(ECHO) "*** One or more core files found. ***"
1626                        	@$(CAT) $(CORE_FILE_LIST)
1627                        	@exit 1
1628                        endif
1629                        
1630                        ifdef PEGASUS_CORE_DIR
1631                           CORE_FILES_IN_CORE_DIR = \
1632                               $(wildcard $(PEGASUS_CORE_DIR)/$(PLATFORM_CORE_PATTERN))
1633                        endif
1634 denise.eckstein  1.97  ifdef PEGASUS_TMP
1635                           CORE_FILES_IN_TMP_DIR = \
1636                               $(wildcard $(PEGASUS_TMP)/$(PLATFORM_CORE_PATTERN))
1637                        endif
1638                        
1639                        generate_core_file_list:
1640                        	@$(RM) $(CORE_FILE_LIST)
1641                        	@$(MAKE) -s directory=$(PEGASUS_ROOT) general OPTION=CORE_SEARCH \
1642 kumpf            1.101             CORE_FILE_LIST=$(CORE_FILE_LIST)
1643 denise.eckstein  1.97  ifdef PEGASUS_CORE_DIR
1644                           ifneq ($(CORE_FILES_IN_CORE_DIR), )
1645                        	@$(ECHO) $(CORE_FILES_IN_CORE_DIR) >> $(CORE_FILE_LIST)
1646                           endif
1647                        endif
1648                        ifdef PEGASUS_TMP
1649                           ifneq ($(CORE_FILES_IN_TMP_DIR), )
1650                        	@$(ECHO) $(CORE_FILES_IN_TMP_DIR) >> $(CORE_FILE_LIST)
1651                           endif
1652                        endif
1653                        
1654                        check_for_cores:
1655                        	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1656 kumpf            1.101             generate_core_file_list
1657 denise.eckstein  1.97  	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1658 kumpf            1.101             check_core_search_results
1659 kumpf            1.102 
1660                        ###############################################################################
1661                        ##
1662                        ## option_summary - used to generate a concise list of build options for use in
1663                        ## a nightly build status report.  This is not intended to be a complete list,
1664                        ## so it is likely that some options are omitted.  New options may be added
1665                        ## here as needs dictate.
1666                        ##
1667                        ###############################################################################
1668                        
1669                        OPTION_SUMMARY =
1670                        ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
1671                            OPTION_SUMMARY += "+CMPI"
1672                        endif
1673                        ifeq ($(PEGASUS_ENABLE_CQL),true)
1674                            OPTION_SUMMARY += "+CQL"
1675                        endif
1676                        ifeq ($(PEGASUS_HAS_ICU),true)
1677                            OPTION_SUMMARY += "+ICU"
1678                        endif
1679                        ifeq ($(PEGASUS_ENABLE_IPV6),true)
1680 kumpf            1.102     OPTION_SUMMARY += "+IPv6"
1681                        endif
1682                        ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER),true)
1683                            OPTION_SUMMARY += "+JMPI"
1684                        endif
1685                        ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1686                            OPTION_SUMMARY += "+PrivSep"
1687                        endif
1688                        ifdef PEGASUS_ENABLE_EXECQUERY
1689                            OPTION_SUMMARY += "+Query"
1690                        endif
1691                        ifdef PEGASUS_ENABLE_REMOTE_CMPI
1692                            OPTION_SUMMARY += "+RCMPI"
1693                        endif
1694                        ifeq ($(PEGASUS_ENABLE_SLP),true)
1695                            OPTION_SUMMARY += "+SLP"
1696                        endif
1697                        ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
1698                            OPTION_SUMMARY += "+SQLite"
1699                        endif
1700                        ifdef PEGASUS_HAS_SSL
1701 kumpf            1.102     OPTION_SUMMARY += "+SSL"
1702                        endif
1703                        ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1704                            OPTION_SUMMARY += "+WSMan"
1705                        endif
1706                        
1707                        option_summary:
1708                        	@$(ECHO) "$(OPTION_SUMMARY)"

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2