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

   1 a.dunfey 1.54.2.1 #//%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 a.dunfey 1.54.2.1 #// 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                         	$(USAGE)"serverquicktests   - Executes a brief server test"
  67 jim.wunderlich 1.45     	$(USAGE)"perftests          - Executes a brief server performance test"
  68 jim.wunderlich 1.40     	$(USAGE)
  69                         	$(USAGE)"usage2             - usage on secondary test targets"
  70 jim.wunderlich 1.43     	$(USAGE)"usagetrace         - usage on trace targets"
  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                         	$(USAGE)"run_SSL_TS1             - Executes the SSL tests"
  96                         	$(USAGE)"run_OOP_TS1             - Executes the Out Of Process Provider tests"
  97 kumpf          1.46     	$(USAGE)"run_G11N_TS1            - Executes the Globalization tests"
  98 jim.wunderlich 1.40     	$(USAGE)
  99                         	$(USAGE)"The following require the repository to be pre-built and the server to be started."
 100                         	$(USAGE)
 101                         	$(USAGE)"serversuite             - the collection of test run by the servertests rule"
 102                         	$(USAGE)"serverquicksuite        - The collection of test run by the serverquicktests rule"
 103                         	$(USAGE)
 104                         
 105                         
 106                         ##########################################################
 107                         #
 108                         # rules that are defined in Makefile
 109                         #
 110                         ##########################################################
 111 kumpf          1.21     
 112 jim.wunderlich 1.39     build: FORCE
 113                         	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
 114 kumpf          1.21     
 115 jim.wunderlich 1.40     world: FORCE
 116                         	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
 117                         
 118                         new: FORCE
 119                         	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
 120                         
 121 jim.wunderlich 1.39     clean: FORCE
 122 kumpf          1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
 123                         
 124 jim.wunderlich 1.40     depend: FORCE
 125                         	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
 126                         
 127                         
 128                         ############################################################
 129                         #
 130                         # rules defined here
 131                         #
 132                         ############################################################
 133                         
 134 jim.wunderlich 1.41     ##
 135                         ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
 136                         ## are available and could be invoked directly, their direct usage is
 137                         ## discouraged in favor of invoking the cimstop and the cimstart rules
 138                         ## as this allows one place where additional checks, delays etc may be 
 139                         ## added in the future to control or further test the servers performance
 140                         ## in executing these commands.
 141                         ##
 142                         
 143 jim.wunderlich 1.40     #######################
 144                         #
 145                         # doc
 146                         #
 147 kumpf          1.1      doc:
 148 mday           1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 149                         	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 150 kumpf          1.1      
 151 jim.wunderlich 1.40     
 152                         #######################
 153                         #
 154                         # repositoryServer
 155                         #
 156                         repositoryServer: FORCE
 157 kumpf          1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 158 kumpf          1.19     	$(SLEEP) 5
 159 kumpf          1.1      	$(RMDIRHIER) $(REPOSITORY_ROOT)
 160 jim.wunderlich 1.41     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
 161 kumpf          1.19     	$(SLEEP) 5
 162 kumpf          1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
 163                         	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
 164 mday           1.6      
 165 jim.wunderlich 1.40     ######################
 166                         #
 167                         # prestarttests is being deprecated since poststarttest is being deprecated
 168                         # in favor of name more related to its intended functionality. 
 169                         #
 170                         prestarttests: prestarttests_msg shortsleep unittests
 171                         
 172                         prestarttests_msg: FORCE
 173                         	@$(ECHO) "=============================================================================="
 174                         	@$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
 175                         	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 176                         	@$(ECHO) "              The equivalent new rule is \"unittests\"."  
 177                         	@$(ECHO) "              Invoking the \"unittests\" rule now."
 178                         	@$(ECHO) "=============================================================================="
 179                         
 180                         ####################
 181                         #
 182                         # poststarttests is being deprecated since it multiply defines a 
 183                         # recursive make rule leading to ambuguity and confusion.
 184                         #
 185                         poststarttests: poststarttests_msg shortsleep servertests 
 186 jim.wunderlich 1.40     
 187                         poststarttests_msg: FORCE
 188                         	@$(ECHO) "==============================================================================="
 189                         	@$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."  
 190                         	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 191                         	@$(ECHO) "              The equivalent new rule is \"servertests\"."  
 192                         	@$(ECHO) "              Invoking the \"servertests\" rule now."
 193                         	@$(ECHO) "==============================================================================="
 194                         
 195                         #####################
 196                         #
 197                         # tests is being deprecated since it multiply defines a 
 198                         # recursive make rule leading to ambuguity and confusion.
 199                         #
 200                         tests: tests_msg shortsleep alltests
 201                         
 202                         tests_msg: FORCE
 203                         	@$(ECHO) "==================================================================="
 204                         	@$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
 205                         	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
 206                         	@$(ECHO) "              The equivalent new rule is \"alltests\"."  
 207 jim.wunderlich 1.40     	@$(ECHO) "              Invoking the \"alltests\" rule now."
 208                         	@$(ECHO) "==================================================================="
 209                         
 210                         
 211                         shortsleep: FORCE
 212                         	@$(SLEEP) 5
 213                         
 214                         ####################
 215                         #
 216                         # unittests
 217                         #
 218                         unittests: FORCE
 219 h.sterling     1.38     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
 220 jim.wunderlich 1.40     	@ $(ECHO) "+++++ TestMakefile unittests complete"
 221                         
 222                         #####################
 223                         #
 224                         # servertests
 225                         #
 226 kumpf          1.1      
 227 jim.wunderlich 1.40     servertestsclean: FORCE
 228 jim.wunderlich 1.41     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 229 lucier         1.17     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
 230                         	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
 231 mday           1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
 232 jim.wunderlich 1.31     
 233 jim.wunderlich 1.40     servertestssetup: FORCE
 234 denise.eckstein 1.50     ifdef PEGASUS_HAS_SSL
 235 a.dunfey        1.54.2.2 #
 236                          # The association between user names and certificates is stored in the 
 237                          # repository.  If the repository is recreated, we also need to re-initialize
 238                          # the trust store directories. Otherwise, the truststore content will be 
 239                          # out-of-sync with the mapping stored in the repository.
 240                          #
 241 denise.eckstein 1.50     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
 242                          	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
 243                          endif
 244 jim.wunderlich  1.40     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
 245                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
 246 jim.wunderlich  1.41     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
 247 kumpf           1.19     	$(SLEEP) 5
 248 a.dunfey        1.54.2.2 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
 249                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 250                          
 251 jim.wunderlich  1.40     
 252                          servertests: servertestsclean servertestssetup serversuite
 253                          	@ $(ECHO) "+++++ TestMakefile servertests suites complete"
 254                          
 255                          serversuite: FORCE
 256 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
 257 jim.wunderlich  1.33     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
 258 kumpf           1.20     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
 259 carolann.graves 1.28     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
 260 denise.eckstein 1.47     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
 261 h.sterling      1.37     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
 262 kumpf           1.46     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
 263 kumpf           1.1      
 264 jim.wunderlich  1.40     ####################
 265                          #
 266                          # serverquicktests
 267                          #
 268                          serverquicktests: servertestsclean servertestssetup serverquicksuite
 269                          	@ $(ECHO) "+++++ TestMakefile serverquicktests complete"
 270                          
 271                          serverquicksuite: FORCE
 272                          	$(PEGASUS_HOME)/bin/Client
 273                          	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
 274 jim.wunderlich  1.45     	$(PEGASUS_HOME)/bin/TestClient
 275                          
 276                          ####################
 277                          #
 278                          # perftests - simple performance test until we have better
 279                          #
 280                          # - Turns statistics on (uses TestInterop until we have better)
 281                          # - runs and times serverquicktests suite 
 282                          # - runs cimperf to displat the statistics
 283                          # - turns statistics off 
 284                          #
 285                          perftests: servertestsclean servertestssetup perfsuite
 286                          
 287                          perfsuite: FORCE
 288                          	$(PEGASUS_HOME)/bin/TestInterop on
 289                          	$(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
 290                          	@ $(ECHO) " "
 291                          	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
 292                          	@ $(ECHO) " "
 293                          	$(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
 294                          	@ $(ECHO) " "
 295 jim.wunderlich  1.45     	@ $(ECHO) " "
 296                          	$(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
 297                          	@ $(ECHO) " "
 298                          	$(PEGASUS_HOME)/bin/TestInterop off
 299                          
 300 jim.wunderlich  1.40     
 301                          ####################
 302                          #
 303                          # alltests
 304                          #
 305                          alltests: unittests servertests
 306 tony            1.5      ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 307 kumpf           1.22     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 308 mday            1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 309 tony            1.5      endif
 310 jim.wunderlich  1.40     	@ $(ECHO) "+++++ TestMakefile alltests Complete"
 311 kumpf           1.1      
 312                          ###############################################################################
 313 denise.eckstein 1.18     ##  Test Suite Definitions
 314                          ###############################################################################
 315                          
 316                          ###############################################################################
 317                          ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
 318                          ##
 319                          ##  Configuration Options: forceProviderProcesses=true
 320                          ##
 321 jim.wunderlich  1.54     ##  If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
 322 jim.wunderlich  1.51     ##  since tests have already been run with OOP enabled.
 323                          ##
 324                          ##
 325 denise.eckstein 1.18     ###############################################################################
 326 jim.wunderlich  1.54     ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
 327 jim.wunderlich  1.52     OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 328                          else
 329 denise.eckstein 1.18     OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 330 kumpf           1.44     endif
 331 jim.wunderlich  1.51     
 332 denise.eckstein 1.18     OOP_TS1_TEST_CMDS = \
 333 jim.wunderlich  1.51             $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
 334 denise.eckstein 1.18     
 335                          run_OOP_TS1:
 336 denise.eckstein 1.26     	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 337 denise.eckstein 1.18                 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
 338                                      TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
 339 jim.wunderlich  1.51     
 340 denise.eckstein 1.18     ###############################################################################
 341                          
 342                          ###############################################################################
 343 carolann.graves 1.28     ##  IndInit Test Suite 1: IndicationService Initialization Tests 
 344                          ##
 345                          ##  Configuration Options: (none)
 346                          ##
 347                          ###############################################################################
 348                          IndInit_TS1_CONFIG_OPTIONS = 
 349                          IndInit_TS1a_TEST_CMDS = \
 350                          	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
 351                          IndInit_TS1b_TEST_CMDS = \
 352                          	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
 353                          
 354                          run_IndInit_TS1:
 355                          	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 356                                      CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 357                                      TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
 358                          	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 359                                      CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
 360                                      TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
 361                          
 362                          ###############################################################################
 363 denise.eckstein 1.47     ##  Indication SSL Test Suite 1: Indication Testing over HTTPS
 364                          ##
 365                          ##  Configuration Options: (none)
 366                          ##
 367                          ###############################################################################
 368 denise.eckstein 1.50     INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
 369 denise.eckstein 1.47     INDSSL_TS1a_TEST_CMDS = \
 370 denise.eckstein 1.50     	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
 371                          
 372                          INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
 373 denise.eckstein 1.47     INDSSL_TS1b_TEST_CMDS = \
 374 denise.eckstein 1.50     	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
 375                          
 376 denise.eckstein 1.47     
 377                          ifdef PEGASUS_HAS_SSL
 378 jim.wunderlich  1.53     ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 379 a.dunfey        1.54.2.2 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
 380 denise.eckstein 1.47     	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 381 denise.eckstein 1.50                 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
 382 denise.eckstein 1.47                 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
 383                          	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 384 denise.eckstein 1.50                 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
 385 denise.eckstein 1.47                 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
 386                          else
 387                          run_INDSSL_TS1: FORCE
 388 jim.wunderlich  1.53     	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"	
 389                          endif
 390                          else
 391                          run_INDSSL_TS1: FORCE
 392                          	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
 393 denise.eckstein 1.47     endif
 394                          
 395                          
 396                          ###############################################################################
 397                           
 398                          ###############################################################################
 399 nag.boranna     1.27     ##  SSL Test Suite 1: SSL Tests
 400                          ##
 401                          ##  Configuration Options: enableAuthentication=true
 402                          ##                         enableHttpsConnection=true
 403                          ##                         sslClientVerificationMode=optional
 404                          ##                         sslTrustStoreUserName=$(CURRENT_USER)
 405                          ##
 406                          ###############################################################################
 407                          SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
 408                                 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
 409                          SSL_TS1_TEST_CMDS = \
 410                                 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
 411                          
 412 jim.wunderlich  1.39     ifdef PEGASUS_HAS_SSL
 413 jim.wunderlich  1.53     ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 414 jim.wunderlich  1.39     run_SSL_TS1: FORCE
 415 nag.boranna     1.27     	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 416                                      CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
 417                                      TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
 418 jim.wunderlich  1.39     else
 419                          run_SSL_TS1: FORCE
 420 jim.wunderlich  1.53     	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_TS1"	
 421                          endif
 422                          else
 423                          run_SSL_TS1: FORCE
 424                          	@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
 425 jim.wunderlich  1.39     
 426                          endif
 427                          
 428 a.dunfey        1.54.2.2 ############################################################################
 429                          # 
 430                          # Create_SSL_Certificate
 431                          #
 432                          # create a certificate that can be used for certification testing.
 433                          # It is currently used by the following tests:
 434                          #            -run_INDSSL_TS1
 435                          #
 436                          Create_SSL_Certificate_ignore: FORCE
 437                          	-$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
 438                          
 439                          Create_SSL_Certificate: FORCE
 440                          ifdef PEGASUS_HAS_SSL
 441                          ifdef PEGASUS_TEST_USER_DEFINED
 442                          	$(ECHO) "Creating SSL certificate for test"
 443                          	ssltrustmgr -a -c $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem
 444                          endif
 445                          else
 446                          	$(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
 447                          endif
 448                          
 449 kumpf           1.46     ###############################################################################
 450                          ##  G11N Test Suite 1: Globalization Tests 
 451                          ##
 452                          ##  Configuration Options: forceProviderProcesses=false
 453                          ##
 454                          ###############################################################################
 455                          G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
 456                          G11N_TS1_TEST_CMDS = \
 457                                  $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
 458                                      -f Makefile g11ntest
 459                          
 460                          run_G11N_TS1:
 461                          	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 462                                      CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
 463                                      TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
 464                          ###############################################################################
 465                          
 466 jim.wunderlich  1.39     
 467 nag.boranna     1.27     ###############################################################################
 468                          
 469 jim.wunderlich  1.34     
 470                          
 471                          ##############################################################################
 472                          ##
 473                          ## TestXMLRepository rule is used to run the poststarttests suite on
 474                          ## the XML Repository built using cimmofl
 475                          ##
 476                          ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
 477                          ## the XML Repository built using cimmof
 478                          ##
 479                          ## TestXMLCmpRepository rule is used to run the poststarttest suite on 
 480                          ## the XML Compressed Repository built using cimmofl
 481                          ##
 482                          
 483                          ############################
 484                          ##
 485                          ## TestXMLRepository
 486                          ##
 487                          
 488                          TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
 489                          	@ $(ECHO) TestXMLRepository +++++ passed all test
 490 jim.wunderlich  1.34     
 491                          ############################
 492                          ##
 493                          ## TestXMLRepositoryServer
 494                          ##
 495                          TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
 496                          	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
 497                          
 498                          ############################
 499                          ##
 500                          ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
 501                          ##
 502                          ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 503                          TestXMLCmpRepository: FORCE
 504                          	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
 505                          	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
 506                          else
 507                          
 508                          ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
 509                          
 510                          TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
 511 jim.wunderlich  1.34     	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
 512                          else
 513                          TestXMLCmpRepository: FORCE
 514                          	@ $(ECHO) TestXMLCmpRepository +++++ Not tested 
 515                          	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
 516                          	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
 517                          endif
 518                          endif
 519                          
 520                          ###########################
 521                          ##
 522                          ## TestXMLClean
 523                          ##
 524                          TestXMLClean: FORCE
 525                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 526                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
 527                          
 528                          
 529                          ###########################
 530                          ##
 531                          ## TestXMLStartServer
 532 jim.wunderlich  1.34     ##
 533                          TestXMLStartServer: FORCE
 534                          	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
 535                          	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
 536                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
 537                          	$(SLEEP) 5
 538                          
 539                          ####
 540                          #### The following caused the cimserver to fail on startup
 541                          ####
 542                          ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
 543                          
 544                          ###########################
 545                          ##
 546                          ## TestXMLBuildRepo
 547                          ##
 548                          TestXMLBuildRepo: FORCE
 549                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 550                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 551                          
 552                          
 553 jim.wunderlich  1.34     ###########################
 554                          ##
 555                          ## TestXMLBuildRepoServ
 556                          ##
 557                          TestXMLBuildRepoServ: TestXMLStartServer
 558                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 559                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 560                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 561                          
 562                          
 563                          ###########################
 564                          ##
 565                          ## TestXMLRepo
 566                          ##
 567 jim.wunderlich  1.40     TestXMLRepo: servertestsclean
 568 jim.wunderlich  1.35     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
 569 jim.wunderlich  1.34     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
 570                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 571                          
 572                          
 573                          
 574                          
 575                          
 576                          
 577 jim.wunderlich  1.29     ##############################################################################
 578                          ##
 579 jim.wunderlich  1.31     ## TestBinRepository rule is used to run the poststarttests suite on
 580 jim.wunderlich  1.33     ## the Binary Repository built using cimmofl
 581 jim.wunderlich  1.29     ##
 582 jim.wunderlich  1.31     ## TestBinRepositoryServer rule is used to run the poststarttests suite on
 583 jim.wunderlich  1.33     ## the Binary Repository built using cimmof
 584                          ##
 585                          ## TestBinCmpRepository rule is used to run the poststarttest suite on 
 586                          ## the Binry Compressed Repository built using cimmofl
 587 jim.wunderlich  1.29     ##
 588 jim.wunderlich  1.31     
 589                          ############################
 590 jim.wunderlich  1.29     ##
 591 jim.wunderlich  1.31     ## TestBinRepository
 592 jim.wunderlich  1.29     ##
 593 jim.wunderlich  1.33     ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
 594                          ### the nightly tests to run
 595                          
 596 jim.wunderlich  1.31     TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
 597 jim.wunderlich  1.33     	@ $(ECHO) TestBinRepository +++++ passed all test
 598 jim.wunderlich  1.36     
 599 jim.wunderlich  1.29     
 600 jim.wunderlich  1.31     ############################
 601                          ##
 602                          ## TestBinRepositoryServer
 603                          ##
 604                          TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
 605 jim.wunderlich  1.33     	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
 606                          
 607                          ############################
 608                          ##
 609                          ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
 610                          ##
 611                          ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
 612 jim.wunderlich  1.34     TestBinCmpRepository: FORCE
 613 jim.wunderlich  1.33     	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
 614                          	@ $(ECHO) TestBinCmpRepository +++++ passed all test
 615                          else
 616                          
 617                          ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
 618                          
 619 jim.wunderlich  1.34     TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
 620 jim.wunderlich  1.33     	@ $(ECHO) TestBinCmpRepository +++++ passed all test
 621                          else
 622 jim.wunderlich  1.34     TestBinCmpRepository: FORCE
 623 jim.wunderlich  1.33     	@ $(ECHO) TestBinCmpRepository +++++ Not tested 
 624                          	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
 625                          	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
 626                          endif
 627                          endif
 628                          
 629                          
 630 jim.wunderlich  1.31     ###########################
 631                          ##
 632                          ## TestBinClean
 633                          ##
 634 jim.wunderlich  1.34     TestBinClean: FORCE
 635 jim.wunderlich  1.31     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 636                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
 637 jim.wunderlich  1.29     
 638 jim.wunderlich  1.31     
 639                          ###########################
 640 jim.wunderlich  1.29     ##
 641 jim.wunderlich  1.31     ## TestBinStartServer
 642 jim.wunderlich  1.29     ##
 643 jim.wunderlich  1.34     TestBinStartServer: FORCE
 644 jim.wunderlich  1.30     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
 645 jim.wunderlich  1.31     	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
 646                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
 647 jim.wunderlich  1.29     	$(SLEEP) 5
 648 jim.wunderlich  1.31     
 649                          ###########################
 650 jim.wunderlich  1.29     ##
 651 jim.wunderlich  1.31     ## TestBinBuildRepo
 652 jim.wunderlich  1.29     ##
 653 jim.wunderlich  1.34     TestBinBuildRepo: FORCE
 654 jim.wunderlich  1.29     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 655                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 656 jim.wunderlich  1.31     
 657                          
 658                          ###########################
 659                          ##
 660                          ## TestBinBuildRepoServ
 661                          ##
 662                          TestBinBuildRepoServ: TestBinStartServer
 663                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 664                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 665                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 666                          
 667                          
 668                          ###########################
 669                          ##
 670                          ## TestBinRepo
 671                          ##
 672 jim.wunderlich  1.40     TestBinRepo: servertestsclean 
 673 jim.wunderlich  1.35     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
 674 jim.wunderlich  1.29     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
 675 jim.wunderlich  1.31     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
 676 jim.wunderlich  1.29     
 677                          
 678                          
 679 jim.wunderlich  1.34     
 680                          ############################
 681                          ##
 682                          ## TestCmpBuild - used to compile the repository for compression
 683                          ##
 684                          TestCmpBuild: FORCE
 685                          	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
 686                          	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
 687                          	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
 688                          
 689                          
 690                          ############################
 691                          ##
 692                          ## TestRegBuild - used to compile the repository for no compression
 693                          ##
 694                          TestRegBuild: FORCE
 695                          	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
 696                          	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend 
 697                          	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository 
 698                          
 699                          
 700 nag.boranna     1.27     ###############################################################################
 701 kumpf           1.1      ##
 702                          ## Trace Configuration
 703                          ##
 704 jim.wunderlich  1.43     ## Options: see usagetrace rule
 705                          ##
 706                          ###############################################################################
 707                          
 708                          usagetrace: FORCE
 709                          	$(USAGE)
 710 a.dunfey        1.54.2.2 	$(USAGE)"TestMakefile Trace Commands: "
 711                          	$(USAGE)"  The cimserver must be running when using W=c which is the default for W"
 712 jim.wunderlich  1.43     	$(USAGE)
 713 a.dunfey        1.54.2.2 	$(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
 714                          	$(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
 715                          	$(USAGE)" tracesettings:                      Displays all trace settings."
 716                          	$(USAGE)" tracecomp:                          Displays a trace componenets list."
 717                          	$(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
 718 jim.wunderlich  1.43     	$(USAGE)"                           Enables tracing on component C at trace level L."
 719 a.dunfey        1.54.2.2 	$(USAGE)
 720                          	$(USAGE)" W defaults to c in the above commands where W can be specified" 
 721                          	$(USAGE)
 722                          	$(USAGE)"  Usage examples:"
 723                          	$(USAGE)"   traceon       turns on trace in current server config"
 724                          	$(USAGE)"   traceon W=c   turns on trace in current server config"
 725                          	$(USAGE)"   traceon W=p   turns on trace in planned server config"
 726                          	$(USAGE)"   traceoff      turns on trace in current server config"
 727                          	$(USAGE)"   traceoff W=c  turns on trace in current server config"
 728                          	$(USAGE)"   traceoff W=p  turns on trace in planned server config"
 729                          	$(USAGE)
 730                          	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
 731                          	$(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
 732                          	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
 733                          	$(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
 734 jim.wunderlich  1.43     	$(USAGE)
 735                          	$(USAGE)
 736                          
 737                          traceon: FORCE
 738 a.dunfey        1.54.2.2 	@ cimconfig -s traceComponents=ALL -$W 
 739                          	@ cimconfig -s traceLevel=3 -$W
 740                          	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
 741                          
 742 jim.wunderlich  1.43     
 743                          traceoff: FORCE
 744 a.dunfey        1.54.2.2 	@ cimconfig -s traceComponents=  -$W
 745                          	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
 746 jim.wunderlich  1.43     
 747                          
 748                          tracesettings: FORCE
 749                          	@ $(ECHO) " "
 750 a.dunfey        1.54.2.2 	cimconfig -g traceComponents -c -p
 751 jim.wunderlich  1.43     	@ $(ECHO) " "
 752 a.dunfey        1.54.2.2 	cimconfig -g traceLevel -c -p
 753 jim.wunderlich  1.43     	@ $(ECHO) " "
 754 a.dunfey        1.54.2.2 	cimconfig -g traceFilePath -c -p
 755 jim.wunderlich  1.43     	@ $(ECHO) " "
 756                          
 757                          traceon-CL: FORCE
 758 a.dunfey        1.54.2.2 	@ cimconfig -s traceComponents=$C -$W
 759                          	@ cimconfig -s traceLevel=$L -$W
 760                          	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
 761 jim.wunderlich  1.43     
 762                          tracecomp: FORCE
 763                          	$(USAGE)
 764                          	$(USAGE)"Trace component list:"
 765                          	$(USAGE)
 766                          	$(USAGE)"Channel"
 767                          	$(USAGE)"XmlParser"
 768                          	$(USAGE)"XmlWriter"
 769                          	$(USAGE)"XmlReader"
 770                          	$(USAGE)"XmlIO"
 771                          	$(USAGE)"Http"
 772                          	$(USAGE)"CimData"
 773                          	$(USAGE)"ProvManager"
 774                          	$(USAGE)"Repository"
 775                          	$(USAGE)"Dispatcher"
 776                          	$(USAGE)"OsAbstraction"
 777                          	$(USAGE)"Config"
 778                          	$(USAGE)"IndDelivery"
 779                          	$(USAGE)"IndHandler"
 780                          	$(USAGE)"Authentication"
 781                          	$(USAGE)"Authorization"
 782 jim.wunderlich  1.43     	$(USAGE)"UserManager"
 783                          	$(USAGE)"SubscriptionService"
 784                          	$(USAGE)"Registration"
 785                          	$(USAGE)"Shutdown"
 786                          	$(USAGE)"Server"
 787                          	$(USAGE)"IndicationService"
 788                          	$(USAGE)"IndicationServiceInternal"
 789                          	$(USAGE)"ConfigurationManager"
 790                          	$(USAGE)"MessageQueueService"
 791                          	$(USAGE)"ProviderManager"
 792                          	$(USAGE)"ObjectResolution"
 793                          	$(USAGE)"WQL"
 794                          	$(USAGE)"CQL"
 795                          	$(USAGE)"Thread"
 796                          	$(USAGE)"MetaDispatcher"
 797                          	$(USAGE)"IPC"
 798                          	$(USAGE)"IndicationHandlerService"
 799                          	$(USAGE)"CIMExportRequestDispatcher"
 800                          	$(USAGE)"Memory"
 801                          	$(USAGE)"SSL"
 802                          	$(USAGE)"ControlProvider"
 803 jim.wunderlich  1.43     	$(USAGE)"AsyncOpNode"
 804                          	$(USAGE)"CIMOMHandle"
 805                          	$(USAGE)"BinaryMessageHandler"
 806                          	$(USAGE)"L10N"
 807                          	$(USAGE)"ExportClient"
 808                          	$(USAGE)"Listener"
 809                          	$(USAGE)"DiscardedData"
 810                          	$(USAGE)"ProviderAgent"
 811                          	$(USAGE)
 812                          
 813                          ###############################################################################
 814                          ##
 815                          ## Trace Configuration - Old rules being deprecated
 816                          ##
 817 kumpf           1.1      ## Options:
 818                          ##      XMLTraceOn: Enables XML request and response tracing.
 819                          ##      ProviderLoadTraceOn: Enables Provider load tracing.
 820                          ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
 821                          ##                                 load tracing.
 822                          ##      AllTraceOn: Enables all tracing.
 823                          ##      AllTraceOff: Disables all tracing.
 824                          ##      list: Lists trace settings.
 825                          ##
 826                          ###############################################################################
 827                          
 828                          XMLTraceOn:
 829                          	cimconfig -s traceComponents=XmlIO -c
 830                          	cimconfig -s traceLevel=3 -c
 831                          	cimconfig -g traceComponents
 832                          	cimconfig -g traceLevel
 833                          
 834                          ProviderLoadTraceOn:
 835                          	cimconfig -s traceComponents=ProvManager,OsAbstraction
 836                          	cimconfig -s traceLevel=3 -c
 837                          	cimconfig -g traceComponents
 838 kumpf           1.1      	cimconfig -g traceLevel
 839                          
 840                          XML+ProviderLoadTraceOn:
 841                          	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
 842                          	cimconfig -s traceLevel=3 -c
 843                          	cimconfig -g traceComponents
 844                          	cimconfig -g traceLevel
 845                          
 846 jim.wunderlich  1.43     AllTraceOn: traceon
 847                          
 848                          AllTraceOff: traceoff
 849 kumpf           1.1      
 850 jim.wunderlich  1.43     list: tracesettings
 851 kumpf           1.1      
 852 a.dunfey        1.54.2.1 #########################################################################
 853                          # standardtests
 854                          #
 855                          # More testing options...
 856                          #
 857                          # The standard test seem to contain additional test that may not be able 
 858                          # to run on all platforms so they have been grouped here for now rather than
 859                          # being included in the serversuite rule.
 860                          #
 861                          # The test are:
 862                          #      TestCimmof
 863                          #      TestNoSecurity
 864                          #      TestLocalSecurity
 865                          #      TestRemoteSecurity
 866                          #      TestAuthorization
 867                          #
 868                          # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
 869                          #       TestNoSecurity.
 870                          #
 871                          # NOTE: The TestNoSecurity step runs the servertests which builds the
 872                          #       the repository that is then left in place for the remaining tests.
 873 a.dunfey        1.54.2.1 #       The cimof test must be before the TestNosecurity step as it removes
 874                          #       the repository builds a new one with cimmofl and another one with
 875                          #       cimmof and then compares them. 
 876                          #
 877                          # NOTE: The Authentication test is comprised of EnableAuthentication, 
 878                          #       TestLocalSecurity and TestRemoteSecurity. 
 879                          #
 880                          # NOTE: The Authorization test is comprised of EnableAuthorization and
 881                          #       TestAuthorization. 
 882                          #
 883                          # NOTE: The EnableAuthentication and EnableAuthorization steps require 
 884                          #       root access. Pegasus doesn't currently have the infrastructure
 885                          #       in place to run the server as root and run the test as non-root.
 886                          #       Rather than run everything, server, tests, providers, clients etc.
 887                          #       as root many testers prefer to run the tests as non-root. Setting
 888                          #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to 
 889                          #       facilitate that.
 890                          #
 891 kumpf           1.1      
 892 jim.wunderlich  1.40     standardtests: FORCE
 893 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
 894                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
 895                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
 896 a.dunfey        1.54.2.1 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
 897 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
 898                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
 899                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
 900                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
 901                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
 902 jim.wunderlich  1.53     else
 903 a.dunfey        1.54.2.1 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
 904 jim.wunderlich  1.53     	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "	
 905                          endif
 906 jim.wunderlich  1.40     	@ $(ECHO) "+++++ TestMakefile standardtests complete"
 907 kumpf           1.1      
 908                          TestNoSecurity:
 909 a.dunfey        1.54.2.1 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
 910 kumpf           1.24     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
 911 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
 912 kumpf           1.1      
 913                          TestLocalSecurity:
 914 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
 915 kumpf           1.1      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
 916                          
 917                          TestRemoteSecurity:
 918 a.dunfey        1.54.2.2 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
 919                          	$(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
 920 kumpf           1.1      
 921                          TestAuthorization:
 922 a.dunfey        1.54.2.2 	TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
 923 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
 924 a.dunfey        1.54.2.2 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
 925                          	$(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
 926 kumpf           1.1      
 927                          TestSubscriptions:
 928 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
 929 kumpf           1.1      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
 930                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
 931 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
 932 david.dillard   1.15     	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
 933 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
 934 kumpf           1.1      
 935                          TestCimmof:
 936 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
 937 kumpf           1.1      
 938                          RunTestClientLocal:
 939                          	TestClient -local
 940                          
 941                          DisableSecurity:
 942 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 943 kumpf           1.1      	cimconfig -s enableAuthentication=false -p
 944                          	cimconfig -s enableNamespaceAuthorization=false -p
 945                          
 946 a.dunfey        1.54.2.2 EnableUsers:
 947                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 948                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
 949                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
 950                          
 951 kumpf           1.1      EnableAuthentication:
 952 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 953 kumpf           1.1      	cimconfig -s enableAuthentication=true -p
 954 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
 955                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
 956 kumpf           1.1      
 957                          EnableAuthorization:
 958 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 959 kumpf           1.10     	cimconfig -s enableNamespaceAuthorization=true -p
 960 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
 961                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
 962 kumpf           1.1      
 963                          EnableSSL:
 964 kumpf           1.21     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 965                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
 966 kumpf           1.1      
 967 a.dunfey        1.54.2.2 #
 968                          # ConfigureUsers
 969                          #
 970                          # The server must be running prior to invoking this rule
 971                          #
 972 kumpf           1.1      ConfigureUsers:
 973                          ifndef PEGASUS_PAM_AUTHENTICATION
 974 a.dunfey        1.54.2.2 	-cimuser -l
 975                          	-cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
 976 kumpf           1.1      endif
 977                          
 978 a.dunfey        1.54.2.2 #
 979                          # ConfigureAuthorizations rule
 980                          #
 981                          # The server must be running prior to invoking this rule
 982                          #
 983 kumpf           1.1      ConfigureAuthorizations:
 984 a.dunfey        1.54.2.2 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
 985                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
 986                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
 987                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
 988                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
 989                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
 990                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
 991                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
 992                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
 993 a.dunfey        1.54.2.3 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/A -R -W
 994                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/B -R -W
 995                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
 996 a.dunfey        1.54.2.2 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
 997                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
 998                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
 999                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1000                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1001                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1002                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1003                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1004                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1005                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1006                          	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1007 kumpf           1.1      
1008 jim.wunderlich  1.41     startcimWithoutSSL: FORCE
1009                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1010 kumpf           1.19     	$(SLEEP) 5
1011 kumpf           1.1      
1012 jim.wunderlich  1.41     startcimWithSSL: FORCE
1013                          	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1014 kumpf           1.19     	$(SLEEP) 5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2