(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                     	$(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                      # The association between user names and certificates is stored in the repository.  If the
236                      # repository is recreated, we also need to re-initialize the trust store directories.
237                      # Otherwise, the truststore content will be out-of-sync with the mapping stored in the
238                      # repository.
239                      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
240                      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
241                      endif
242 jim.wunderlich  1.40 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
243                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
244 jim.wunderlich  1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
245 kumpf           1.19 	$(SLEEP) 5
246 denise.eckstein 1.50 ifdef PEGASUS_HAS_SSL
247                      ifdef PEGASUS_TEST_USER_DEFINED
248                      	ssltrustmgr -a -c pegtest -f $(PEGASUS_HOME)/server.pem
249                      endif
250                      endif
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                      run_INDSSL_TS1: FORCE
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 kumpf           1.46 ###############################################################################
429                      ##  G11N Test Suite 1: Globalization Tests 
430                      ##
431                      ##  Configuration Options: forceProviderProcesses=false
432                      ##
433                      ###############################################################################
434                      G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
435                      G11N_TS1_TEST_CMDS = \
436                              $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
437                                  -f Makefile g11ntest
438                      
439                      run_G11N_TS1:
440                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
441                                  CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
442                                  TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
443                      ###############################################################################
444                      
445 jim.wunderlich  1.39 
446 nag.boranna     1.27 ###############################################################################
447                      
448 jim.wunderlich  1.34 
449                      
450                      ##############################################################################
451                      ##
452                      ## TestXMLRepository rule is used to run the poststarttests suite on
453                      ## the XML Repository built using cimmofl
454                      ##
455                      ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
456                      ## the XML Repository built using cimmof
457                      ##
458                      ## TestXMLCmpRepository rule is used to run the poststarttest suite on 
459                      ## the XML Compressed Repository built using cimmofl
460                      ##
461                      
462                      ############################
463                      ##
464                      ## TestXMLRepository
465                      ##
466                      
467                      TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
468                      	@ $(ECHO) TestXMLRepository +++++ passed all test
469 jim.wunderlich  1.34 
470                      ############################
471                      ##
472                      ## TestXMLRepositoryServer
473                      ##
474                      TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
475                      	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
476                      
477                      ############################
478                      ##
479                      ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
480                      ##
481                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
482                      TestXMLCmpRepository: FORCE
483                      	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
484                      	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
485                      else
486                      
487                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
488                      
489                      TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
490 jim.wunderlich  1.34 	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
491                      else
492                      TestXMLCmpRepository: FORCE
493                      	@ $(ECHO) TestXMLCmpRepository +++++ Not tested 
494                      	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
495                      	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
496                      endif
497                      endif
498                      
499                      ###########################
500                      ##
501                      ## TestXMLClean
502                      ##
503                      TestXMLClean: FORCE
504                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
505                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
506                      
507                      
508                      ###########################
509                      ##
510                      ## TestXMLStartServer
511 jim.wunderlich  1.34 ##
512                      TestXMLStartServer: FORCE
513                      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
514                      	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
515                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
516                      	$(SLEEP) 5
517                      
518                      ####
519                      #### The following caused the cimserver to fail on startup
520                      ####
521                      ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
522                      
523                      ###########################
524                      ##
525                      ## TestXMLBuildRepo
526                      ##
527                      TestXMLBuildRepo: FORCE
528                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
529                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
530                      
531                      
532 jim.wunderlich  1.34 ###########################
533                      ##
534                      ## TestXMLBuildRepoServ
535                      ##
536                      TestXMLBuildRepoServ: TestXMLStartServer
537                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
538                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
539                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
540                      
541                      
542                      ###########################
543                      ##
544                      ## TestXMLRepo
545                      ##
546 jim.wunderlich  1.40 TestXMLRepo: servertestsclean
547 jim.wunderlich  1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
548 jim.wunderlich  1.34 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
549                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
550                      
551                      
552                      
553                      
554                      
555                      
556 jim.wunderlich  1.29 ##############################################################################
557                      ##
558 jim.wunderlich  1.31 ## TestBinRepository rule is used to run the poststarttests suite on
559 jim.wunderlich  1.33 ## the Binary Repository built using cimmofl
560 jim.wunderlich  1.29 ##
561 jim.wunderlich  1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
562 jim.wunderlich  1.33 ## the Binary Repository built using cimmof
563                      ##
564                      ## TestBinCmpRepository rule is used to run the poststarttest suite on 
565                      ## the Binry Compressed Repository built using cimmofl
566 jim.wunderlich  1.29 ##
567 jim.wunderlich  1.31 
568                      ############################
569 jim.wunderlich  1.29 ##
570 jim.wunderlich  1.31 ## TestBinRepository
571 jim.wunderlich  1.29 ##
572 jim.wunderlich  1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
573                      ### the nightly tests to run
574                      
575 jim.wunderlich  1.31 TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
576 jim.wunderlich  1.33 	@ $(ECHO) TestBinRepository +++++ passed all test
577 jim.wunderlich  1.36 
578 jim.wunderlich  1.29 
579 jim.wunderlich  1.31 ############################
580                      ##
581                      ## TestBinRepositoryServer
582                      ##
583                      TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
584 jim.wunderlich  1.33 	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
585                      
586                      ############################
587                      ##
588                      ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
589                      ##
590                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
591 jim.wunderlich  1.34 TestBinCmpRepository: FORCE
592 jim.wunderlich  1.33 	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
593                      	@ $(ECHO) TestBinCmpRepository +++++ passed all test
594                      else
595                      
596                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
597                      
598 jim.wunderlich  1.34 TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
599 jim.wunderlich  1.33 	@ $(ECHO) TestBinCmpRepository +++++ passed all test
600                      else
601 jim.wunderlich  1.34 TestBinCmpRepository: FORCE
602 jim.wunderlich  1.33 	@ $(ECHO) TestBinCmpRepository +++++ Not tested 
603                      	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
604                      	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
605                      endif
606                      endif
607                      
608                      
609 jim.wunderlich  1.31 ###########################
610                      ##
611                      ## TestBinClean
612                      ##
613 jim.wunderlich  1.34 TestBinClean: FORCE
614 jim.wunderlich  1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
615                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
616 jim.wunderlich  1.29 
617 jim.wunderlich  1.31 
618                      ###########################
619 jim.wunderlich  1.29 ##
620 jim.wunderlich  1.31 ## TestBinStartServer
621 jim.wunderlich  1.29 ##
622 jim.wunderlich  1.34 TestBinStartServer: FORCE
623 jim.wunderlich  1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
624 jim.wunderlich  1.31 	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
625                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
626 jim.wunderlich  1.29 	$(SLEEP) 5
627 jim.wunderlich  1.31 
628                      ###########################
629 jim.wunderlich  1.29 ##
630 jim.wunderlich  1.31 ## TestBinBuildRepo
631 jim.wunderlich  1.29 ##
632 jim.wunderlich  1.34 TestBinBuildRepo: FORCE
633 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
634                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
635 jim.wunderlich  1.31 
636                      
637                      ###########################
638                      ##
639                      ## TestBinBuildRepoServ
640                      ##
641                      TestBinBuildRepoServ: TestBinStartServer
642                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
643                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
644                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
645                      
646                      
647                      ###########################
648                      ##
649                      ## TestBinRepo
650                      ##
651 jim.wunderlich  1.40 TestBinRepo: servertestsclean 
652 jim.wunderlich  1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
653 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
654 jim.wunderlich  1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
655 jim.wunderlich  1.29 
656                      
657                      
658 jim.wunderlich  1.34 
659                      ############################
660                      ##
661                      ## TestCmpBuild - used to compile the repository for compression
662                      ##
663                      TestCmpBuild: FORCE
664                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
665                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
666                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
667                      
668                      
669                      ############################
670                      ##
671                      ## TestRegBuild - used to compile the repository for no compression
672                      ##
673                      TestRegBuild: FORCE
674                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
675                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend 
676                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository 
677                      
678                      
679 nag.boranna     1.27 ###############################################################################
680 kumpf           1.1  ##
681                      ## Trace Configuration
682                      ##
683 jim.wunderlich  1.43 ## Options: see usagetrace rule
684                      ##
685                      ###############################################################################
686                      
687                      usagetrace: FORCE
688                      	$(USAGE)
689 jim.wunderlich  1.60 	$(USAGE)"TestMakefile Trace Commands: "
690                      	$(USAGE)"  The cimserver must be running when using W=c which is the default for W"
691 jim.wunderlich  1.43 	$(USAGE)
692 jim.wunderlich  1.60 	$(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
693                      	$(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
694                      	$(USAGE)" tracesettings:                      Displays all trace settings."
695                      	$(USAGE)" tracecomp:                          Displays a trace componenets list."
696                      	$(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
697                      	$(USAGE)"                           Enables tracing on component C at trace level L."
698                      	$(USAGE)
699                      	$(USAGE)" W defaults to c in the above commands where W can be specified" 
700 jim.wunderlich  1.43 	$(USAGE)
701 jim.wunderlich  1.60 	$(USAGE)"  Usage examples:"
702                      	$(USAGE)"   traceon       turns on trace in current server config"
703                      	$(USAGE)"   traceon W=c   turns on trace in current server config"
704                      	$(USAGE)"   traceon W=p   turns on trace in planned server config"
705                      	$(USAGE)"   traceoff      turns on trace in current server config"
706                      	$(USAGE)"   traceoff W=c  turns on trace in current server config"
707                      	$(USAGE)"   traceoff W=p  turns on trace in planned server config"
708                      	$(USAGE)
709                      	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
710                      	$(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
711                      	$(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
712                      	$(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
713 jim.wunderlich  1.43 	$(USAGE)
714                      	$(USAGE)
715                      
716                      traceon: FORCE
717 jim.wunderlich  1.60 	@ cimconfig -s traceComponents=ALL -$W 
718                      	@ cimconfig -s traceLevel=3 -$W
719                      	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
720                      
721 jim.wunderlich  1.43 
722                      traceoff: FORCE
723 jim.wunderlich  1.60 	@ cimconfig -s traceComponents=  -$W
724                      	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
725 jim.wunderlich  1.43 
726                      
727                      tracesettings: FORCE
728                      	@ $(ECHO) " "
729 jim.wunderlich  1.60 	cimconfig -g traceComponents -c -p
730 jim.wunderlich  1.43 	@ $(ECHO) " "
731 jim.wunderlich  1.60 	cimconfig -g traceLevel -c -p
732 jim.wunderlich  1.43 	@ $(ECHO) " "
733 jim.wunderlich  1.60 	cimconfig -g traceFilePath -c -p
734 jim.wunderlich  1.43 	@ $(ECHO) " "
735                      
736                      traceon-CL: FORCE
737 jim.wunderlich  1.60 	@ cimconfig -s traceComponents=$C -$W
738                      	@ cimconfig -s traceLevel=$L -$W
739                      	$(MAKE) -f $(ROOT)/TestMakefile tracesettings
740 jim.wunderlich  1.43 
741                      tracecomp: FORCE
742                      	$(USAGE)
743                      	$(USAGE)"Trace component list:"
744                      	$(USAGE)
745                      	$(USAGE)"Channel"
746                      	$(USAGE)"XmlParser"
747                      	$(USAGE)"XmlWriter"
748                      	$(USAGE)"XmlReader"
749                      	$(USAGE)"XmlIO"
750                      	$(USAGE)"Http"
751                      	$(USAGE)"CimData"
752                      	$(USAGE)"ProvManager"
753                      	$(USAGE)"Repository"
754                      	$(USAGE)"Dispatcher"
755                      	$(USAGE)"OsAbstraction"
756                      	$(USAGE)"Config"
757                      	$(USAGE)"IndDelivery"
758                      	$(USAGE)"IndHandler"
759                      	$(USAGE)"Authentication"
760                      	$(USAGE)"Authorization"
761 jim.wunderlich  1.43 	$(USAGE)"UserManager"
762                      	$(USAGE)"SubscriptionService"
763                      	$(USAGE)"Registration"
764                      	$(USAGE)"Shutdown"
765                      	$(USAGE)"Server"
766                      	$(USAGE)"IndicationService"
767                      	$(USAGE)"IndicationServiceInternal"
768                      	$(USAGE)"ConfigurationManager"
769                      	$(USAGE)"MessageQueueService"
770                      	$(USAGE)"ProviderManager"
771                      	$(USAGE)"ObjectResolution"
772                      	$(USAGE)"WQL"
773                      	$(USAGE)"CQL"
774                      	$(USAGE)"Thread"
775                      	$(USAGE)"MetaDispatcher"
776                      	$(USAGE)"IPC"
777                      	$(USAGE)"IndicationHandlerService"
778                      	$(USAGE)"CIMExportRequestDispatcher"
779                      	$(USAGE)"Memory"
780                      	$(USAGE)"SSL"
781                      	$(USAGE)"ControlProvider"
782 jim.wunderlich  1.43 	$(USAGE)"AsyncOpNode"
783                      	$(USAGE)"CIMOMHandle"
784                      	$(USAGE)"BinaryMessageHandler"
785                      	$(USAGE)"L10N"
786                      	$(USAGE)"ExportClient"
787                      	$(USAGE)"Listener"
788                      	$(USAGE)"DiscardedData"
789                      	$(USAGE)"ProviderAgent"
790                      	$(USAGE)
791                      
792                      ###############################################################################
793                      ##
794                      ## Trace Configuration - Old rules being deprecated
795                      ##
796 kumpf           1.1  ## Options:
797                      ##      XMLTraceOn: Enables XML request and response tracing.
798                      ##      ProviderLoadTraceOn: Enables Provider load tracing.
799                      ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
800                      ##                                 load tracing.
801                      ##      AllTraceOn: Enables all tracing.
802                      ##      AllTraceOff: Disables all tracing.
803                      ##      list: Lists trace settings.
804                      ##
805                      ###############################################################################
806                      
807                      XMLTraceOn:
808                      	cimconfig -s traceComponents=XmlIO -c
809                      	cimconfig -s traceLevel=3 -c
810                      	cimconfig -g traceComponents
811                      	cimconfig -g traceLevel
812                      
813                      ProviderLoadTraceOn:
814                      	cimconfig -s traceComponents=ProvManager,OsAbstraction
815                      	cimconfig -s traceLevel=3 -c
816                      	cimconfig -g traceComponents
817 kumpf           1.1  	cimconfig -g traceLevel
818                      
819                      XML+ProviderLoadTraceOn:
820                      	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
821                      	cimconfig -s traceLevel=3 -c
822                      	cimconfig -g traceComponents
823                      	cimconfig -g traceLevel
824                      
825 jim.wunderlich  1.43 AllTraceOn: traceon
826                      
827                      AllTraceOff: traceoff
828 kumpf           1.1  
829 jim.wunderlich  1.43 list: tracesettings
830 kumpf           1.1  
831 jim.wunderlich  1.55 #########################################################################
832                      # standardtests
833                      #
834                      # More testing options...
835                      #
836                      # The standard test seem to contain additional test that may not be able 
837                      # to run on all platforms so they have been grouped here for now rather than
838                      # being included in the serversuite rule.
839                      #
840                      # The test are:
841                      #      TestCimmof
842                      #      TestNoSecurity
843                      #      TestLocalSecurity
844                      #      TestRemoteSecurity
845                      #      TestAuthorization
846                      #
847                      # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
848                      #       TestNoSecurity.
849                      #
850                      # NOTE: The TestNoSecurity step runs the servertests which builds the
851                      #       the repository that is then left in place for the remaining tests.
852 jim.wunderlich  1.55 #       The cimof test must be before the TestNosecurity step as it removes
853                      #       the repository builds a new one with cimmofl and another one with
854                      #       cimmof and then compares them. 
855                      #
856                      # NOTE: The Authentication test is comprised of EnableAuthentication, 
857                      #       TestLocalSecurity and TestRemoteSecurity. 
858                      #
859                      # NOTE: The Authorization test is comprised of EnableAuthorization and
860                      #       TestAuthorization. 
861                      #
862                      # NOTE: The EnableAuthentication and EnableAuthorization steps require 
863                      #       root access. Pegasus doesn't currently have the infrastructure
864                      #       in place to run the server as root and run the test as non-root.
865                      #       Rather than run everything, server, tests, providers, clients etc.
866                      #       as root many testers prefer to run the tests as non-root. Setting
867                      #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to 
868                      #       facilitate that.
869                      #
870 kumpf           1.1  
871 jim.wunderlich  1.40 standardtests: FORCE
872 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
873                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
874                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
875 jim.wunderlich  1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
876 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
877                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
878                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
879                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
880                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
881 jim.wunderlich  1.53 else
882 jim.wunderlich  1.55 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
883 jim.wunderlich  1.53 	@ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "	
884                      endif
885 jim.wunderlich  1.40 	@ $(ECHO) "+++++ TestMakefile standardtests complete"
886 kumpf           1.1  
887                      TestNoSecurity:
888 jim.wunderlich  1.56 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
889 kumpf           1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
890 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
891 kumpf           1.1  
892                      TestLocalSecurity:
893 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
894 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
895                      
896                      TestRemoteSecurity:
897 jim.wunderlich  1.59 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
898                      	$(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
899 kumpf           1.1  
900                      TestAuthorization:
901 jim.wunderlich  1.59 	TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
902 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
903 jim.wunderlich  1.59 	TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
904                      	$(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
905 kumpf           1.1  
906                      TestSubscriptions:
907 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
908 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
909                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
910 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
911 david.dillard   1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
912 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
913 kumpf           1.1  
914                      TestCimmof:
915 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
916 kumpf           1.1  
917                      RunTestClientLocal:
918                      	TestClient -local
919                      
920                      DisableSecurity:
921 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
922 kumpf           1.1  	cimconfig -s enableAuthentication=false -p
923                      	cimconfig -s enableNamespaceAuthorization=false -p
924                      
925                      EnableAuthentication:
926 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
927 kumpf           1.1  	cimconfig -s enableAuthentication=true -p
928 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
929                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
930 kumpf           1.1  
931                      EnableAuthorization:
932 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
933 kumpf           1.10 	cimconfig -s enableNamespaceAuthorization=true -p
934 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
935                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
936 kumpf           1.1  
937                      EnableSSL:
938 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
939                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
940 kumpf           1.1  
941                      ConfigureUsers:
942                      ifndef PEGASUS_PAM_AUTHENTICATION
943 jim.wunderlich  1.59 	cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
944 kumpf           1.1  endif
945                      
946                      ConfigureAuthorizations:
947 jim.wunderlich  1.59 	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
948                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
949                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
950                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
951                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
952                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
953                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
954                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
955                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
956                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
957                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
958                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
959                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
960                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
961                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
962                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
963                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
964                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
965                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
966                      	cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
967 kumpf           1.1  
968 jim.wunderlich  1.41 startcimWithoutSSL: FORCE
969                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
970 kumpf           1.19 	$(SLEEP) 5
971 kumpf           1.1  
972 jim.wunderlich  1.41 startcimWithSSL: FORCE
973                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
974 kumpf           1.19 	$(SLEEP) 5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2