(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.1  	$(RMDIRHIER) $(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                       
 280 dave.sudlik      1.78 # slptests are run under separate target because these testcases require that
 281                       # both the cimserver and SLP are running. There is no need for special options
 282                       # while starting cimserver.
 283                       slptests:
 284                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/slptests -f Makefile slptests
 285                       	@ $(ECHO) "+++++ TestMakefile slp test suite completed"
 286 jim.wunderlich   1.40 
 287                       servertests: servertestsclean servertestssetup serversuite
 288                       	@ $(ECHO) "+++++ TestMakefile servertests suites complete"
 289                       
 290                       serversuite: FORCE
 291 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
 292 jim.wunderlich   1.33 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
 293 w.otsuka         1.76 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimsub_InterOp
 294 kumpf            1.20 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
 295 carolann.graves  1.28 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
 296 carolann.graves  1.67 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
 297                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
 298 carolann.graves  1.74 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS3
 299 denise.eckstein  1.47 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
 300 sushma.fernandes 1.84 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV4_TS1
 301                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV6_TS1
 302                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_CBA_TS1
 303 kumpf            1.46 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
 304 denise.eckstein  1.69 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
 305 denise.eckstein  1.73 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
 306 carolann.graves  1.75 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1
 307 s.kodali         1.85 ifdef PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER
 308                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub
 309                       endif
 310 kumpf            1.1  
 311 j.alex           1.66 #####################
 312                       #
 313                       # stresstests
 314                       #
 315                       stresstests:
 316                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
 317                       
 318 jim.wunderlich   1.40 ####################
 319                       #
 320 jim.wunderlich   1.45 # perftests - simple performance test until we have better
 321                       #
 322                       # - Turns statistics on (uses TestInterop until we have better)
 323 kumpf            1.81 # - runs poststarttests suite and TestBenchmark
 324 jim.wunderlich   1.45 # - runs cimperf to displat the statistics
 325                       # - turns statistics off 
 326                       #
 327                       perftests: servertestsclean servertestssetup perfsuite
 328                       
 329                       perfsuite: FORCE
 330                       	$(PEGASUS_HOME)/bin/TestInterop on
 331                       	$(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
 332                       	@ $(ECHO) " "
 333                       	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
 334                       	@ $(ECHO) " "
 335 kumpf            1.81 	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestBenchmark
 336 jim.wunderlich   1.45 	@ $(ECHO) " "
 337                       	@ $(ECHO) " "
 338                       	$(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
 339                       	@ $(ECHO) " "
 340                       	$(PEGASUS_HOME)/bin/TestInterop off
 341                       
 342 jim.wunderlich   1.40 
 343                       ####################
 344                       #
 345                       # alltests
 346                       #
 347                       alltests: unittests servertests
 348 a.dunfey         1.79 ifeq ($(OS_TYPE),windows)
 349 kumpf            1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 350 mday             1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 351 tony             1.5  endif
 352 jim.wunderlich   1.40 	@ $(ECHO) "+++++ TestMakefile alltests Complete"
 353 kumpf            1.1  
 354                       ###############################################################################
 355 denise.eckstein  1.18 ##  Test Suite Definitions
 356                       ###############################################################################
 357                       
 358                       ###############################################################################
 359                       ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
 360                       ##
 361                       ##  Configuration Options: forceProviderProcesses=true
 362                       ##
 363 jim.wunderlich   1.54 ##  If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
 364 jim.wunderlich   1.51 ##  since tests have already been run with OOP enabled.
 365                       ##
 366                       ##
 367 denise.eckstein  1.18 ###############################################################################
 368 jim.wunderlich   1.54 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 369 jim.wunderlich   1.52 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 370                       else
 371 denise.eckstein  1.18 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 372 kumpf            1.44 endif
 373 jim.wunderlich   1.51 
 374 denise.eckstein  1.18 OOP_TS1_TEST_CMDS = \
 375 jim.wunderlich   1.51         $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
 376 denise.eckstein  1.18 
 377                       run_OOP_TS1:
 378 denise.eckstein  1.26 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 379 denise.eckstein  1.18             CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
 380                                   TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
 381 jim.wunderlich   1.51 
 382 denise.eckstein  1.18 ###############################################################################
 383                       
 384                       ###############################################################################
 385 carolann.graves  1.28 ##  IndInit Test Suite 1: IndicationService Initialization Tests 
 386                       ##
 387                       ##  Configuration Options: (none)
 388                       ##
 389                       ###############################################################################
 390                       IndInit_TS1_CONFIG_OPTIONS = 
 391                       IndInit_TS1a_TEST_CMDS = \
 392                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
 393                       IndInit_TS1b_TEST_CMDS = \
 394                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
 395                       
 396                       run_IndInit_TS1:
 397                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 398                                   CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 399                                   TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
 400                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 401                                   CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 402                                   TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
 403                       
 404                       ###############################################################################
 405 carolann.graves  1.67 ##  OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
 406                       ##
 407                       ##  Configuration Options: forceProviderProcesses=true
 408                       ##  enableAuthentication=true, enableAuthentication=false
 409                       ##
 410                       ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 411                       ##  suite is always run with OOP enabled.  This test suite causes a provider to
 412                       ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 413                       ##  to exit and the test suite to fail.
 414                       ##
 415                       ##  NOTE: The test is run once with authentication enabled, and once without
 416                       ##  authentication enabled.
 417                       ##
 418                       ###############################################################################
 419                       OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 420                       OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
 421                       OOPProvFail_TS1_TEST_CMDS = \
 422                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
 423                       
 424 carolann.graves  1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 425 carolann.graves  1.67 run_OOPProvFail_TS1:
 426                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 427                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
 428                                   TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 429                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 430                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
 431                                   TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
 432 carolann.graves  1.68 else
 433                       run_OOPProvFail_TS1: FORCE
 434                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
 435                       endif
 436 carolann.graves  1.67 
 437                       ###############################################################################
 438                       ##  OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService 
 439                       ##                            Initialization Tests
 440                       ##
 441                       ##  Configuration Options: forceProviderProcesses=true
 442                       ##                         enableAuthentication=true
 443                       ##
 444                       ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 445                       ##  suite is always run with OOP enabled.  This test suite causes a provider to
 446                       ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 447                       ##  to exit and the test suite to fail.
 448                       ##
 449                       ###############################################################################
 450                       OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 451                       OOPProvFail_TS2a_TEST_CMDS = \
 452                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
 453                       OOPProvFail_TS2b_TEST_CMDS = \
 454                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
 455                       
 456 carolann.graves  1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 457 carolann.graves  1.67 run_OOPProvFail_TS2:
 458                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 459                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 460                                   TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
 461                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 462                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
 463                                   TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
 464 carolann.graves  1.68 else
 465                       run_OOPProvFail_TS2: FORCE
 466                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
 467                       endif
 468 carolann.graves  1.67 
 469                       ###############################################################################
 470 carolann.graves  1.74 ##  OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
 471                       ##                            Tests
 472                       ##
 473                       ##  Configuration Options: forceProviderProcesses=true
 474                       ##                         enableAuthentication=true
 475                       ##
 476                       ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
 477                       ##  suite is always run with OOP enabled.  This test suite causes a provider to
 478                       ##  exit.  Running this test suite with OOP disabled would cause the cimserver
 479                       ##  to exit and the test suite to fail.
 480                       ##
 481                       ###############################################################################
 482                       OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
 483                       OOPProvFail_TS3a_TEST_CMDS = \
 484                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
 485                       OOPProvFail_TS3b_TEST_CMDS = \
 486                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
 487                       
 488                       ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 489                       run_OOPProvFail_TS3:
 490                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 491 carolann.graves  1.74             CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 492                                   TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
 493                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 494                                   CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
 495                                   TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
 496                       else
 497                       run_OOPProvFail_TS3: FORCE
 498                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
 499                       endif
 500                       
 501                       ###############################################################################
 502 denise.eckstein  1.47 ##  Indication SSL Test Suite 1: Indication Testing over HTTPS
 503                       ##
 504                       ##  Configuration Options: (none)
 505                       ##
 506                       ###############################################################################
 507 denise.eckstein  1.50 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 508 denise.eckstein  1.47 INDSSL_TS1a_TEST_CMDS = \
 509 denise.eckstein  1.50 	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
 510                       
 511                       INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
 512 denise.eckstein  1.47 INDSSL_TS1b_TEST_CMDS = \
 513 denise.eckstein  1.50 	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
 514                       
 515 denise.eckstein  1.47 
 516                       ifdef PEGASUS_HAS_SSL
 517 jim.wunderlich   1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 518 jim.wunderlich   1.61 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
 519 denise.eckstein  1.47 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 520 denise.eckstein  1.50             CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
 521 denise.eckstein  1.47             TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
 522                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 523 denise.eckstein  1.50             CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
 524 denise.eckstein  1.47             TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
 525                       else
 526                       run_INDSSL_TS1: FORCE
 527 jim.wunderlich   1.53 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"	
 528                       endif
 529                       else
 530                       run_INDSSL_TS1: FORCE
 531                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
 532 denise.eckstein  1.47 endif
 533                       
 534                       
 535                       ###############################################################################
 536                        
 537                       ###############################################################################
 538 sushma.fernandes 1.84 ##  SSL IPv4 Test Suite : Tests SSL connections for IPv4
 539                       ##
 540                       ##  Configuration Options: enableHttpsConnection=true
 541                       ##  NOTE : Authentication is not enabled as we are only verifying
 542                       ##         if SSL based IPv6 connections are working correctly. The osinfo
 543                       ##         client requires a password to be passed for a remote connection
 544                       ##         otherwise it will prompt for one. As a work around, 
 545                       ##         we are providing a dummy password. 
 546                       ##
 547                       ###############################################################################
 548                       SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true 
 549                       SSL_IPV4_TS1_CMD_1 = \
 550                               osinfo -s -w notapassword -h 127.0.0.1 -p 5989
 551                       SSL_IPV4_TS1_CMD_2 = \
 552                               osinfo -s -w notapassword -h localhost -p 5989
 553                       
 554                       ifdef PEGASUS_HAS_SSL
 555                           run_SSL_IPV4_TS1: FORCE
 556                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 557                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 558                                   TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
 559 sushma.fernandes 1.84 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 560                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
 561                                   TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
 562                       else
 563                           run_SSL_IPV4_TS1: FORCE
 564                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
 565                       endif
 566                       
 567                       ###############################################################################
 568                       ##  SSL IPv6 Test Suite : Tests SSL connections for IPv6
 569                       ##
 570                       ##  Configuration Options: enableHttpsConnection=true
 571                       ##  NOTE : Authentication is not enabled as we are only verifying
 572                       ##         if SSL based IPv6 connections are working correctly. The osinfo
 573                       ##         client requires a password to be passed for a remote connection
 574                       ##         otherwise it will prompt for one. As a work around,
 575                       ##         we are providing a dummy password. 
 576                       ##
 577                       ###############################################################################
 578                       SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true 
 579                       SSL_IPV6_TS1_CMD_1 = \
 580 sushma.fernandes 1.84         osinfo -s -w notapassword -h ::1 -p 5989
 581                       SSL_IPV6_TS1_CMD_2 = \
 582                               osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
 583                       
 584                       ifdef PEGASUS_HAS_SSL
 585                           run_SSL_IPV6_TS1: FORCE
 586                           ifeq ($(PEGASUS_TEST_IPV6), true)
 587                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 588                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 589                                   TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
 590                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 591                                   CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
 592                                   TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
 593                           else
 594                       	@ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
 595                           endif
 596                       else
 597                           run_SSL_IPV6_TS1: FORCE
 598                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
 599                       endif
 600                       
 601 sushma.fernandes 1.84 ###############################################################################
 602                       ##  CBA SSL Test Suite 1: Certificate based authentication Tests
 603 nag.boranna      1.27 ##
 604                       ##  Configuration Options: enableAuthentication=true
 605                       ##                         enableHttpsConnection=true
 606                       ##                         sslClientVerificationMode=optional
 607                       ##                         sslTrustStoreUserName=$(CURRENT_USER)
 608                       ##
 609                       ###############################################################################
 610 sushma.fernandes 1.84 SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
 611 nag.boranna      1.27        sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
 612 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_1 = \
 613 sushma.fernandes 1.71        $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
 614 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_2 = \
 615 sushma.fernandes 1.72        $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
 616 nag.boranna      1.27 
 617 jim.wunderlich   1.39 ifdef PEGASUS_HAS_SSL
 618 jim.wunderlich   1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 619 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
 620 nag.boranna      1.27 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 621 sushma.fernandes 1.84             CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 622                                   TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
 623 sushma.fernandes 1.72 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 624 sushma.fernandes 1.84             CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
 625                                   TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
 626 jim.wunderlich   1.39 else
 627 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
 628                       	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"	
 629 jim.wunderlich   1.53 endif
 630                       else
 631 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
 632                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
 633 jim.wunderlich   1.39 
 634                       endif
 635                       
 636 jim.wunderlich   1.61 ############################################################################
 637                       # 
 638                       # Create_SSL_Certificate
 639                       #
 640                       # create a certificate that can be used for certification testing.
 641                       # It is currently used by the following tests:
 642                       #            -run_INDSSL_TS1
 643                       #
 644                       Create_SSL_Certificate_ignore: FORCE
 645                       	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 646                       
 647                       Create_SSL_Certificate: FORCE
 648                       ifdef PEGASUS_HAS_SSL
 649                       ifdef PEGASUS_TEST_USER_DEFINED
 650                       	$(ECHO) "Creating SSL certificate for test"
 651 sushma.fernandes 1.71 	cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
 652 jim.wunderlich   1.61 endif
 653                       else
 654                       	$(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
 655                       endif
 656                       
 657 kumpf            1.46 ###############################################################################
 658                       ##  G11N Test Suite 1: Globalization Tests 
 659                       ##
 660                       ##  Configuration Options: forceProviderProcesses=false
 661                       ##
 662                       ###############################################################################
 663                       G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 664                       G11N_TS1_TEST_CMDS = \
 665                               $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
 666                                   -f Makefile g11ntest
 667                       
 668                       run_G11N_TS1:
 669                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 670                                   CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
 671                                   TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
 672 j.alex           1.66 
 673                       ###############################################################################
 674                       ##  Stress Test Suite 1:  Default Stress Tests
 675                       ##
 676                       ##  Configuration Options: (none)
 677                       ##
 678                       ###############################################################################
 679                       STRESS_TS1_CONFIG_OPTIONS =
 680                       STRESS_TS1_TEST_CMDS = \
 681                               TestStressTestController
 682                       
 683                       run_STRESS_TS1:
 684                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 685                                   CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
 686                                   TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
 687 kumpf            1.46 ###############################################################################
 688                       
 689 denise.eckstein  1.73 ###############################################################################
 690                       ##  SDK Test Suite 1:  SDK Tests
 691                       ##
 692                       ##  Configuration Options: (none)
 693                       ##
 694                       ###############################################################################
 695                       SDK_TS1_CONFIG_OPTIONS =
 696                       SDK_TS1_TEST_CMDS = \
 697                               $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
 698                                   -f Makefile testSDK 
 699                       
 700                       ifeq ($(PEGASUS_TEST_SDK),true)
 701                       run_SDK_TS1: FORCE
 702                       	$(MAKE) --directory=$(PEGASUS_ROOT)/mak \
 703                                   -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
 704                                   PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
 705                                   PEGASUS_INCLUDE_DIR=/include
 706                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 707                                   -f Makefile clean
 708                       	$(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
 709                                   -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
 710 denise.eckstein  1.73 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 711                                   CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
 712                                   TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
 713                       else
 714                       run_SDK_TS1: FORCE
 715                       	@ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"	
 716                       endif
 717                       ###############################################################################
 718 jim.wunderlich   1.39 
 719 nag.boranna      1.27 ###############################################################################
 720 carolann.graves  1.75 ##  Export Client SSL Test Suite 1:
 721                       ##
 722                       ##  Configuration Options: enableHttpsConnection=true
 723                       ##
 724                       ###############################################################################
 725                       ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
 726                       ExportClientSSL_TS1_TEST_CMDS = \
 727                       	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
 728                       
 729                       ifdef PEGASUS_HAS_SSL
 730                       run_ExportClientSSL_TS1:
 731                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 732                                   CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
 733                                   TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
 734                       else
 735                       run_ExportClientSSL_TS1: FORCE
 736                       	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
 737                       endif
 738                       
 739                       ###############################################################################
 740 nag.boranna      1.27 
 741 jim.wunderlich   1.34 
 742                       
 743 w.otsuka         1.76 ###############################################################################
 744                       ##  cimsub CLI Test Suite 1:  PG_InterOp Tests
 745                       ##
 746                       ##  Configuration Options: (none)
 747                       ##
 748                       ###############################################################################
 749                       CIMSUB_INTEROP_CONFIG_OPTIONS =
 750                       CIMSUB_INTEROP_TEST_CMDS = \
 751                       	$(MAKE) --directory \
 752                                   $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
 753                                   -f Makefile cimsubTest_InterOp
 754                       run_Cimsub_InterOp: FORCE
 755                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 756                                   CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
 757                                   TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
 758                       ###############################################################################
 759                       
 760                       ###############################################################################
 761 s.kodali         1.85 ## CMPI subscription activation Test Suite 1:
 762                       ##
 763                       ## Configuration Options: (none)
 764                       ##
 765                       ###############################################################################
 766                       CMPI_SUB_TEST_CONFIG_OPTIONS=
 767                       CMPI_SUBa_TEST_CMDS = \
 768                       	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
 769                       CMPI_SUBb_TEST_CMDS = \
 770                       	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
 771                       CMPI_SUBc_TEST_CMDS =  \
 772                       	TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
 773                       run_Cmpi_Sub: FORCE
 774                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 775                                   CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 776                                   TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
 777                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 778                                   CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 779                                   TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
 780                       	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 781                                   CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
 782 s.kodali         1.85             TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
 783                        
 784                       ##############################################################################
 785 w.otsuka         1.76 
 786                       
 787 jim.wunderlich   1.34 ##############################################################################
 788                       ##
 789                       ## TestXMLRepository rule is used to run the poststarttests suite on
 790                       ## the XML Repository built using cimmofl
 791                       ##
 792                       ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
 793                       ## the XML Repository built using cimmof
 794                       ##
 795                       ## TestXMLCmpRepository rule is used to run the poststarttest suite on 
 796                       ## the XML Compressed Repository built using cimmofl
 797                       ##
 798                       
 799                       ############################
 800                       ##
 801                       ## TestXMLRepository
 802                       ##
 803                       
 804                       TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
 805                       	@ $(ECHO) TestXMLRepository +++++ passed all test
 806                       
 807                       ############################
 808 jim.wunderlich   1.34 ##
 809                       ## TestXMLRepositoryServer
 810                       ##
 811                       TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
 812                       	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
 813                       
 814                       ############################
 815                       ##
 816                       ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
 817                       ##
 818                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 819                       TestXMLCmpRepository: FORCE
 820                       	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
 821                       	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
 822                       else
 823                       
 824                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
 825                       
 826                       TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
 827                       	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
 828                       else
 829 jim.wunderlich   1.34 TestXMLCmpRepository: FORCE
 830                       	@ $(ECHO) TestXMLCmpRepository +++++ Not tested 
 831                       	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
 832                       	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
 833                       endif
 834                       endif
 835                       
 836                       ###########################
 837                       ##
 838                       ## TestXMLClean
 839                       ##
 840                       TestXMLClean: FORCE
 841                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 842                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
 843                       
 844                       
 845                       ###########################
 846                       ##
 847                       ## TestXMLStartServer
 848                       ##
 849                       TestXMLStartServer: FORCE
 850 jim.wunderlich   1.34 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
 851                       	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
 852                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
 853                       	$(SLEEP) 5
 854                       
 855                       ####
 856                       #### The following caused the cimserver to fail on startup
 857                       ####
 858                       ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
 859                       
 860                       ###########################
 861                       ##
 862                       ## TestXMLBuildRepo
 863                       ##
 864                       TestXMLBuildRepo: FORCE
 865                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 866                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 867                       
 868                       
 869                       ###########################
 870                       ##
 871 jim.wunderlich   1.34 ## TestXMLBuildRepoServ
 872                       ##
 873                       TestXMLBuildRepoServ: TestXMLStartServer
 874                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 875                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 876                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 877                       
 878                       
 879                       ###########################
 880                       ##
 881                       ## TestXMLRepo
 882                       ##
 883 jim.wunderlich   1.40 TestXMLRepo: servertestsclean
 884 jim.wunderlich   1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
 885 jim.wunderlich   1.34 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 886                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 887                       
 888                       
 889                       
 890                       
 891                       
 892                       
 893 jim.wunderlich   1.29 ##############################################################################
 894                       ##
 895 jim.wunderlich   1.31 ## TestBinRepository rule is used to run the poststarttests suite on
 896 jim.wunderlich   1.33 ## the Binary Repository built using cimmofl
 897 jim.wunderlich   1.29 ##
 898 jim.wunderlich   1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
 899 jim.wunderlich   1.33 ## the Binary Repository built using cimmof
 900                       ##
 901                       ## TestBinCmpRepository rule is used to run the poststarttest suite on 
 902                       ## the Binry Compressed Repository built using cimmofl
 903 jim.wunderlich   1.29 ##
 904 jim.wunderlich   1.31 
 905                       ############################
 906 jim.wunderlich   1.29 ##
 907 jim.wunderlich   1.31 ## TestBinRepository
 908 jim.wunderlich   1.29 ##
 909 jim.wunderlich   1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
 910                       ### the nightly tests to run
 911                       
 912 jim.wunderlich   1.31 TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
 913 jim.wunderlich   1.33 	@ $(ECHO) TestBinRepository +++++ passed all test
 914 jim.wunderlich   1.36 
 915 jim.wunderlich   1.29 
 916 jim.wunderlich   1.31 ############################
 917                       ##
 918                       ## TestBinRepositoryServer
 919                       ##
 920                       TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
 921 jim.wunderlich   1.33 	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
 922                       
 923                       ############################
 924                       ##
 925                       ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
 926                       ##
 927                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 928 jim.wunderlich   1.34 TestBinCmpRepository: FORCE
 929 jim.wunderlich   1.33 	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
 930                       	@ $(ECHO) TestBinCmpRepository +++++ passed all test
 931                       else
 932                       
 933                       ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
 934                       
 935 jim.wunderlich   1.34 TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
 936 jim.wunderlich   1.33 	@ $(ECHO) TestBinCmpRepository +++++ passed all test
 937                       else
 938 jim.wunderlich   1.34 TestBinCmpRepository: FORCE
 939 jim.wunderlich   1.33 	@ $(ECHO) TestBinCmpRepository +++++ Not tested 
 940                       	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
 941                       	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
 942                       endif
 943                       endif
 944                       
 945                       
 946 jim.wunderlich   1.31 ###########################
 947                       ##
 948                       ## TestBinClean
 949                       ##
 950 jim.wunderlich   1.34 TestBinClean: FORCE
 951 jim.wunderlich   1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 952                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
 953 jim.wunderlich   1.29 
 954 jim.wunderlich   1.31 
 955                       ###########################
 956 jim.wunderlich   1.29 ##
 957 jim.wunderlich   1.31 ## TestBinStartServer
 958 jim.wunderlich   1.29 ##
 959 jim.wunderlich   1.34 TestBinStartServer: FORCE
 960 jim.wunderlich   1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
 961 jim.wunderlich   1.31 	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
 962                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
 963 jim.wunderlich   1.29 	$(SLEEP) 5
 964 jim.wunderlich   1.31 
 965                       ###########################
 966 jim.wunderlich   1.29 ##
 967 jim.wunderlich   1.31 ## TestBinBuildRepo
 968 jim.wunderlich   1.29 ##
 969 jim.wunderlich   1.34 TestBinBuildRepo: FORCE
 970 jim.wunderlich   1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 971                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 972 jim.wunderlich   1.31 
 973                       
 974                       ###########################
 975                       ##
 976                       ## TestBinBuildRepoServ
 977                       ##
 978                       TestBinBuildRepoServ: TestBinStartServer
 979                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 980                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 981                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 982                       
 983                       
 984                       ###########################
 985                       ##
 986                       ## TestBinRepo
 987                       ##
 988 jim.wunderlich   1.40 TestBinRepo: servertestsclean 
 989 jim.wunderlich   1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
 990 jim.wunderlich   1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 991 jim.wunderlich   1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 992 jim.wunderlich   1.29 
 993                       
 994                       
 995 jim.wunderlich   1.34 
 996                       ############################
 997                       ##
 998                       ## TestCmpBuild - used to compile the repository for compression
 999                       ##
1000                       TestCmpBuild: FORCE
1001                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1002                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1003                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1004                       
1005                       
1006                       ############################
1007                       ##
1008                       ## TestRegBuild - used to compile the repository for no compression
1009                       ##
1010                       TestRegBuild: FORCE
1011                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1012                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend 
1013                       	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository 
1014                       
1015                       
1016 nag.boranna      1.27 ###############################################################################
1017 kumpf            1.1  ##
1018                       ## Trace Configuration
1019                       ##
1020 jim.wunderlich   1.43 ## Options: see usagetrace rule
1021                       ##
1022                       ###############################################################################
1023                       
1024                       usagetrace: FORCE
1025                       	$(USAGE)
1026 jim.wunderlich   1.60 	$(USAGE)"TestMakefile Trace Commands: "
1027                       	$(USAGE)"  The cimserver must be running when using W=c which is the default for W"
1028 jim.wunderlich   1.43 	$(USAGE)
1029 jim.wunderlich   1.60 	$(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
1030                       	$(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
1031                       	$(USAGE)" tracesettings:                      Displays all trace settings."
1032                       	$(USAGE)" tracecomp:                          Displays a trace componenets list."
1033                       	$(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1034                       	$(USAGE)"                           Enables tracing on component C at trace level L."
1035                       	$(USAGE)
1036                       	$(USAGE)" W defaults to c in the above commands where W can be specified" 
1037 jim.wunderlich   1.43 	$(USAGE)
1038 jim.wunderlich   1.60 	$(USAGE)"  Usage examples:"
1039                       	$(USAGE)"   traceon       turns on trace in current server config"
1040                       	$(USAGE)"   traceon W=c   turns on trace in current server config"
1041                       	$(USAGE)"   traceon W=p   turns on trace in planned server config"
1042                       	$(USAGE)"   traceoff      turns on trace in current server config"
1043                       	$(USAGE)"   traceoff W=c  turns on trace in current server config"
1044                       	$(USAGE)"   traceoff W=p  turns on trace in planned server config"
1045                       	$(USAGE)
1046                       	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
1047                       	$(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
1048                       	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
1049                       	$(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
1050 jim.wunderlich   1.43 	$(USAGE)
1051                       	$(USAGE)
1052                       
1053                       traceon: FORCE
1054 jim.wunderlich   1.60 	@ cimconfig -s traceComponents=ALL -$W 
1055                       	@ cimconfig -s traceLevel=3 -$W
1056                       	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1057                       
1058 jim.wunderlich   1.43 
1059                       traceoff: FORCE
1060 jim.wunderlich   1.60 	@ cimconfig -s traceComponents=  -$W
1061                       	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1062 jim.wunderlich   1.43 
1063                       
1064                       tracesettings: FORCE
1065                       	@ $(ECHO) " "
1066 jim.wunderlich   1.60 	cimconfig -g traceComponents -c -p
1067 jim.wunderlich   1.43 	@ $(ECHO) " "
1068 jim.wunderlich   1.60 	cimconfig -g traceLevel -c -p
1069 jim.wunderlich   1.43 	@ $(ECHO) " "
1070 jim.wunderlich   1.60 	cimconfig -g traceFilePath -c -p
1071 jim.wunderlich   1.43 	@ $(ECHO) " "
1072                       
1073                       traceon-CL: FORCE
1074 jim.wunderlich   1.60 	@ cimconfig -s traceComponents=$C -$W
1075                       	@ cimconfig -s traceLevel=$L -$W
1076                       	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
1077 jim.wunderlich   1.43 
1078                       tracecomp: FORCE
1079                       	$(USAGE)
1080                       	$(USAGE)"Trace component list:"
1081                       	$(USAGE)
1082                       	$(USAGE)"Channel"
1083                       	$(USAGE)"XmlParser"
1084                       	$(USAGE)"XmlWriter"
1085                       	$(USAGE)"XmlReader"
1086                       	$(USAGE)"XmlIO"
1087                       	$(USAGE)"Http"
1088                       	$(USAGE)"CimData"
1089                       	$(USAGE)"ProvManager"
1090                       	$(USAGE)"Repository"
1091                       	$(USAGE)"Dispatcher"
1092                       	$(USAGE)"OsAbstraction"
1093                       	$(USAGE)"Config"
1094                       	$(USAGE)"IndDelivery"
1095                       	$(USAGE)"IndHandler"
1096                       	$(USAGE)"Authentication"
1097                       	$(USAGE)"Authorization"
1098 jim.wunderlich   1.43 	$(USAGE)"UserManager"
1099                       	$(USAGE)"SubscriptionService"
1100                       	$(USAGE)"Registration"
1101                       	$(USAGE)"Shutdown"
1102                       	$(USAGE)"Server"
1103                       	$(USAGE)"IndicationService"
1104                       	$(USAGE)"IndicationServiceInternal"
1105                       	$(USAGE)"ConfigurationManager"
1106                       	$(USAGE)"MessageQueueService"
1107                       	$(USAGE)"ProviderManager"
1108                       	$(USAGE)"ObjectResolution"
1109                       	$(USAGE)"WQL"
1110                       	$(USAGE)"CQL"
1111                       	$(USAGE)"Thread"
1112                       	$(USAGE)"MetaDispatcher"
1113                       	$(USAGE)"IPC"
1114                       	$(USAGE)"IndicationHandlerService"
1115                       	$(USAGE)"CIMExportRequestDispatcher"
1116                       	$(USAGE)"Memory"
1117                       	$(USAGE)"SSL"
1118                       	$(USAGE)"ControlProvider"
1119 jim.wunderlich   1.43 	$(USAGE)"AsyncOpNode"
1120                       	$(USAGE)"CIMOMHandle"
1121                       	$(USAGE)"BinaryMessageHandler"
1122                       	$(USAGE)"L10N"
1123                       	$(USAGE)"ExportClient"
1124                       	$(USAGE)"Listener"
1125                       	$(USAGE)"DiscardedData"
1126                       	$(USAGE)"ProviderAgent"
1127                       	$(USAGE)
1128                       
1129                       ###############################################################################
1130                       ##
1131                       ## Trace Configuration - Old rules being deprecated
1132                       ##
1133 kumpf            1.1  ## Options:
1134                       ##      XMLTraceOn: Enables XML request and response tracing.
1135                       ##      ProviderLoadTraceOn: Enables Provider load tracing.
1136                       ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1137                       ##                                 load tracing.
1138                       ##      AllTraceOn: Enables all tracing.
1139                       ##      AllTraceOff: Disables all tracing.
1140                       ##      list: Lists trace settings.
1141                       ##
1142                       ###############################################################################
1143                       
1144                       XMLTraceOn:
1145                       	cimconfig -s traceComponents=XmlIO -c
1146                       	cimconfig -s traceLevel=3 -c
1147                       	cimconfig -g traceComponents
1148                       	cimconfig -g traceLevel
1149                       
1150                       ProviderLoadTraceOn:
1151                       	cimconfig -s traceComponents=ProvManager,OsAbstraction
1152                       	cimconfig -s traceLevel=3 -c
1153                       	cimconfig -g traceComponents
1154 kumpf            1.1  	cimconfig -g traceLevel
1155                       
1156                       XML+ProviderLoadTraceOn:
1157                       	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1158                       	cimconfig -s traceLevel=3 -c
1159                       	cimconfig -g traceComponents
1160                       	cimconfig -g traceLevel
1161                       
1162 jim.wunderlich   1.43 AllTraceOn: traceon
1163                       
1164                       AllTraceOff: traceoff
1165 kumpf            1.1  
1166 jim.wunderlich   1.43 list: tracesettings
1167 kumpf            1.1  
1168 jim.wunderlich   1.55 #########################################################################
1169                       # standardtests
1170                       #
1171                       # More testing options...
1172                       #
1173                       # The standard test seem to contain additional test that may not be able 
1174                       # to run on all platforms so they have been grouped here for now rather than
1175                       # being included in the serversuite rule.
1176                       #
1177                       # The test are:
1178                       #      TestCimmof
1179                       #      TestNoSecurity
1180                       #      TestLocalSecurity
1181                       #      TestRemoteSecurity
1182                       #      TestAuthorization
1183                       #
1184                       # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1185                       #       TestNoSecurity.
1186                       #
1187                       # NOTE: The TestNoSecurity step runs the servertests which builds the
1188                       #       the repository that is then left in place for the remaining tests.
1189 jim.wunderlich   1.55 #       The cimof test must be before the TestNosecurity step as it removes
1190                       #       the repository builds a new one with cimmofl and another one with
1191                       #       cimmof and then compares them. 
1192                       #
1193                       # NOTE: The Authentication test is comprised of EnableAuthentication, 
1194                       #       TestLocalSecurity and TestRemoteSecurity. 
1195                       #
1196                       # NOTE: The Authorization test is comprised of EnableAuthorization and
1197                       #       TestAuthorization. 
1198                       #
1199                       # NOTE: The EnableAuthentication and EnableAuthorization steps require 
1200                       #       root access. Pegasus doesn't currently have the infrastructure
1201                       #       in place to run the server as root and run the test as non-root.
1202                       #       Rather than run everything, server, tests, providers, clients etc.
1203                       #       as root many testers prefer to run the tests as non-root. Setting
1204                       #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to 
1205                       #       facilitate that.
1206                       #
1207 kumpf            1.1  
1208 jim.wunderlich   1.40 standardtests: FORCE
1209 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1210                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1211                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1212 jim.wunderlich   1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
1213 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1214                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1215                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1216                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1217                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
1218 jim.wunderlich   1.53 else
1219 jim.wunderlich   1.55 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
1220 jim.wunderlich   1.53 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "	
1221                       endif
1222 jim.wunderlich   1.40 	@ $(ECHO) "+++++ TestMakefile standardtests complete"
1223 kumpf            1.1  
1224                       TestNoSecurity:
1225 jim.wunderlich   1.56 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
1226 kumpf            1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1227 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1228 kumpf            1.1  
1229                       TestLocalSecurity:
1230 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1231 kumpf            1.1  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1232                       
1233                       TestRemoteSecurity:
1234 jim.wunderlich   1.59 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1235                       	$(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
1236 kumpf            1.1  
1237                       TestAuthorization:
1238 jim.wunderlich   1.59 	TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1239 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1240 jim.wunderlich   1.59 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1241                       	$(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
1242 kumpf            1.1  
1243                       TestSubscriptions:
1244 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1245 kumpf            1.1  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1246                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1247 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1248 david.dillard    1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1249 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1250 kumpf            1.1  
1251                       TestCimmof:
1252 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
1253 kumpf            1.1  
1254                       RunTestClientLocal:
1255                       	TestClient -local
1256                       
1257                       DisableSecurity:
1258 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1259 kumpf            1.1  	cimconfig -s enableAuthentication=false -p
1260                       	cimconfig -s enableNamespaceAuthorization=false -p
1261                       
1262 jim.wunderlich   1.61 EnableUsers:
1263                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1264                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1265                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1266                       
1267 kumpf            1.1  EnableAuthentication:
1268 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1269 kumpf            1.1  	cimconfig -s enableAuthentication=true -p
1270 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1271                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1272 kumpf            1.1  
1273                       EnableAuthorization:
1274 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1275 kumpf            1.10 	cimconfig -s enableNamespaceAuthorization=true -p
1276 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1277                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1278 kumpf            1.1  
1279                       EnableSSL:
1280 kumpf            1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1281                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1282 kumpf            1.1  
1283 jim.wunderlich   1.61 #
1284                       # ConfigureUsers
1285                       #
1286                       # The server must be running prior to invoking this rule
1287                       #
1288 kumpf            1.1  ConfigureUsers:
1289                       ifndef PEGASUS_PAM_AUTHENTICATION
1290 jim.wunderlich   1.62 	-cimuser -l
1291 jim.wunderlich   1.61 	-cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1292 kumpf            1.1  endif
1293                       
1294 jim.wunderlich   1.61 #
1295                       # ConfigureAuthorizations rule
1296                       #
1297                       # The server must be running prior to invoking this rule
1298                       #
1299 kumpf            1.1  ConfigureAuthorizations:
1300 jim.wunderlich   1.59 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1301                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1302                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1303                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1304                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1305                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1306                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1307                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1308                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1309 sushma.fernandes 1.80 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1310                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
1311 kumpf            1.65 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1312 jim.wunderlich   1.59 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1313                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1314                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1315                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1316                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1317                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1318                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1319                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1320                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1321                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1322                       	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1323 kumpf            1.82 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1324 kumpf            1.83 	cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
1325 kumpf            1.82 endif
1326 kumpf            1.1  
1327 jim.wunderlich   1.41 startcimWithoutSSL: FORCE
1328                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1329 kumpf            1.19 	$(SLEEP) 5
1330 kumpf            1.1  
1331 jim.wunderlich   1.41 startcimWithSSL: FORCE
1332                       	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1333 kumpf            1.19 	$(SLEEP) 5
1334 j.alex           1.66 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2