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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2