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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2