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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2