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

   1 karl  1.57 #//%2006////////////////////////////////////////////////////////////////////////
   2 martin 1.32 #//
   3             #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
   4             #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   5             #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   6             #// IBM Corp.; EMC Corporation, The Open Group.
   7             #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   8             #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   9             #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
  10             #// EMC Corporation; VERITAS Software Corporation; The Open Group.
  11 karl   1.57 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
  12             #// EMC Corporation; Symantec Corporation; The Open Group.
  13 martin 1.32 #//
  14             #// Permission is hereby granted, free of charge, to any person obtaining a copy
  15             #// of this software and associated documentation files (the "Software"), to
  16             #// deal in the Software without restriction, including without limitation the
  17             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  18             #// sell copies of the Software, and to permit persons to whom the Software is
  19             #// furnished to do so, subject to the following conditions:
  20             #// 
  21             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
  22             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
  23             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
  24             #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  25             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  26             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  27             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  28             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  29             #//
  30             #//==============================================================================
  31 kumpf  1.1  ###############################################################################
  32             ##
  33             ## Test Makefile for Pegasus CIMOM
  34             ##
  35 jim.wunderlich 1.40 ## see the usage rule for documentation of rules etc.
  36 jim.wunderlich 1.34 ##
  37                     ##
  38 kumpf          1.1  ###############################################################################
  39                     
  40 david.dillard  1.15 error:
  41 jim.wunderlich 1.40 	@ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
  42 kumpf          1.1  
  43 kumpf          1.23 include $(PEGASUS_ROOT)/mak/config.mak
  44                     include $(PEGASUS_ROOT)/mak/test.mak
  45                     include $(PEGASUS_ROOT)/mak/commands.mak
  46                     
  47                     system = localhost
  48                     
  49 jim.wunderlich 1.34 .PHONY: FORCE
  50                     
  51                     FORCE:
  52                     
  53 jim.wunderlich 1.40 usage: FORCE
  54                     	$(USAGE)
  55                     	$(USAGE)"TestMakefile Primary Targets:"
  56                     	$(USAGE)
  57                     	$(USAGE)"The following are all standalone tests. They stop and start the server,"
  58                     	$(USAGE)"and build repositories as needed."
  59                     	$(USAGE)
  60                     	$(USAGE)"alltests           - Execute unittests and servertests"
  61                     	$(USAGE)"unittests          - Execute the unit functional tests - no repository"
  62                     	$(USAGE)"                     or active server is required"
  63                     	$(USAGE)"servertests        - Execute a basic server test suites (No security, No SSL)"
  64                     	$(USAGE)"standardtests      - Execute an extended server test suites "
  65                     	$(USAGE)"                     using multiple options."
  66 jim.wunderlich 1.45 	$(USAGE)"perftests          - Executes a brief server performance test"
  67 jim.wunderlich 1.40 	$(USAGE)
  68                     	$(USAGE)"usage2             - usage on secondary test targets"
  69 jim.wunderlich 1.43 	$(USAGE)"usagetrace         - usage on trace targets"
  70 j.alex         1.66 	$(USAGE)"stresstests        - Execute the default stress test suite"
  71 jim.wunderlich 1.40 	$(USAGE)
  72                     
  73                     usage2: FORCE
  74                     	$(USAGE)
  75                     	$(USAGE)"TestMakefile Secondary Targets:"
  76                     	$(USAGE)
  77                     	$(USAGE)"The following are run as part of the Primary target test suites and may"
  78                     	$(USAGE)"also be invoked as standalone tests."
  79                     	$(USAGE)
  80                     	$(USAGE)"TestXMLRepository       - Executes poststarttests on XML repository"
  81                     	$(USAGE)"                          built with cimmofl."
  82                     	$(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository" 
  83                     	$(USAGE)"                          built with cimmof."
  84                     	$(USAGE)"TestXMLCmpRepository    - Executes poststarttests on XML compressed"
  85                     	$(USAGE)"                          repository built with cimmofl."
  86                     	$(USAGE)"TestBinRepository       - Executes poststarttests on binary repository "
  87                     	$(USAGE)"                          built with cimmofl."
  88                     	$(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
  89                     	$(USAGE)"                          built with cimmof."
  90                     	$(USAGE)"TestBinCmpRepository    - Executes poststarttests on binary compressed"
  91                     	$(USAGE)"                          repository built with cimmofl."
  92 jim.wunderlich 1.40 	$(USAGE)
  93                     	$(USAGE)"The following require the repository to be pre-built."
  94                     	$(USAGE)
  95 sushma.fernandes 1.84 	$(USAGE)"run_SSL_CBA_TS1         - Executes the Certificate based authentication test suite."
  96                       	$(USAGE)"run_SSL_IPV4_TS1        - Executes the IPv4 SSL connection test suite."
  97                       	$(USAGE)"run_SSL_IPV6_TS1        - Executes the IPv6 SSL connection test suite."
  98 jim.wunderlich   1.40 	$(USAGE)"run_OOP_TS1             - Executes the Out Of Process Provider tests"
  99 kumpf            1.46 	$(USAGE)"run_G11N_TS1            - Executes the Globalization tests"
 100 jim.wunderlich   1.40 	$(USAGE)
 101                       	$(USAGE)"The following require the repository to be pre-built and the server to be started."
 102                       	$(USAGE)
 103                       	$(USAGE)"serversuite             - the collection of test run by the servertests rule"
 104 j.alex           1.66 	$(USAGE)"run_STRESS_TS1          - Executes the stresstests"
 105 dave.sudlik      1.78 	$(USAGE)"slptests                - Executes the slptests"
 106 s.kodali         1.85 	$(USAGE)"run_Cmpi_Sub            - Executes the CMPI subscription tests" 
 107 jim.wunderlich   1.40 	$(USAGE)
 108                       
 109                       
 110                       ##########################################################
 111                       #
 112                       # rules that are defined in Makefile
 113                       #
 114                       ##########################################################
 115 kumpf            1.21 
 116 jim.wunderlich   1.39 build: FORCE
 117                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
 118 kumpf            1.21 
 119 jim.wunderlich   1.40 world: FORCE
 120                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
 121                       
 122                       new: FORCE
 123                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
 124                       
 125 jim.wunderlich   1.39 clean: FORCE
 126 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
 127                       
 128 jim.wunderlich   1.40 depend: FORCE
 129                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
 130                       
 131 denise.eckstein  1.69 ###############################################################################
 132                       #   mak/certificate_test.mak implements three key functions for
 133                       #   testing Certificate-Based Authentication (CBA).
 134                       #   
 135                       #   setupCBATestCertificates is used to create a set of test certificates
 136                       #       make -f TestMakefile setupCBATestCertificates
 137                       #
 138                       #   runCBATestSuites is used to run a set of CBA tests
 139                       #       make -f TestMakefile runCBATestSuites
 140                       #
 141                       #   cleanupCBATestCertificates can be used to remove the test certificates
 142                       #       make -f TestMakefile cleanupCBATestCertificates
 143                       ###############################################################################
 144                       include $(PEGASUS_ROOT)/mak/certificate_test.mak
 145 jim.wunderlich   1.40 
 146                       ############################################################
 147                       #
 148                       # rules defined here
 149                       #
 150                       ############################################################
 151                       
 152 jim.wunderlich   1.41 ##
 153                       ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
 154                       ## are available and could be invoked directly, their direct usage is
 155                       ## discouraged in favor of invoking the cimstop and the cimstart rules
 156                       ## as this allows one place where additional checks, delays etc may be 
 157                       ## added in the future to control or further test the servers performance
 158                       ## in executing these commands.
 159                       ##
 160                       
 161 jim.wunderlich   1.40 #######################
 162                       #
 163                       # doc
 164                       #
 165 kumpf            1.1  doc:
 166 mday             1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 167                       	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 168 kumpf            1.1  
 169 jim.wunderlich   1.40 
 170                       #######################
 171                       #
 172                       # repositoryServer
 173                       #
 174                       repositoryServer: FORCE
 175 kumpf            1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 176 kumpf            1.19 	$(SLEEP) 5
 177 kumpf            1.90 	$(RMREPOSITORY) $(REPOSITORY_ROOT)
 178 jim.wunderlich   1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
 179 kumpf            1.19 	$(SLEEP) 5
 180 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
 181                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
 182 mday             1.6  
 183 jim.wunderlich   1.40 ######################
 184                       #
 185                       # prestarttests is being deprecated since poststarttest is being deprecated
 186                       # in favor of name more related to its intended functionality. 
 187                       #
 188                       prestarttests: prestarttests_msg shortsleep unittests
 189                       
 190                       prestarttests_msg: FORCE
 191                       	@$(ECHO) "=============================================================================="
 192                       	@$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
 193                       	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 194                       	@$(ECHO) "              The equivalent new rule is \"unittests\"."  
 195                       	@$(ECHO) "              Invoking the \"unittests\" rule now."
 196                       	@$(ECHO) "=============================================================================="
 197                       
 198                       ####################
 199                       #
 200                       # poststarttests is being deprecated since it multiply defines a 
 201                       # recursive make rule leading to ambuguity and confusion.
 202                       #
 203                       poststarttests: poststarttests_msg shortsleep servertests 
 204 jim.wunderlich   1.40 
 205                       poststarttests_msg: FORCE
 206                       	@$(ECHO) "==============================================================================="
 207                       	@$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."  
 208                       	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 209                       	@$(ECHO) "              The equivalent new rule is \"servertests\"."  
 210                       	@$(ECHO) "              Invoking the \"servertests\" rule now."
 211                       	@$(ECHO) "==============================================================================="
 212                       
 213                       #####################
 214                       #
 215                       # tests is being deprecated since it multiply defines a 
 216                       # recursive make rule leading to ambuguity and confusion.
 217                       #
 218                       tests: tests_msg shortsleep alltests
 219                       
 220                       tests_msg: FORCE
 221                       	@$(ECHO) "==================================================================="
 222                       	@$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
 223                       	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 224                       	@$(ECHO) "              The equivalent new rule is \"alltests\"."  
 225 jim.wunderlich   1.40 	@$(ECHO) "              Invoking the \"alltests\" rule now."
 226                       	@$(ECHO) "==================================================================="
 227                       
 228                       
 229                       shortsleep: FORCE
 230                       	@$(SLEEP) 5
 231                       
 232                       ####################
 233                       #
 234                       # unittests
 235                       #
 236                       unittests: FORCE
 237 h.sterling       1.38 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
 238 jim.wunderlich   1.40 	@ $(ECHO) "+++++ TestMakefile unittests complete"
 239                       
 240                       #####################
 241                       #
 242                       # servertests
 243                       #
 244 kumpf            1.1  
 245 jim.wunderlich   1.40 servertestsclean: FORCE
 246 jim.wunderlich   1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 247 lucier           1.17 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
 248                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
 249 mday             1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
 250 jim.wunderlich   1.31 
 251 jim.wunderlich   1.40 servertestssetup: FORCE
 252 denise.eckstein  1.50 ifdef PEGASUS_HAS_SSL
 253 jim.wunderlich   1.61 #
 254                       # The association between user names and certificates is stored in the 
 255                       # repository.  If the repository is recreated, we also need to re-initialize
 256                       # the trust store directories. Otherwise, the truststore content will be 
 257                       # out-of-sync with the mapping stored in the repository.
 258                       #
 259 w.otsuka         1.76 #  NOTE: Tests that require their own test namespaces to run poststarttests
 260                       #  should add their namespace creation make commands to pegasus/Makefile
 261                       #  under the testrepository tag.
 262                       #
 263 denise.eckstein  1.50 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
 264                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
 265                       endif
 266 jim.wunderlich   1.40 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
 267                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
 268 denise.eckstein  1.69 	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
 269                                   cleanupCBATestCertificates
 270                       	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
 271                                   setupCBATestCertificates
 272 jim.wunderlich   1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
 273 kumpf            1.19 	$(SLEEP) 5
 274 jim.wunderlich   1.61 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
 275                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 276 denise.eckstein  1.73 ifeq ($(PEGASUS_TEST_SDK),true)
 277                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples -f Makefile setupSDK 
 278                       endif
 279 kumpf            1.98 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
 280 denise.eckstein  1.73 
 281 dave.sudlik      1.78 # slptests are run under separate target because these testcases require that
 282                       # both the cimserver and SLP are running. There is no need for special options
 283                       # while starting cimserver.
 284                       slptests:
 285                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/slptests -f Makefile slptests
 286                       	@ $(ECHO) "+++++ TestMakefile slp test suite completed"
 287 jim.wunderlich   1.40 
 288                       servertests: servertestsclean servertestssetup serversuite
 289                       	@ $(ECHO) "+++++ TestMakefile servertests suites complete"
 290                       
 291                       serversuite: FORCE
 292 kumpf            1.98 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests -f Makefile commandtests
 293                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
 294 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
 295 jim.wunderlich   1.33 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
 296 w.otsuka         1.76 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimsub_InterOp
 297 kumpf            1.20 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
 298 carolann.graves  1.28 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
 299 carolann.graves  1.67 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
 300                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
 301 carolann.graves  1.74 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS3
 302 denise.eckstein  1.47 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
 303 sushma.fernandes 1.84 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV4_TS1
 304                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV6_TS1
 305                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_CBA_TS1
 306 kumpf            1.46 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
 307 denise.eckstein  1.69 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
 308 denise.eckstein  1.73 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
 309 carolann.graves  1.75 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1
 310 kumpf            1.87 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
 311 s.kodali         1.85 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub
 312                       endif
 313 dave.sudlik      1.88 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout1
 314                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout2
 315 kumpf            1.1  
 316 j.alex           1.66 #####################
 317                       #
 318                       # stresstests
 319                       #
 320                       stresstests:
 321                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
 322                       
 323 jim.wunderlich   1.40 ####################
 324                       #
 325 jim.wunderlich   1.45 # perftests - simple performance test until we have better
 326                       #
 327                       # - Turns statistics on (uses TestInterop until we have better)
 328 kumpf            1.81 # - runs poststarttests suite and TestBenchmark
 329 jim.wunderlich   1.45 # - runs cimperf to displat the statistics
 330                       # - turns statistics off 
 331                       #
 332                       perftests: servertestsclean servertestssetup perfsuite
 333                       
 334                       perfsuite: FORCE
 335                       	$(PEGASUS_HOME)/bin/TestInterop on
 336                       	$(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
 337                       	@ $(ECHO) " "
 338                       	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
 339                       	@ $(ECHO) " "
 340 kumpf            1.81 	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestBenchmark
 341 jim.wunderlich   1.45 	@ $(ECHO) " "
 342                       	@ $(ECHO) " "
 343                       	$(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
 344                       	@ $(ECHO) " "
 345                       	$(PEGASUS_HOME)/bin/TestInterop off
 346                       
 347 jim.wunderlich   1.40 
 348                       ####################
 349                       #
 350                       # alltests
 351                       #
 352                       alltests: unittests servertests
 353 a.dunfey         1.79 ifeq ($(OS_TYPE),windows)
 354 kumpf            1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 355 mday             1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 356 tony             1.5  endif
 357 jim.wunderlich   1.40 	@ $(ECHO) "+++++ TestMakefile alltests Complete"
 358 kumpf            1.1  
 359                       ###############################################################################
 360 denise.eckstein  1.18 ##  Test Suite Definitions
 361                       ###############################################################################
 362                       
 363                       ###############################################################################
 364                       ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
 365                       ##
 366                       ##  Configuration Options: forceProviderProcesses=true
 367                       ##
 368 jim.wunderlich   1.54 ##  If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
 369 jim.wunderlich   1.51 ##  since tests have already been run with OOP enabled.
 370                       ##
 371                       ##
 372 denise.eckstein  1.18 ###############################################################################
 373 jim.wunderlich   1.54 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 374 jim.wunderlich   1.52 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 375                       else
 376 denise.eckstein  1.18 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 377 kumpf            1.44 endif
 378 jim.wunderlich   1.51 
 379 kumpf            1.96 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
 380                           # When privilege separation is enabled, most providers run out of process
 381                           # regardless of the forceProviderProcesses setting.  The exception is
 382                           # providers that register with UserContext = 5 (CIM Server).  The only
 383                           # case of this in the automated tests is the UserContextTestProvider.
 384                           OOP_TS1_TEST_CMDS = \
 385                               $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/UserContextTestProvider/testclient@@poststarttests
 386                       else
 387                           OOP_TS1_TEST_CMDS = \
 388                               $(MAKE)@@--directory=$(PEGASUS_ROOT)@@-f@@Makefile@@poststarttests
 389                       endif
 390 denise.eckstein  1.18 
 391                       run_OOP_TS1:
 392 denise.eckstein  1.26 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 393 denise.eckstein  1.18             CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
 394                                   TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
 395 jim.wunderlich   1.51 
 396 denise.eckstein  1.18 ###############################################################################
 397                       
 398                       ###############################################################################
 399 carolann.graves  1.28 ##  IndInit Test Suite 1: IndicationService Initialization Tests 
 400                       ##
 401                       ##  Configuration Options: (none)
 402                       ##
 403                       ###############################################################################
 404                       IndInit_TS1_CONFIG_OPTIONS = 
 405                       IndInit_TS1a_TEST_CMDS = \
 406                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
 407                       IndInit_TS1b_TEST_CMDS = \
 408                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
 409                       
 410                       run_IndInit_TS1:
 411                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 412                                   CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 413                                   TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
 414                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 415                                   CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 416                                   TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
 417                       
 418                       ###############################################################################
 419 carolann.graves  1.67 ##  OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
 420                       ##
 421                       ##  Configuration Options: forceProviderProcesses=true
 422                       ##  enableAuthentication=true, enableAuthentication=false
 423                       ##
 424                       ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 425                       ##  suite is always run with OOP enabled.  This test suite causes a provider to
 426                       ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 427                       ##  to exit and the test suite to fail.
 428                       ##
 429                       ##  NOTE: The test is run once with authentication enabled, and once without
 430                       ##  authentication enabled.
 431                       ##
 432                       ###############################################################################
 433                       OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 434                       OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
 435                       OOPProvFail_TS1_TEST_CMDS = \
 436                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
 437                       
 438 carolann.graves  1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 439 carolann.graves  1.67 run_OOPProvFail_TS1:
 440                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 441                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
 442                                   TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 443                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 444                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
 445                                   TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 446 carolann.graves  1.68 else
 447                       run_OOPProvFail_TS1: FORCE
 448                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
 449                       endif
 450 carolann.graves  1.67 
 451                       ###############################################################################
 452                       ##  OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService 
 453                       ##                            Initialization Tests
 454                       ##
 455                       ##  Configuration Options: forceProviderProcesses=true
 456                       ##                         enableAuthentication=true
 457                       ##
 458                       ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 459                       ##  suite is always run with OOP enabled.  This test suite causes a provider to
 460                       ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 461                       ##  to exit and the test suite to fail.
 462                       ##
 463                       ###############################################################################
 464                       OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 465                       OOPProvFail_TS2a_TEST_CMDS = \
 466                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
 467                       OOPProvFail_TS2b_TEST_CMDS = \
 468                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
 469                       
 470 carolann.graves  1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 471 carolann.graves  1.67 run_OOPProvFail_TS2:
 472                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 473                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 474                                   TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
 475                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 476                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 477                                   TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
 478 carolann.graves  1.68 else
 479                       run_OOPProvFail_TS2: FORCE
 480                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
 481                       endif
 482 carolann.graves  1.67 
 483                       ###############################################################################
 484 carolann.graves  1.74 ##  OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
 485                       ##                            Tests
 486                       ##
 487                       ##  Configuration Options: forceProviderProcesses=true
 488                       ##                         enableAuthentication=true
 489                       ##
 490                       ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 491                       ##  suite is always run with OOP enabled.  This test suite causes a provider to
 492                       ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 493                       ##  to exit and the test suite to fail.
 494                       ##
 495                       ###############################################################################
 496                       OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 497                       OOPProvFail_TS3a_TEST_CMDS = \
 498                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
 499                       OOPProvFail_TS3b_TEST_CMDS = \
 500                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
 501                       
 502                       ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 503                       run_OOPProvFail_TS3:
 504                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 505 carolann.graves  1.74             CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 506                                   TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
 507                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 508                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 509                                   TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
 510                       else
 511                       run_OOPProvFail_TS3: FORCE
 512                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
 513                       endif
 514                       
 515                       ###############################################################################
 516 denise.eckstein  1.47 ##  Indication SSL Test Suite 1: Indication Testing over HTTPS
 517                       ##
 518                       ##  Configuration Options: (none)
 519                       ##
 520                       ###############################################################################
 521 denise.eckstein  1.50 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 522 denise.eckstein  1.47 INDSSL_TS1a_TEST_CMDS = \
 523 denise.eckstein  1.50 	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
 524                       
 525                       INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
 526 denise.eckstein  1.47 INDSSL_TS1b_TEST_CMDS = \
 527 denise.eckstein  1.50 	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
 528                       
 529 denise.eckstein  1.47 
 530                       ifdef PEGASUS_HAS_SSL
 531 jim.wunderlich   1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 532 jim.wunderlich   1.61 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
 533 denise.eckstein  1.47 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 534 denise.eckstein  1.50             CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
 535 denise.eckstein  1.47             TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
 536                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 537 denise.eckstein  1.50             CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
 538 denise.eckstein  1.47             TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
 539                       else
 540                       run_INDSSL_TS1: FORCE
 541 jim.wunderlich   1.53 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"	
 542                       endif
 543                       else
 544                       run_INDSSL_TS1: FORCE
 545                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
 546 denise.eckstein  1.47 endif
 547                       
 548                       
 549                       ###############################################################################
 550                        
 551                       ###############################################################################
 552 sushma.fernandes 1.84 ##  SSL IPv4 Test Suite : Tests SSL connections for IPv4
 553                       ##
 554                       ##  Configuration Options: enableHttpsConnection=true
 555                       ##  NOTE : Authentication is not enabled as we are only verifying
 556                       ##         if SSL based IPv6 connections are working correctly. The osinfo
 557                       ##         client requires a password to be passed for a remote connection
 558                       ##         otherwise it will prompt for one. As a work around, 
 559                       ##         we are providing a dummy password. 
 560                       ##
 561                       ###############################################################################
 562 ouyang.jian      1.91 SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
 563                             enableAuthentication=false
 564 sushma.fernandes 1.84 SSL_IPV4_TS1_CMD_1 = \
 565                               osinfo -s -w notapassword -h 127.0.0.1 -p 5989
 566                       SSL_IPV4_TS1_CMD_2 = \
 567                               osinfo -s -w notapassword -h localhost -p 5989
 568                       
 569                       ifdef PEGASUS_HAS_SSL
 570                           run_SSL_IPV4_TS1: FORCE
 571                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 572                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 573                                   TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
 574                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 575                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 576                                   TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
 577                       else
 578                           run_SSL_IPV4_TS1: FORCE
 579                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
 580                       endif
 581                       
 582                       ###############################################################################
 583                       ##  SSL IPv6 Test Suite : Tests SSL connections for IPv6
 584                       ##
 585 sushma.fernandes 1.84 ##  Configuration Options: enableHttpsConnection=true
 586                       ##  NOTE : Authentication is not enabled as we are only verifying
 587                       ##         if SSL based IPv6 connections are working correctly. The osinfo
 588                       ##         client requires a password to be passed for a remote connection
 589                       ##         otherwise it will prompt for one. As a work around,
 590                       ##         we are providing a dummy password. 
 591                       ##
 592 sushma.fernandes 1.86 ##         The IPv4-mapped IPv6 address test is only enabled for unix
 593                       ##         platforms as Windows does not support IPv4-mapped IPv6 addresses
 594                       ##         on certain versions. 
 595                       ##
 596 sushma.fernandes 1.84 ###############################################################################
 597 ouyang.jian      1.91 SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
 598                             enableAuthentication=false
 599 sushma.fernandes 1.84 SSL_IPV6_TS1_CMD_1 = \
 600                               osinfo -s -w notapassword -h ::1 -p 5989
 601                       SSL_IPV6_TS1_CMD_2 = \
 602                               osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
 603                       
 604                       ifdef PEGASUS_HAS_SSL
 605                           run_SSL_IPV6_TS1: FORCE
 606                           ifeq ($(PEGASUS_TEST_IPV6), true)
 607                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 608                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 609                                   TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
 610 sushma.fernandes 1.86       ifeq ($(OS_TYPE), unix)
 611 sushma.fernandes 1.84 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 612                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 613                                   TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
 614 sushma.fernandes 1.86       endif
 615 sushma.fernandes 1.84     else
 616                       	@ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
 617                           endif
 618                       else
 619                           run_SSL_IPV6_TS1: FORCE
 620                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
 621                       endif
 622                       
 623                       ###############################################################################
 624                       ##  CBA SSL Test Suite 1: Certificate based authentication Tests
 625 nag.boranna      1.27 ##
 626                       ##  Configuration Options: enableAuthentication=true
 627                       ##                         enableHttpsConnection=true
 628                       ##                         sslClientVerificationMode=optional
 629                       ##                         sslTrustStoreUserName=$(CURRENT_USER)
 630                       ##
 631                       ###############################################################################
 632 sushma.fernandes 1.84 SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
 633 nag.boranna      1.27        sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
 634 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_1 = \
 635 sushma.fernandes 1.71        $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
 636 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_2 = \
 637 sushma.fernandes 1.72        $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
 638 nag.boranna      1.27 
 639 jim.wunderlich   1.39 ifdef PEGASUS_HAS_SSL
 640 jim.wunderlich   1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 641 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
 642 nag.boranna      1.27 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 643 sushma.fernandes 1.84             CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 644                                   TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
 645 sushma.fernandes 1.72 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 646 sushma.fernandes 1.84             CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 647                                   TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
 648 jim.wunderlich   1.39 else
 649 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
 650                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"	
 651 jim.wunderlich   1.53 endif
 652                       else
 653 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
 654                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
 655 jim.wunderlich   1.39 
 656                       endif
 657                       
 658 jim.wunderlich   1.61 ############################################################################
 659                       # 
 660                       # Create_SSL_Certificate
 661                       #
 662                       # create a certificate that can be used for certification testing.
 663                       # It is currently used by the following tests:
 664                       #            -run_INDSSL_TS1
 665                       #
 666                       Create_SSL_Certificate_ignore: FORCE
 667                       	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 668                       
 669                       Create_SSL_Certificate: FORCE
 670                       ifdef PEGASUS_HAS_SSL
 671                       ifdef PEGASUS_TEST_USER_DEFINED
 672                       	$(ECHO) "Creating SSL certificate for test"
 673 sushma.fernandes 1.71 	cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
 674 jim.wunderlich   1.61 endif
 675                       else
 676                       	$(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
 677                       endif
 678                       
 679 kumpf            1.46 ###############################################################################
 680                       ##  G11N Test Suite 1: Globalization Tests 
 681                       ##
 682                       ##  Configuration Options: forceProviderProcesses=false
 683                       ##
 684                       ###############################################################################
 685                       G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 686                       G11N_TS1_TEST_CMDS = \
 687                               $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
 688                                   -f Makefile g11ntest
 689                       
 690                       run_G11N_TS1:
 691                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 692                                   CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
 693                                   TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
 694 j.alex           1.66 
 695                       ###############################################################################
 696                       ##  Stress Test Suite 1:  Default Stress Tests
 697                       ##
 698                       ##  Configuration Options: (none)
 699                       ##
 700                       ###############################################################################
 701                       STRESS_TS1_CONFIG_OPTIONS =
 702                       STRESS_TS1_TEST_CMDS = \
 703                               TestStressTestController
 704                       
 705                       run_STRESS_TS1:
 706                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 707                                   CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
 708                                   TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
 709 kumpf            1.46 ###############################################################################
 710                       
 711 denise.eckstein  1.73 ###############################################################################
 712                       ##  SDK Test Suite 1:  SDK Tests
 713                       ##
 714                       ##  Configuration Options: (none)
 715                       ##
 716                       ###############################################################################
 717                       SDK_TS1_CONFIG_OPTIONS =
 718                       SDK_TS1_TEST_CMDS = \
 719                               $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
 720                                   -f Makefile testSDK 
 721                       
 722                       ifeq ($(PEGASUS_TEST_SDK),true)
 723                       run_SDK_TS1: FORCE
 724                       	$(MAKE) --directory=$(PEGASUS_ROOT)/mak \
 725                                   -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
 726                                   PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
 727                                   PEGASUS_INCLUDE_DIR=/include
 728                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 729                                   -f Makefile clean
 730                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 731                                   -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
 732 denise.eckstein  1.73 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 733                                   CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
 734                                   TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
 735                       else
 736                       run_SDK_TS1: FORCE
 737                       	@ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"	
 738                       endif
 739                       ###############################################################################
 740 jim.wunderlich   1.39 
 741 nag.boranna      1.27 ###############################################################################
 742 carolann.graves  1.75 ##  Export Client SSL Test Suite 1:
 743                       ##
 744                       ##  Configuration Options: enableHttpsConnection=true
 745                       ##
 746                       ###############################################################################
 747                       ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
 748                       ExportClientSSL_TS1_TEST_CMDS = \
 749                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
 750                       
 751                       ifdef PEGASUS_HAS_SSL
 752                       run_ExportClientSSL_TS1:
 753                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 754                                   CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
 755                                   TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
 756                       else
 757                       run_ExportClientSSL_TS1: FORCE
 758                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
 759                       endif
 760                       
 761                       ###############################################################################
 762 nag.boranna      1.27 
 763 jim.wunderlich   1.34 
 764                       
 765 w.otsuka         1.76 ###############################################################################
 766 dave.sudlik      1.88 ##  idleConnectionTimeout Test Suite 1:  uses ChunkingStressProvider Tests
 767                       ##
 768 dave.sudlik      1.89 ##  Configuration Options: idleConnectionTime=55
 769 dave.sudlik      1.88 ##
 770                       ###############################################################################
 771 dave.sudlik      1.89 IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS = idleConnectionTimeout=55
 772 dave.sudlik      1.88 IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS = \
 773                       	$(MAKE)@@--directory \
 774                                   $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \
 775                                   -f@@Makefile@@poststarttests
 776                       run_idleConnectionTimeout1: FORCE
 777                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 778                                   CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \
 779                                   TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS)"
 780                       ###############################################################################
 781                       
 782                       
 783                       ###############################################################################
 784                       ##  idleConnectionTimeout Test Suite 2:  uses IdleConnectionTimeout client test
 785                       ##
 786                       ##  Configuration Options: idleConnectionTime=6
 787                       ##
 788                       ###############################################################################
 789                       IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS = idleConnectionTimeout=6
 790                       IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS = \
 791                       	$(MAKE)@@--directory \
 792                                   $(PEGASUS_ROOT)/src/Pegasus/Client/tests/IdleConnectionTimeout/ \
 793 dave.sudlik      1.88             -f@@Makefile@@timeoutTest@@IDLETIME=10
 794                       run_idleConnectionTimeout2: FORCE
 795                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 796                                   CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS)" \
 797                                   TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS)"
 798                       ###############################################################################
 799                       
 800                       
 801                       ###############################################################################
 802 w.otsuka         1.76 ##  cimsub CLI Test Suite 1:  PG_InterOp Tests
 803                       ##
 804                       ##  Configuration Options: (none)
 805                       ##
 806                       ###############################################################################
 807                       CIMSUB_INTEROP_CONFIG_OPTIONS =
 808                       CIMSUB_INTEROP_TEST_CMDS = \
 809                       	$(MAKE) --directory \
 810                                   $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
 811                                   -f Makefile cimsubTest_InterOp
 812                       run_Cimsub_InterOp: FORCE
 813                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 814                                   CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
 815                                   TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
 816                       ###############################################################################
 817                       
 818                       ###############################################################################
 819 s.kodali         1.85 ## CMPI subscription activation Test Suite 1:
 820                       ##
 821                       ## Configuration Options: (none)
 822                       ##
 823                       ###############################################################################
 824                       CMPI_SUB_TEST_CONFIG_OPTIONS=
 825                       CMPI_SUBa_TEST_CMDS = \
 826                       	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
 827                       CMPI_SUBb_TEST_CMDS = \
 828                       	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
 829                       CMPI_SUBc_TEST_CMDS =  \
 830                       	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
 831                       run_Cmpi_Sub: FORCE
 832                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 833                                   CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 834                                   TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
 835                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 836                                   CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 837                                   TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
 838                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 839                                   CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 840 s.kodali         1.85             TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
 841                        
 842                       ##############################################################################
 843 w.otsuka         1.76 
 844                       
 845 jim.wunderlich   1.34 ##############################################################################
 846                       ##
 847                       ## TestXMLRepository rule is used to run the poststarttests suite on
 848                       ## the XML Repository built using cimmofl
 849                       ##
 850                       ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
 851                       ## the XML Repository built using cimmof
 852                       ##
 853                       ## TestXMLCmpRepository rule is used to run the poststarttest suite on 
 854                       ## the XML Compressed Repository built using cimmofl
 855                       ##
 856                       
 857                       ############################
 858                       ##
 859                       ## TestXMLRepository
 860                       ##
 861                       
 862                       TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
 863                       	@ $(ECHO) TestXMLRepository +++++ passed all test
 864                       
 865                       ############################
 866 jim.wunderlich   1.34 ##
 867                       ## TestXMLRepositoryServer
 868                       ##
 869                       TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
 870                       	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
 871                       
 872                       ############################
 873                       ##
 874                       ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
 875                       ##
 876                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 877                       TestXMLCmpRepository: FORCE
 878                       	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
 879                       	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
 880                       else
 881                       
 882                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
 883                       
 884                       TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
 885                       	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
 886                       else
 887 jim.wunderlich   1.34 TestXMLCmpRepository: FORCE
 888                       	@ $(ECHO) TestXMLCmpRepository +++++ Not tested 
 889                       	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
 890                       	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
 891                       endif
 892                       endif
 893                       
 894                       ###########################
 895                       ##
 896                       ## TestXMLClean
 897                       ##
 898                       TestXMLClean: FORCE
 899                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 900                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
 901                       
 902                       
 903                       ###########################
 904                       ##
 905                       ## TestXMLStartServer
 906                       ##
 907                       TestXMLStartServer: FORCE
 908 jim.wunderlich   1.34 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
 909                       	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
 910                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
 911                       	$(SLEEP) 5
 912                       
 913                       ####
 914                       #### The following caused the cimserver to fail on startup
 915                       ####
 916                       ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
 917                       
 918                       ###########################
 919                       ##
 920                       ## TestXMLBuildRepo
 921                       ##
 922                       TestXMLBuildRepo: FORCE
 923                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 924                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 925                       
 926                       
 927                       ###########################
 928                       ##
 929 jim.wunderlich   1.34 ## TestXMLBuildRepoServ
 930                       ##
 931                       TestXMLBuildRepoServ: TestXMLStartServer
 932                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 933                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 934                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 935                       
 936                       
 937                       ###########################
 938                       ##
 939                       ## TestXMLRepo
 940                       ##
 941 jim.wunderlich   1.40 TestXMLRepo: servertestsclean
 942 jim.wunderlich   1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
 943 jim.wunderlich   1.34 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 944                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 945                       
 946                       
 947                       
 948                       
 949                       
 950                       
 951 jim.wunderlich   1.29 ##############################################################################
 952                       ##
 953 jim.wunderlich   1.31 ## TestBinRepository rule is used to run the poststarttests suite on
 954 jim.wunderlich   1.33 ## the Binary Repository built using cimmofl
 955 jim.wunderlich   1.29 ##
 956 jim.wunderlich   1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
 957 jim.wunderlich   1.33 ## the Binary Repository built using cimmof
 958                       ##
 959                       ## TestBinCmpRepository rule is used to run the poststarttest suite on 
 960                       ## the Binry Compressed Repository built using cimmofl
 961 jim.wunderlich   1.29 ##
 962 jim.wunderlich   1.31 
 963                       ############################
 964 jim.wunderlich   1.29 ##
 965 jim.wunderlich   1.31 ## TestBinRepository
 966 jim.wunderlich   1.29 ##
 967 jim.wunderlich   1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
 968                       ### the nightly tests to run
 969                       
 970 jim.wunderlich   1.31 TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
 971 jim.wunderlich   1.33 	@ $(ECHO) TestBinRepository +++++ passed all test
 972 jim.wunderlich   1.36 
 973 jim.wunderlich   1.29 
 974 jim.wunderlich   1.31 ############################
 975                       ##
 976                       ## TestBinRepositoryServer
 977                       ##
 978                       TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
 979 jim.wunderlich   1.33 	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
 980                       
 981                       ############################
 982                       ##
 983                       ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
 984                       ##
 985                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 986 jim.wunderlich   1.34 TestBinCmpRepository: FORCE
 987 jim.wunderlich   1.33 	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
 988                       	@ $(ECHO) TestBinCmpRepository +++++ passed all test
 989                       else
 990                       
 991                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
 992                       
 993 jim.wunderlich   1.34 TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
 994 jim.wunderlich   1.33 	@ $(ECHO) TestBinCmpRepository +++++ passed all test
 995                       else
 996 jim.wunderlich   1.34 TestBinCmpRepository: FORCE
 997 jim.wunderlich   1.33 	@ $(ECHO) TestBinCmpRepository +++++ Not tested 
 998                       	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
 999                       	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
1000                       endif
1001                       endif
1002                       
1003                       
1004 jim.wunderlich   1.31 ###########################
1005                       ##
1006                       ## TestBinClean
1007                       ##
1008 jim.wunderlich   1.34 TestBinClean: FORCE
1009 jim.wunderlich   1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
1010                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
1011 jim.wunderlich   1.29 
1012 jim.wunderlich   1.31 
1013                       ###########################
1014 jim.wunderlich   1.29 ##
1015 jim.wunderlich   1.31 ## TestBinStartServer
1016 jim.wunderlich   1.29 ##
1017 jim.wunderlich   1.34 TestBinStartServer: FORCE
1018 jim.wunderlich   1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
1019 jim.wunderlich   1.31 	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
1020                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
1021 jim.wunderlich   1.29 	$(SLEEP) 5
1022 jim.wunderlich   1.31 
1023                       ###########################
1024 jim.wunderlich   1.29 ##
1025 jim.wunderlich   1.31 ## TestBinBuildRepo
1026 jim.wunderlich   1.29 ##
1027 jim.wunderlich   1.34 TestBinBuildRepo: FORCE
1028 jim.wunderlich   1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1029                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1030 jim.wunderlich   1.31 
1031                       
1032                       ###########################
1033                       ##
1034                       ## TestBinBuildRepoServ
1035                       ##
1036                       TestBinBuildRepoServ: TestBinStartServer
1037                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1038                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1039                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
1040                       
1041                       
1042                       ###########################
1043                       ##
1044                       ## TestBinRepo
1045                       ##
1046 jim.wunderlich   1.40 TestBinRepo: servertestsclean 
1047 jim.wunderlich   1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
1048 jim.wunderlich   1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1049 jim.wunderlich   1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
1050 jim.wunderlich   1.29 
1051                       
1052                       
1053 jim.wunderlich   1.34 
1054                       ############################
1055                       ##
1056                       ## TestCmpBuild - used to compile the repository for compression
1057                       ##
1058                       TestCmpBuild: FORCE
1059                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1060                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1061                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1062                       
1063                       
1064                       ############################
1065                       ##
1066                       ## TestRegBuild - used to compile the repository for no compression
1067                       ##
1068                       TestRegBuild: FORCE
1069                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1070                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend 
1071                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository 
1072                       
1073                       
1074 nag.boranna      1.27 ###############################################################################
1075 kumpf            1.1  ##
1076                       ## Trace Configuration
1077                       ##
1078 jim.wunderlich   1.43 ## Options: see usagetrace rule
1079                       ##
1080                       ###############################################################################
1081                       
1082                       usagetrace: FORCE
1083                       	$(USAGE)
1084 jim.wunderlich   1.60 	$(USAGE)"TestMakefile Trace Commands: "
1085                       	$(USAGE)"  The cimserver must be running when using W=c which is the default for W"
1086 jim.wunderlich   1.43 	$(USAGE)
1087 jim.wunderlich   1.60 	$(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
1088                       	$(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
1089                       	$(USAGE)" tracesettings:                      Displays all trace settings."
1090                       	$(USAGE)" tracecomp:                          Displays a trace componenets list."
1091                       	$(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1092                       	$(USAGE)"                           Enables tracing on component C at trace level L."
1093                       	$(USAGE)
1094                       	$(USAGE)" W defaults to c in the above commands where W can be specified" 
1095 jim.wunderlich   1.43 	$(USAGE)
1096 jim.wunderlich   1.60 	$(USAGE)"  Usage examples:"
1097                       	$(USAGE)"   traceon       turns on trace in current server config"
1098                       	$(USAGE)"   traceon W=c   turns on trace in current server config"
1099                       	$(USAGE)"   traceon W=p   turns on trace in planned server config"
1100                       	$(USAGE)"   traceoff      turns on trace in current server config"
1101                       	$(USAGE)"   traceoff W=c  turns on trace in current server config"
1102                       	$(USAGE)"   traceoff W=p  turns on trace in planned server config"
1103                       	$(USAGE)
1104                       	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
1105                       	$(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
1106                       	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
1107                       	$(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
1108 jim.wunderlich   1.43 	$(USAGE)
1109                       	$(USAGE)
1110                       
1111                       traceon: FORCE
1112 jim.wunderlich   1.60 	@ cimconfig -s traceComponents=ALL -$W 
1113                       	@ cimconfig -s traceLevel=3 -$W
1114                       	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1115                       
1116 jim.wunderlich   1.43 
1117                       traceoff: FORCE
1118 jim.wunderlich   1.60 	@ cimconfig -s traceComponents=  -$W
1119                       	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1120 jim.wunderlich   1.43 
1121                       
1122                       tracesettings: FORCE
1123                       	@ $(ECHO) " "
1124 jim.wunderlich   1.60 	cimconfig -g traceComponents -c -p
1125 jim.wunderlich   1.43 	@ $(ECHO) " "
1126 jim.wunderlich   1.60 	cimconfig -g traceLevel -c -p
1127 jim.wunderlich   1.43 	@ $(ECHO) " "
1128 jim.wunderlich   1.60 	cimconfig -g traceFilePath -c -p
1129 jim.wunderlich   1.43 	@ $(ECHO) " "
1130                       
1131                       traceon-CL: FORCE
1132 jim.wunderlich   1.60 	@ cimconfig -s traceComponents=$C -$W
1133                       	@ cimconfig -s traceLevel=$L -$W
1134                       	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1135 jim.wunderlich   1.43 
1136                       tracecomp: FORCE
1137                       	$(USAGE)
1138                       	$(USAGE)"Trace component list:"
1139                       	$(USAGE)
1140                       	$(USAGE)"Channel"
1141                       	$(USAGE)"XmlParser"
1142                       	$(USAGE)"XmlWriter"
1143                       	$(USAGE)"XmlReader"
1144                       	$(USAGE)"XmlIO"
1145                       	$(USAGE)"Http"
1146                       	$(USAGE)"CimData"
1147                       	$(USAGE)"ProvManager"
1148                       	$(USAGE)"Repository"
1149                       	$(USAGE)"Dispatcher"
1150                       	$(USAGE)"OsAbstraction"
1151                       	$(USAGE)"Config"
1152                       	$(USAGE)"IndDelivery"
1153                       	$(USAGE)"IndHandler"
1154                       	$(USAGE)"Authentication"
1155                       	$(USAGE)"Authorization"
1156 jim.wunderlich   1.43 	$(USAGE)"UserManager"
1157                       	$(USAGE)"SubscriptionService"
1158                       	$(USAGE)"Registration"
1159                       	$(USAGE)"Shutdown"
1160                       	$(USAGE)"Server"
1161                       	$(USAGE)"IndicationService"
1162                       	$(USAGE)"IndicationServiceInternal"
1163                       	$(USAGE)"ConfigurationManager"
1164                       	$(USAGE)"MessageQueueService"
1165                       	$(USAGE)"ProviderManager"
1166                       	$(USAGE)"ObjectResolution"
1167                       	$(USAGE)"WQL"
1168                       	$(USAGE)"CQL"
1169                       	$(USAGE)"Thread"
1170                       	$(USAGE)"MetaDispatcher"
1171                       	$(USAGE)"IPC"
1172                       	$(USAGE)"IndicationHandlerService"
1173                       	$(USAGE)"CIMExportRequestDispatcher"
1174                       	$(USAGE)"Memory"
1175                       	$(USAGE)"SSL"
1176                       	$(USAGE)"ControlProvider"
1177 jim.wunderlich   1.43 	$(USAGE)"AsyncOpNode"
1178                       	$(USAGE)"CIMOMHandle"
1179                       	$(USAGE)"L10N"
1180                       	$(USAGE)"ExportClient"
1181                       	$(USAGE)"Listener"
1182                       	$(USAGE)"DiscardedData"
1183                       	$(USAGE)"ProviderAgent"
1184                       	$(USAGE)
1185                       
1186                       ###############################################################################
1187                       ##
1188                       ## Trace Configuration - Old rules being deprecated
1189                       ##
1190 kumpf            1.1  ## Options:
1191                       ##      XMLTraceOn: Enables XML request and response tracing.
1192                       ##      ProviderLoadTraceOn: Enables Provider load tracing.
1193                       ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1194                       ##                                 load tracing.
1195                       ##      AllTraceOn: Enables all tracing.
1196                       ##      AllTraceOff: Disables all tracing.
1197                       ##      list: Lists trace settings.
1198                       ##
1199                       ###############################################################################
1200                       
1201                       XMLTraceOn:
1202                       	cimconfig -s traceComponents=XmlIO -c
1203                       	cimconfig -s traceLevel=3 -c
1204                       	cimconfig -g traceComponents
1205                       	cimconfig -g traceLevel
1206                       
1207                       ProviderLoadTraceOn:
1208                       	cimconfig -s traceComponents=ProvManager,OsAbstraction
1209                       	cimconfig -s traceLevel=3 -c
1210                       	cimconfig -g traceComponents
1211 kumpf            1.1  	cimconfig -g traceLevel
1212                       
1213                       XML+ProviderLoadTraceOn:
1214                       	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1215                       	cimconfig -s traceLevel=3 -c
1216                       	cimconfig -g traceComponents
1217                       	cimconfig -g traceLevel
1218                       
1219 jim.wunderlich   1.43 AllTraceOn: traceon
1220                       
1221                       AllTraceOff: traceoff
1222 kumpf            1.1  
1223 jim.wunderlich   1.43 list: tracesettings
1224 kumpf            1.1  
1225 jim.wunderlich   1.55 #########################################################################
1226                       # standardtests
1227                       #
1228                       # More testing options...
1229                       #
1230                       # The standard test seem to contain additional test that may not be able 
1231                       # to run on all platforms so they have been grouped here for now rather than
1232                       # being included in the serversuite rule.
1233                       #
1234                       # The test are:
1235                       #      TestCimmof
1236                       #      TestNoSecurity
1237                       #      TestLocalSecurity
1238                       #      TestRemoteSecurity
1239                       #      TestAuthorization
1240                       #
1241                       # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1242                       #       TestNoSecurity.
1243                       #
1244                       # NOTE: The TestNoSecurity step runs the servertests which builds the
1245                       #       the repository that is then left in place for the remaining tests.
1246 jim.wunderlich   1.55 #       The cimof test must be before the TestNosecurity step as it removes
1247                       #       the repository builds a new one with cimmofl and another one with
1248                       #       cimmof and then compares them. 
1249                       #
1250                       # NOTE: The Authentication test is comprised of EnableAuthentication, 
1251                       #       TestLocalSecurity and TestRemoteSecurity. 
1252                       #
1253                       # NOTE: The Authorization test is comprised of EnableAuthorization and
1254                       #       TestAuthorization. 
1255                       #
1256                       # NOTE: The EnableAuthentication and EnableAuthorization steps require 
1257                       #       root access. Pegasus doesn't currently have the infrastructure
1258                       #       in place to run the server as root and run the test as non-root.
1259                       #       Rather than run everything, server, tests, providers, clients etc.
1260                       #       as root many testers prefer to run the tests as non-root. Setting
1261                       #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to 
1262                       #       facilitate that.
1263                       #
1264 kumpf            1.1  
1265 jim.wunderlich   1.40 standardtests: FORCE
1266 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1267                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1268 kumpf            1.94 #	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1269                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository testrepository
1270 jim.wunderlich   1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
1271 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1272                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1273                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1274                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1275                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
1276 jim.wunderlich   1.53 else
1277 jim.wunderlich   1.55 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
1278 jim.wunderlich   1.53 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "	
1279                       endif
1280 kumpf            1.94         # Reset the security options to the defaults
1281                       	cimconfig -u enableNamespaceAuthorization -p
1282                       	cimconfig -u enableAuthentication -p
1283 kumpf            1.93 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1284 jim.wunderlich   1.40 	@ $(ECHO) "+++++ TestMakefile standardtests complete"
1285 kumpf            1.1  
1286                       TestNoSecurity:
1287 jim.wunderlich   1.56 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
1288 kumpf            1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1289 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1290 kumpf            1.1  
1291                       TestLocalSecurity:
1292 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1293 kumpf            1.1  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1294                       
1295                       TestRemoteSecurity:
1296 jim.wunderlich   1.59 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1297                       	$(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
1298 kumpf            1.1  
1299                       TestAuthorization:
1300 jim.wunderlich   1.59 	TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1301 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1302 jim.wunderlich   1.59 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1303                       	$(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
1304 kumpf            1.1  
1305                       TestSubscriptions:
1306 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1307 kumpf            1.1  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1308                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1309 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1310 david.dillard    1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1311 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1312 kumpf            1.1  
1313                       TestCimmof:
1314 kumpf            1.95         # Build the repository with cimmofl and cimmof and compare them.
1315                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1316                       	-@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-save
1317                       	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1318                       	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1319                       	@$(ECHO) $(CIM_SCHEMA_DIR)
1320                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1321                       	@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmofl
1322                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
1323                       	@$(ECHO) $(CIM_SCHEMA_DIR)
1324                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
1325                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1326                       	@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmof
1327                       	-@$(MOVE) $(REPOSITORY_DIR)/repository-save $(REPOSITORY_DIR)/repository
1328                       	TestCompareRepositories $(REPOSITORY_DIR)/repository-cimmofl $(REPOSITORY_DIR)/repository-cimmof
1329                       	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1330                       	@$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1331 kumpf            1.1  
1332                       RunTestClientLocal:
1333                       	TestClient -local
1334                       
1335                       DisableSecurity:
1336 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1337 kumpf            1.1  	cimconfig -s enableAuthentication=false -p
1338                       	cimconfig -s enableNamespaceAuthorization=false -p
1339                       
1340 jim.wunderlich   1.61 EnableUsers:
1341                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1342                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1343                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1344                       
1345 kumpf            1.1  EnableAuthentication:
1346 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1347 kumpf            1.1  	cimconfig -s enableAuthentication=true -p
1348 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1349                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1350 kumpf            1.1  
1351                       EnableAuthorization:
1352 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1353 kumpf            1.10 	cimconfig -s enableNamespaceAuthorization=true -p
1354 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1355                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1356 kumpf            1.1  
1357                       EnableSSL:
1358 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1359                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1360 kumpf            1.1  
1361 jim.wunderlich   1.61 #
1362                       # ConfigureUsers
1363                       #
1364                       # The server must be running prior to invoking this rule
1365                       #
1366 kumpf            1.1  ConfigureUsers:
1367                       ifndef PEGASUS_PAM_AUTHENTICATION
1368 jim.wunderlich   1.62 	-cimuser -l
1369 jim.wunderlich   1.61 	-cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1370 kumpf            1.1  endif
1371                       
1372 jim.wunderlich   1.61 #
1373                       # ConfigureAuthorizations rule
1374                       #
1375                       # The server must be running prior to invoking this rule
1376                       #
1377 kumpf            1.1  ConfigureAuthorizations:
1378 jim.wunderlich   1.59 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1379                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1380                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1381                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1382                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1383                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1384                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1385                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1386                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1387 sushma.fernandes 1.80 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1388                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
1389 kumpf            1.65 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1390 jim.wunderlich   1.59 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1391                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1392                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1393                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1394                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1395                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1396                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1397                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1398                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1399                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1400                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1401 kumpf            1.82 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1402 kumpf            1.83 	cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
1403 kumpf            1.82 endif
1404 kumpf            1.1  
1405 jim.wunderlich   1.41 startcimWithoutSSL: FORCE
1406                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1407 kumpf            1.19 	$(SLEEP) 5
1408 kumpf            1.1  
1409 jim.wunderlich   1.41 startcimWithSSL: FORCE
1410                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1411 kumpf            1.19 	$(SLEEP) 5
1412 j.alex           1.66 
1413 denise.eckstein  1.97 ###############################################################################
1414                       ##
1415                       ## check_for_cores - used to search for core files in the build environment.
1416                       ##
1417                       ## This option will search (1) each source directory, (2) the PEGASUS_CORE_DIR
1418                       ## if it is defined and (3) the PEGASUS_TMP directory.
1419                       ##
1420                       ###############################################################################
1421                       CORE_FILE_LIST = $(PEGASUS_HOME)/CoreFileList
1422                       
1423                       check_core_search_results:
1424                       ifneq ($(wildcard $(CORE_FILE_LIST)), )
1425                       	@$(ECHO) "*** One or more core files found. ***"
1426                       	@$(CAT) $(CORE_FILE_LIST)
1427                       	@exit 1
1428                       endif
1429                       
1430                       ifdef PEGASUS_CORE_DIR
1431                          CORE_FILES_IN_CORE_DIR = \
1432                              $(wildcard $(PEGASUS_CORE_DIR)/$(PLATFORM_CORE_PATTERN))
1433                       endif
1434 denise.eckstein  1.97 ifdef PEGASUS_TMP
1435                          CORE_FILES_IN_TMP_DIR = \
1436                              $(wildcard $(PEGASUS_TMP)/$(PLATFORM_CORE_PATTERN))
1437                       endif
1438                       
1439                       generate_core_file_list:
1440                       	@$(RM) $(CORE_FILE_LIST)
1441                       	@$(MAKE) -s directory=$(PEGASUS_ROOT) general OPTION=CORE_SEARCH \
1442                                   CORE_FILE_LIST=$(CORE_FILE_LIST) 
1443                       ifdef PEGASUS_CORE_DIR
1444                          ifneq ($(CORE_FILES_IN_CORE_DIR), )
1445                       	@$(ECHO) $(CORE_FILES_IN_CORE_DIR) >> $(CORE_FILE_LIST)
1446                          endif
1447                       endif
1448                       ifdef PEGASUS_TMP
1449                          ifneq ($(CORE_FILES_IN_TMP_DIR), )
1450                       	@$(ECHO) $(CORE_FILES_IN_TMP_DIR) >> $(CORE_FILE_LIST)
1451                          endif
1452                       endif
1453                       
1454                       check_for_cores:
1455 denise.eckstein  1.97 	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1456                                   generate_core_file_list 
1457                       	@$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1458                                   check_core_search_results 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2