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

  1 martin 1.32 #//%2005////////////////////////////////////////////////////////////////////////
  2             #//
  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             #//
 12             #// Permission is hereby granted, free of charge, to any person obtaining a copy
 13             #// of this software and associated documentation files (the "Software"), to
 14             #// deal in the Software without restriction, including without limitation the
 15             #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16             #// sell copies of the Software, and to permit persons to whom the Software is
 17             #// furnished to do so, subject to the following conditions:
 18             #// 
 19             #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20             #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21             #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 martin 1.32 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23             #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24             #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25             #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26             #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27             #//
 28             #//==============================================================================
 29 kumpf  1.1  ###############################################################################
 30             ##
 31             ## Test Makefile for Pegasus CIMOM
 32             ##
 33 jim.wunderlich 1.40 ## see the usage rule for documentation of rules etc.
 34 jim.wunderlich 1.34 ##
 35                     ##
 36 kumpf          1.1  ###############################################################################
 37                     
 38 david.dillard  1.15 error:
 39 jim.wunderlich 1.40 	@ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
 40 kumpf          1.1  
 41 kumpf          1.23 include $(PEGASUS_ROOT)/mak/config.mak
 42                     include $(PEGASUS_ROOT)/mak/test.mak
 43                     include $(PEGASUS_ROOT)/mak/commands.mak
 44                     
 45                     system = localhost
 46                     
 47 jim.wunderlich 1.34 .PHONY: FORCE
 48                     
 49                     FORCE:
 50                     
 51 jim.wunderlich 1.40 usage: FORCE
 52                     	$(USAGE)
 53                     	$(USAGE)"TestMakefile Primary Targets:"
 54                     	$(USAGE)
 55                     	$(USAGE)"The following are all standalone tests. They stop and start the server,"
 56                     	$(USAGE)"and build repositories as needed."
 57                     	$(USAGE)
 58                     	$(USAGE)"alltests           - Execute unittests and servertests"
 59                     	$(USAGE)"unittests          - Execute the unit functional tests - no repository"
 60                     	$(USAGE)"                     or active server is required"
 61                     	$(USAGE)"servertests        - Execute a basic server test suites (No security, No SSL)"
 62                     	$(USAGE)"standardtests      - Execute an extended server test suites "
 63                     	$(USAGE)"                     using multiple options."
 64                     	$(USAGE)"serverquicktests   - Executes a brief server test"
 65                     	$(USAGE)
 66                     	$(USAGE)"usage2             - usage on secondary test targets"
 67                     	$(USAGE)
 68                     
 69                     usage2: FORCE
 70                     	$(USAGE)
 71                     	$(USAGE)"TestMakefile Secondary Targets:"
 72 jim.wunderlich 1.40 	$(USAGE)
 73                     	$(USAGE)"The following are run as part of the Primary target test suites and may"
 74                     	$(USAGE)"also be invoked as standalone tests."
 75                     	$(USAGE)
 76                     	$(USAGE)"TestXMLRepository       - Executes poststarttests on XML repository"
 77                     	$(USAGE)"                          built with cimmofl."
 78                     	$(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository" 
 79                     	$(USAGE)"                          built with cimmof."
 80                     	$(USAGE)"TestXMLCmpRepository    - Executes poststarttests on XML compressed"
 81                     	$(USAGE)"                          repository built with cimmofl."
 82                     	$(USAGE)"TestBinRepository       - Executes poststarttests on binary repository "
 83                     	$(USAGE)"                          built with cimmofl."
 84                     	$(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
 85                     	$(USAGE)"                          built with cimmof."
 86                     	$(USAGE)"TestBinCmpRepository    - Executes poststarttests on binary compressed"
 87                     	$(USAGE)"                          repository built with cimmofl."
 88                     	$(USAGE)
 89                     	$(USAGE)"The following require the repository to be pre-built."
 90                     	$(USAGE)
 91                     	$(USAGE)"run_SSL_TS1             - Executes the SSL tests"
 92                     	$(USAGE)"run_OOP_TS1             - Executes the Out Of Process Provider tests"
 93 jim.wunderlich 1.40 	$(USAGE)
 94                     	$(USAGE)"The following require the repository to be pre-built and the server to be started."
 95                     	$(USAGE)
 96                     	$(USAGE)"serversuite             - the collection of test run by the servertests rule"
 97                     	$(USAGE)"serverquicksuite        - The collection of test run by the serverquicktests rule"
 98                     	$(USAGE)
 99                     
100                     
101                     ##########################################################
102                     #
103                     # rules that are defined in Makefile
104                     #
105                     ##########################################################
106 kumpf          1.21 
107 jim.wunderlich 1.39 build: FORCE
108                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
109 kumpf          1.21 
110 jim.wunderlich 1.40 world: FORCE
111                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
112                     
113                     new: FORCE
114                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
115                     
116 jim.wunderlich 1.39 clean: FORCE
117 kumpf          1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
118                     
119 jim.wunderlich 1.40 depend: FORCE
120                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
121                     
122                     
123                     ############################################################
124                     #
125                     # rules defined here
126                     #
127                     ############################################################
128                     
129 jim.wunderlich 1.41 ##
130                     ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
131                     ## are available and could be invoked directly, their direct usage is
132                     ## discouraged in favor of invoking the cimstop and the cimstart rules
133                     ## as this allows one place where additional checks, delays etc may be 
134                     ## added in the future to control or further test the servers performance
135                     ## in executing these commands.
136                     ##
137                     
138 jim.wunderlich 1.40 #######################
139                     #
140                     # doc
141                     #
142 kumpf          1.1  doc:
143 mday           1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
144                     	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
145 kumpf          1.1  
146 jim.wunderlich 1.40 
147                     #######################
148                     #
149                     # repositoryServer
150                     #
151                     repositoryServer: FORCE
152 kumpf          1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
153 kumpf          1.19 	$(SLEEP) 5
154 kumpf          1.1  	$(RMDIRHIER) $(REPOSITORY_ROOT)
155 jim.wunderlich 1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
156 kumpf          1.19 	$(SLEEP) 5
157 kumpf          1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
158                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
159 mday           1.6  
160 jim.wunderlich 1.40 ######################
161                     #
162                     # prestarttests is being deprecated since poststarttest is being deprecated
163                     # in favor of name more related to its intended functionality. 
164                     #
165                     prestarttests: prestarttests_msg shortsleep unittests
166                     
167                     prestarttests_msg: FORCE
168                     	@$(ECHO) "=============================================================================="
169                     	@$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
170                     	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
171                     	@$(ECHO) "              The equivalent new rule is \"unittests\"."  
172                     	@$(ECHO) "              Invoking the \"unittests\" rule now."
173                     	@$(ECHO) "=============================================================================="
174                     
175                     ####################
176                     #
177                     # poststarttests is being deprecated since it multiply defines a 
178                     # recursive make rule leading to ambuguity and confusion.
179                     #
180                     poststarttests: poststarttests_msg shortsleep servertests 
181 jim.wunderlich 1.40 
182                     poststarttests_msg: FORCE
183                     	@$(ECHO) "==============================================================================="
184                     	@$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."  
185                     	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
186                     	@$(ECHO) "              The equivalent new rule is \"servertests\"."  
187                     	@$(ECHO) "              Invoking the \"servertests\" rule now."
188                     	@$(ECHO) "==============================================================================="
189                     
190                     #####################
191                     #
192                     # tests is being deprecated since it multiply defines a 
193                     # recursive make rule leading to ambuguity and confusion.
194                     #
195                     tests: tests_msg shortsleep alltests
196                     
197                     tests_msg: FORCE
198                     	@$(ECHO) "==================================================================="
199                     	@$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
200                     	@$(ECHO) "              Use \"make testusage\" for a description of the usage model."	
201                     	@$(ECHO) "              The equivalent new rule is \"alltests\"."  
202 jim.wunderlich 1.40 	@$(ECHO) "              Invoking the \"alltests\" rule now."
203                     	@$(ECHO) "==================================================================="
204                     
205                     
206                     shortsleep: FORCE
207                     	@$(SLEEP) 5
208                     
209                     ####################
210                     #
211                     # unittests
212                     #
213                     unittests: FORCE
214 h.sterling     1.38 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
215 jim.wunderlich 1.40 	@ $(ECHO) "+++++ TestMakefile unittests complete"
216                     
217                     #####################
218                     #
219                     # servertests
220                     #
221 kumpf          1.1  
222 jim.wunderlich 1.40 servertestsclean: FORCE
223 jim.wunderlich 1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
224 lucier         1.17 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
225                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
226 mday           1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
227 jim.wunderlich 1.31 
228 jim.wunderlich 1.40 
229                     servertestssetup: FORCE
230                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
231                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
232 jim.wunderlich 1.41 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
233 kumpf          1.19 	$(SLEEP) 5
234 jim.wunderlich 1.40 
235                     servertests: servertestsclean servertestssetup serversuite
236                     	@ $(ECHO) "+++++ TestMakefile servertests suites complete"
237                     
238                     serversuite: FORCE
239 kumpf          1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
240 jim.wunderlich 1.33 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
241 kumpf          1.20 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
242 carolann.graves 1.28 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
243 h.sterling      1.37 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
244 kumpf           1.1  
245 jim.wunderlich  1.40 ####################
246                      #
247                      # serverquicktests
248                      #
249                      serverquicktests: servertestsclean servertestssetup serverquicksuite
250                      	@ $(ECHO) "+++++ TestMakefile serverquicktests complete"
251                      
252                      serverquicksuite: FORCE
253                      	$(PEGASUS_HOME)/bin/Client
254                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
255 jim.wunderlich  1.42 	$(PEGASUS_HOME)/bin/TestClient
256                      
257                      ####################
258                      #
259                      # perftests - simple performance test until we have better
260                      #
261                      # - Turns statistics on (uses TestInterop until we have better)
262                      # - runs and times serverquicktests suite 
263                      # - runs cimperf to displat the statistics
264                      # - turns statistics off 
265                      #
266                      perftests: servertestsclean servertestssetup perfsuite
267                      
268                      perfsuite: FORCE
269                      	$(PEGASUS_HOME)/bin/TestInterop on
270                      	$(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
271                      	@ $(ECHO) " "
272                      	$(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
273                      	@ $(ECHO) " "
274                      	$(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
275                      	@ $(ECHO) " "
276 jim.wunderlich  1.42 	@ $(ECHO) " "
277                      	$(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
278                      	@ $(ECHO) " "
279                      	$(PEGASUS_HOME)/bin/TestInterop off
280                      
281 jim.wunderlich  1.40 
282                      ####################
283                      #
284                      # alltests
285                      #
286                      alltests: unittests servertests
287 tony            1.5  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
288 kumpf           1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
289 mday            1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
290 tony            1.5  endif
291 jim.wunderlich  1.40 	@ $(ECHO) "+++++ TestMakefile alltests Complete"
292 kumpf           1.1  
293                      ###############################################################################
294 denise.eckstein 1.18 ##  Test Suite Definitions
295                      ###############################################################################
296                      
297                      ###############################################################################
298                      ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
299                      ##
300                      ##  Configuration Options: forceProviderProcesses=true
301                      ##
302                      ###############################################################################
303                      OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
304                      OOP_TS1_TEST_CMDS = \
305                              TestClient
306                      
307                      run_OOP_TS1:
308 denise.eckstein 1.26 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
309 denise.eckstein 1.18             CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
310                                  TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
311                      ###############################################################################
312                      
313                      ###############################################################################
314 carolann.graves 1.28 ##  IndInit Test Suite 1: IndicationService Initialization Tests 
315                      ##
316                      ##  Configuration Options: (none)
317                      ##
318                      ###############################################################################
319                      IndInit_TS1_CONFIG_OPTIONS = 
320                      IndInit_TS1a_TEST_CMDS = \
321                      	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
322                      IndInit_TS1b_TEST_CMDS = \
323                      	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
324                      
325                      run_IndInit_TS1:
326                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
327                                  CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
328                                  TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
329                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
330                                  CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
331                                  TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
332                      
333                      ###############################################################################
334 nag.boranna     1.27 ##  SSL Test Suite 1: SSL Tests
335                      ##
336                      ##  Configuration Options: enableAuthentication=true
337                      ##                         enableHttpsConnection=true
338                      ##                         sslClientVerificationMode=optional
339                      ##                         sslTrustStoreUserName=$(CURRENT_USER)
340                      ##
341                      ###############################################################################
342                      SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
343                             sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
344                      SSL_TS1_TEST_CMDS = \
345                             $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
346                      
347 jim.wunderlich  1.39 ifdef PEGASUS_HAS_SSL
348                      run_SSL_TS1: FORCE
349 nag.boranna     1.27 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
350                                  CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
351                                  TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
352 jim.wunderlich  1.39 else
353                      run_SSL_TS1: FORCE
354                      	@ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
355                      
356                      endif
357                      
358                      
359 nag.boranna     1.27 ###############################################################################
360                      
361 jim.wunderlich  1.34 
362                      
363                      ##############################################################################
364                      ##
365                      ## TestXMLRepository rule is used to run the poststarttests suite on
366                      ## the XML Repository built using cimmofl
367                      ##
368                      ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
369                      ## the XML Repository built using cimmof
370                      ##
371                      ## TestXMLCmpRepository rule is used to run the poststarttest suite on 
372                      ## the XML Compressed Repository built using cimmofl
373                      ##
374                      
375                      ############################
376                      ##
377                      ## TestXMLRepository
378                      ##
379                      
380                      TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
381                      	@ $(ECHO) TestXMLRepository +++++ passed all test
382 jim.wunderlich  1.34 
383                      ############################
384                      ##
385                      ## TestXMLRepositoryServer
386                      ##
387                      TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
388                      	@ $(ECHO) TestXMLRepositoryServer +++++ passed all test
389                      
390                      ############################
391                      ##
392                      ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
393                      ##
394                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
395                      TestXMLCmpRepository: FORCE
396                      	@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
397                      	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
398                      else
399                      
400                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
401                      
402                      TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
403 jim.wunderlich  1.34 	@ $(ECHO) TestXMLCmpRepository +++++ passed all test
404                      else
405                      TestXMLCmpRepository: FORCE
406                      	@ $(ECHO) TestXMLCmpRepository +++++ Not tested 
407                      	@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
408                      	@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
409                      endif
410                      endif
411                      
412                      ###########################
413                      ##
414                      ## TestXMLClean
415                      ##
416                      TestXMLClean: FORCE
417                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
418                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
419                      
420                      
421                      ###########################
422                      ##
423                      ## TestXMLStartServer
424 jim.wunderlich  1.34 ##
425                      TestXMLStartServer: FORCE
426                      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
427                      	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
428                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
429                      	$(SLEEP) 5
430                      
431                      ####
432                      #### The following caused the cimserver to fail on startup
433                      ####
434                      ####	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
435                      
436                      ###########################
437                      ##
438                      ## TestXMLBuildRepo
439                      ##
440                      TestXMLBuildRepo: FORCE
441                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
442                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
443                      
444                      
445 jim.wunderlich  1.34 ###########################
446                      ##
447                      ## TestXMLBuildRepoServ
448                      ##
449                      TestXMLBuildRepoServ: TestXMLStartServer
450                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
451                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
452                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
453                      
454                      
455                      ###########################
456                      ##
457                      ## TestXMLRepo
458                      ##
459 jim.wunderlich  1.40 TestXMLRepo: servertestsclean
460 jim.wunderlich  1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
461 jim.wunderlich  1.34 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
462                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
463                      
464                      
465                      
466                      
467                      
468                      
469 jim.wunderlich  1.29 ##############################################################################
470                      ##
471 jim.wunderlich  1.31 ## TestBinRepository rule is used to run the poststarttests suite on
472 jim.wunderlich  1.33 ## the Binary Repository built using cimmofl
473 jim.wunderlich  1.29 ##
474 jim.wunderlich  1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
475 jim.wunderlich  1.33 ## the Binary Repository built using cimmof
476                      ##
477                      ## TestBinCmpRepository rule is used to run the poststarttest suite on 
478                      ## the Binry Compressed Repository built using cimmofl
479 jim.wunderlich  1.29 ##
480 jim.wunderlich  1.31 
481                      ############################
482 jim.wunderlich  1.29 ##
483 jim.wunderlich  1.31 ## TestBinRepository
484 jim.wunderlich  1.29 ##
485 jim.wunderlich  1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
486                      ### the nightly tests to run
487                      
488 jim.wunderlich  1.31 TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
489 jim.wunderlich  1.33 	@ $(ECHO) TestBinRepository +++++ passed all test
490 jim.wunderlich  1.36 
491 jim.wunderlich  1.29 
492 jim.wunderlich  1.31 ############################
493                      ##
494                      ## TestBinRepositoryServer
495                      ##
496                      TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
497 jim.wunderlich  1.33 	@ $(ECHO) TestBinRepositoryServer +++++ passed all test
498                      
499                      ############################
500                      ##
501                      ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
502                      ##
503                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
504 jim.wunderlich  1.34 TestBinCmpRepository: FORCE
505 jim.wunderlich  1.33 	@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
506                      	@ $(ECHO) TestBinCmpRepository +++++ passed all test
507                      else
508                      
509                      ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
510                      
511 jim.wunderlich  1.34 TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
512 jim.wunderlich  1.33 	@ $(ECHO) TestBinCmpRepository +++++ passed all test
513                      else
514 jim.wunderlich  1.34 TestBinCmpRepository: FORCE
515 jim.wunderlich  1.33 	@ $(ECHO) TestBinCmpRepository +++++ Not tested 
516                      	@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
517                      	@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
518                      endif
519                      endif
520                      
521                      
522 jim.wunderlich  1.31 ###########################
523                      ##
524                      ## TestBinClean
525                      ##
526 jim.wunderlich  1.34 TestBinClean: FORCE
527 jim.wunderlich  1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
528                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
529 jim.wunderlich  1.29 
530 jim.wunderlich  1.31 
531                      ###########################
532 jim.wunderlich  1.29 ##
533 jim.wunderlich  1.31 ## TestBinStartServer
534 jim.wunderlich  1.29 ##
535 jim.wunderlich  1.34 TestBinStartServer: FORCE
536 jim.wunderlich  1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
537 jim.wunderlich  1.31 	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
538                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
539 jim.wunderlich  1.29 	$(SLEEP) 5
540 jim.wunderlich  1.31 
541                      ###########################
542 jim.wunderlich  1.29 ##
543 jim.wunderlich  1.31 ## TestBinBuildRepo
544 jim.wunderlich  1.29 ##
545 jim.wunderlich  1.34 TestBinBuildRepo: FORCE
546 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
547                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
548 jim.wunderlich  1.31 
549                      
550                      ###########################
551                      ##
552                      ## TestBinBuildRepoServ
553                      ##
554                      TestBinBuildRepoServ: TestBinStartServer
555                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
556                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
557                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
558                      
559                      
560                      ###########################
561                      ##
562                      ## TestBinRepo
563                      ##
564 jim.wunderlich  1.40 TestBinRepo: servertestsclean 
565 jim.wunderlich  1.35 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
566 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
567 jim.wunderlich  1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
568 jim.wunderlich  1.29 
569                      
570                      
571 jim.wunderlich  1.34 
572                      ############################
573                      ##
574                      ## TestCmpBuild - used to compile the repository for compression
575                      ##
576                      TestCmpBuild: FORCE
577                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
578                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
579                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
580                      
581                      
582                      ############################
583                      ##
584                      ## TestRegBuild - used to compile the repository for no compression
585                      ##
586                      TestRegBuild: FORCE
587                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
588                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend 
589                      	@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository 
590                      
591                      
592 nag.boranna     1.27 ###############################################################################
593 kumpf           1.1  ##
594                      ## Trace Configuration
595                      ##
596                      ## Options:
597                      ##      XMLTraceOn: Enables XML request and response tracing.
598                      ##      ProviderLoadTraceOn: Enables Provider load tracing.
599                      ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
600                      ##                                 load tracing.
601                      ##      AllTraceOn: Enables all tracing.
602                      ##      AllTraceOff: Disables all tracing.
603                      ##      list: Lists trace settings.
604                      ##
605                      ###############################################################################
606                      
607                      XMLTraceOn:
608                      	cimconfig -s traceComponents=XmlIO -c
609                      	cimconfig -s traceLevel=3 -c
610                      	cimconfig -g traceComponents
611                      	cimconfig -g traceLevel
612                      
613                      ProviderLoadTraceOn:
614 kumpf           1.1  	cimconfig -s traceComponents=ProvManager,OsAbstraction
615                      	cimconfig -s traceLevel=3 -c
616                      	cimconfig -g traceComponents
617                      	cimconfig -g traceLevel
618                      
619                      XML+ProviderLoadTraceOn:
620                      	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
621                      	cimconfig -s traceLevel=3 -c
622                      	cimconfig -g traceComponents
623                      	cimconfig -g traceLevel
624                      
625                      AllTraceOn:
626                      	cimconfig -s traceComponents=ALL
627                      	cimconfig -s traceLevel=3 -c
628                      	cimconfig -g traceComponents
629                      	cimconfig -g traceLevel
630                      
631                      AllTraceOff:
632                      	cimconfig -s traceComponents=
633                      	cimconfig -g traceComponents
634                      	cimconfig -g traceLevel
635 kumpf           1.1  
636                      list:
637                      	cimconfig -g traceComponents
638                      	cimconfig -g traceLevel
639                      	cimconfig -g traceFilePath
640                      
641 kumpf           1.21 # More options...
642 kumpf           1.1  
643 jim.wunderlich  1.40 standardtests: FORCE
644 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
645                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
646                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
647                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
648                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
649                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
650                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
651                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
652 jim.wunderlich  1.40 	@ $(ECHO) "+++++ TestMakefile standardtests complete"
653 kumpf           1.1  
654                      TestNoSecurity:
655                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
656 kumpf           1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
657 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
658 kumpf           1.1  
659                      TestLocalSecurity:
660 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
661 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
662                      
663                      TestRemoteSecurity:
664                      	TestClient -user guest -password guest $(system):5988
665                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
666                      
667                      TestAuthorization:
668 kumpf           1.4  	DeleteNamespace -a -user guest -password guest
669 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
670 kumpf           1.4  	TestClient -user guest -password guest $(system):5988
671                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
672 kumpf           1.1  
673                      TestSubscriptions:
674 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
675 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
676                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
677 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
678 david.dillard   1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
679 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
680 kumpf           1.1  
681                      TestCimmof:
682 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
683 kumpf           1.1  
684                      RunTestClientLocal:
685                      	TestClient -local
686                      
687                      DisableSecurity:
688 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
689 kumpf           1.1  	cimconfig -s enableAuthentication=false -p
690                      	cimconfig -s enableNamespaceAuthorization=false -p
691                      
692                      EnableAuthentication:
693 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
694 kumpf           1.1  	cimconfig -s enableAuthentication=true -p
695 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
696                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
697 kumpf           1.1  
698                      EnableAuthorization:
699 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
700 kumpf           1.10 	cimconfig -s enableNamespaceAuthorization=true -p
701 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
702                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
703 kumpf           1.1  
704                      EnableSSL:
705 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
706                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
707 kumpf           1.1  
708                      ConfigureUsers:
709                      ifndef PEGASUS_PAM_AUTHENTICATION
710                      	cimuser -a -u guest -w guest
711                      endif
712                      
713                      ConfigureAuthorizations:
714                      	cimauth -a -u guest -n test/cimv2 -R -W
715                      	cimauth -a -u guest -n root/cimv2 -R -W
716 kumpf           1.10 	cimauth -a -u guest -n root/PG_Internal -R -W
717                      	cimauth -a -u guest -n root/PG_InterOp -R -W
718                      	cimauth -a -u guest -n root/benchmark -R -W
719                      	cimauth -a -u guest -n root/sampleprovider -R -W
720 kumpf           1.1  	cimauth -a -u guest -n test/static -R -W
721                      	cimauth -a -u guest -n root/SampleProvider -R -W
722                      	cimauth -a -u guest -n root -R -W
723                      	cimauth -a -u guest -n test1 -R -W
724                      	cimauth -a -u guest -n test2 -R -W
725                      	cimauth -a -u guest -n test3 -R -W
726                      	cimauth -a -u guest -n test4 -R -W
727                      	cimauth -a -u guest -n test5 -R -W
728                      	cimauth -a -u guest -n test6 -R -W
729                      	cimauth -a -u guest -n test1/test2 -R -W
730                      	cimauth -a -u guest -n test1/test2/test3 -R -W
731                      	cimauth -a -u guest -n test1/test2/test3/test4 -R -W
732                      	cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
733                      	cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
734                      
735 jim.wunderlich  1.41 startcimWithoutSSL: FORCE
736                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
737 kumpf           1.19 	$(SLEEP) 5
738 kumpf           1.1  
739 jim.wunderlich  1.41 startcimWithSSL: FORCE
740                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
741 kumpf           1.19 	$(SLEEP) 5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2