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

  1 kumpf 1.1 ###############################################################################
  2           ##
  3           ## Test Makefile for Pegasus CIMOM
  4           ##
  5           ## Options:
  6           ##      rebuild            - Rebuild
  7 david.dillard 1.15 ##      build              - Build
  8 kumpf         1.1  ##      prestarttests      - Execute functional tests
  9                    ##      poststarttests     - Execute poststarttests (No security, No SSL)
 10                    ##      tests              - Execute prestarttests and poststarttests
 11                    ##      standardtests      - Execute poststartests and a series of
 12                    ##                           posstarttests using multiple options.
 13 david.dillard 1.15 ##
 14 kumpf         1.1  ###############################################################################
 15                    
 16 david.dillard 1.15 error:
 17                    	@ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)"
 18 kumpf         1.1  
 19 kumpf         1.23 include $(PEGASUS_ROOT)/mak/config.mak
 20                    include $(PEGASUS_ROOT)/mak/test.mak
 21                    include $(PEGASUS_ROOT)/mak/commands.mak
 22                    
 23                    system = localhost
 24                    
 25                    TESTS = prestarttests poststarttests
 26                    
 27 kumpf         1.25 rebuild: clean all tests
 28 kumpf         1.21 
 29 kumpf         1.25 build: all tests
 30 kumpf         1.21 
 31                    clean:
 32                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
 33                    
 34 kumpf         1.1  buildmu:
 35 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
 36 kumpf         1.19 	$(MKDIRHIER) $(BIN_DIR)
 37 kumpf         1.1  
 38                    all: buildmu
 39 kumpf         1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
 40                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all
 41 kumpf         1.1  
 42                    doc:
 43 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 44                    	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 45 kumpf         1.1  
 46 david.dillard 1.15 repositoryServer:
 47 kumpf         1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 48 kumpf         1.19 	$(SLEEP) 5
 49 kumpf         1.1  	$(RMDIRHIER) $(REPOSITORY_ROOT)
 50                    	$(CIMSERVER_START_SERVICE)
 51 kumpf         1.19 	$(SLEEP) 5
 52 kumpf         1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
 53                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
 54 mday          1.6  
 55 david.dillard 1.15 prestarttests:
 56 kumpf         1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 57 kumpf         1.19 	$(SLEEP) 5
 58 kumpf         1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
 59                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
 60                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
 61 kumpf         1.14 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
 62 nag.boranna   1.27 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests -f Makefile test_setup
 63 kumpf         1.1  
 64 jim.wunderlich 1.31 poststarttestsclean:
 65 lucier         1.17 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
 66                     	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
 67 mday           1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
 68 jim.wunderlich 1.31 
 69                     poststarttests: poststarttestsclean
 70 kumpf          1.1  	$(CIMSERVER_START_SERVICE)
 71 kumpf          1.19 	$(SLEEP) 5
 72 kumpf          1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
 73 denise.eckstein 1.26 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 74 kumpf           1.20 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
 75 carolann.graves 1.28 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
 76 kumpf           1.1  
 77                      tests: $(TESTS)
 78 tony            1.5  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 79 kumpf           1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 80 mday            1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 81 tony            1.5  endif
 82 david.dillard   1.15 	@ $(ECHO) Finished Tests
 83 kumpf           1.1  
 84                      ###############################################################################
 85 denise.eckstein 1.18 ##  Test Suite Definitions
 86                      ###############################################################################
 87                      
 88                      ###############################################################################
 89                      ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
 90                      ##
 91                      ##  Configuration Options: forceProviderProcesses=true
 92                      ##
 93                      ###############################################################################
 94                      OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 95                      OOP_TS1_TEST_CMDS = \
 96                              TestClient
 97                      
 98                      run_OOP_TS1:
 99 denise.eckstein 1.26 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
100 denise.eckstein 1.18             CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
101                                  TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
102                      ###############################################################################
103                      
104                      ###############################################################################
105 carolann.graves 1.28 ##  IndInit Test Suite 1: IndicationService Initialization Tests 
106                      ##
107                      ##  Configuration Options: (none)
108                      ##
109                      ###############################################################################
110                      IndInit_TS1_CONFIG_OPTIONS = 
111                      IndInit_TS1a_TEST_CMDS = \
112                      	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
113                      IndInit_TS1b_TEST_CMDS = \
114                      	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
115                      
116                      run_IndInit_TS1:
117                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
118                                  CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
119                                  TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
120                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
121                                  CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
122                                  TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
123                      
124                      ###############################################################################
125 nag.boranna     1.27 ##  SSL Test Suite 1: SSL Tests
126                      ##
127                      ##  Configuration Options: enableAuthentication=true
128                      ##                         enableHttpsConnection=true
129                      ##                         sslClientVerificationMode=optional
130                      ##                         sslTrustStoreUserName=$(CURRENT_USER)
131                      ##
132                      ###############################################################################
133                      SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
134                             sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
135                      SSL_TS1_TEST_CMDS = \
136                             $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
137                      
138                      run_SSL_TS1:
139                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
140                                  CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
141                                  TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
142                      ###############################################################################
143                      
144 jim.wunderlich  1.29 ##############################################################################
145                      ##
146 jim.wunderlich  1.31 ## TestBinRepository rule is used to run the poststarttests suite on
147                      ## the Binary Reposiory built using cimmofl
148 jim.wunderlich  1.29 ##
149 jim.wunderlich  1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
150                      ## the Binary Reposiory built using cimmof
151 jim.wunderlich  1.29 ##
152 jim.wunderlich  1.31 
153                      ############################
154 jim.wunderlich  1.29 ##
155 jim.wunderlich  1.31 ## TestBinRepository
156 jim.wunderlich  1.29 ##
157 jim.wunderlich  1.31 TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
158                      	$(ECHO) TestBinRepository +++++ passed all test
159 jim.wunderlich  1.29 
160 jim.wunderlich  1.31 ############################
161                      ##
162                      ## TestBinRepositoryServer
163                      ##
164                      TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
165                      	$(ECHO) TestBinRepositoryServer +++++ passed all test
166 jim.wunderlich  1.29 
167 jim.wunderlich  1.31 ###########################
168                      ##
169                      ## TestBinClean
170                      ##
171                      TestBinClean:
172                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
173                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
174 jim.wunderlich  1.29 
175 jim.wunderlich  1.31 
176                      ###########################
177 jim.wunderlich  1.29 ##
178 jim.wunderlich  1.31 ## TestBinStartServer
179 jim.wunderlich  1.29 ##
180 jim.wunderlich  1.31 TestBinStartServer:
181 jim.wunderlich  1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
182 jim.wunderlich  1.31 	- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
183                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
184 jim.wunderlich  1.29 	$(SLEEP) 5
185 jim.wunderlich  1.31 
186                      ###########################
187 jim.wunderlich  1.29 ##
188 jim.wunderlich  1.31 ## TestBinBuildRepo
189 jim.wunderlich  1.29 ##
190 jim.wunderlich  1.31 TestBinBuildRepo:
191 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
192                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
193 jim.wunderlich  1.31 
194                      
195                      ###########################
196                      ##
197                      ## TestBinBuildRepoServ
198                      ##
199                      TestBinBuildRepoServ: TestBinStartServer
200                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
201                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
202                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
203                      
204                      
205                      ###########################
206                      ##
207                      ## TestBinRepo
208                      ##
209                      TestBinRepo: poststarttestsclean TestBinStartServer
210 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
211 jim.wunderlich  1.31 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
212 jim.wunderlich  1.29 
213                      
214                      
215 nag.boranna     1.27 ###############################################################################
216 kumpf           1.1  ##
217                      ## Trace Configuration
218                      ##
219                      ## Options:
220                      ##      XMLTraceOn: Enables XML request and response tracing.
221                      ##      ProviderLoadTraceOn: Enables Provider load tracing.
222                      ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
223                      ##                                 load tracing.
224                      ##      AllTraceOn: Enables all tracing.
225                      ##      AllTraceOff: Disables all tracing.
226                      ##      list: Lists trace settings.
227                      ##
228                      ###############################################################################
229                      
230                      XMLTraceOn:
231                      	cimconfig -s traceComponents=XmlIO -c
232                      	cimconfig -s traceLevel=3 -c
233                      	cimconfig -g traceComponents
234                      	cimconfig -g traceLevel
235                      
236                      ProviderLoadTraceOn:
237 kumpf           1.1  	cimconfig -s traceComponents=ProvManager,OsAbstraction
238                      	cimconfig -s traceLevel=3 -c
239                      	cimconfig -g traceComponents
240                      	cimconfig -g traceLevel
241                      
242                      XML+ProviderLoadTraceOn:
243                      	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
244                      	cimconfig -s traceLevel=3 -c
245                      	cimconfig -g traceComponents
246                      	cimconfig -g traceLevel
247                      
248                      AllTraceOn:
249                      	cimconfig -s traceComponents=ALL
250                      	cimconfig -s traceLevel=3 -c
251                      	cimconfig -g traceComponents
252                      	cimconfig -g traceLevel
253                      
254                      AllTraceOff:
255                      	cimconfig -s traceComponents=
256                      	cimconfig -g traceComponents
257                      	cimconfig -g traceLevel
258 kumpf           1.1  
259                      list:
260                      	cimconfig -g traceComponents
261                      	cimconfig -g traceLevel
262                      	cimconfig -g traceFilePath
263                      
264 kumpf           1.21 # More options...
265 kumpf           1.1  
266 david.dillard   1.15 standardtests:
267 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
268                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
269                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
270                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
271                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
272                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
273                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
274                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
275 kumpf           1.1  
276                      TestNoSecurity:
277                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
278 kumpf           1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
279 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
280 kumpf           1.1  
281                      TestLocalSecurity:
282 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
283 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
284                      
285                      TestRemoteSecurity:
286                      	TestClient -user guest -password guest $(system):5988
287                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
288                      
289                      TestAuthorization:
290 kumpf           1.4  	DeleteNamespace -a -user guest -password guest
291 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
292 kumpf           1.4  	TestClient -user guest -password guest $(system):5988
293                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
294 kumpf           1.1  
295                      TestSubscriptions:
296 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
297 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
298                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
299 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
300 david.dillard   1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
301 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
302 kumpf           1.1  
303                      TestCimmof:
304 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
305 kumpf           1.1  
306                      RunTestClientLocal:
307                      	TestClient -local
308                      
309                      DisableSecurity:
310 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
311 kumpf           1.1  	cimconfig -s enableAuthentication=false -p
312                      	cimconfig -s enableNamespaceAuthorization=false -p
313                      
314                      EnableAuthentication:
315 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
316 kumpf           1.1  	cimconfig -s enableAuthentication=true -p
317 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
318                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
319 kumpf           1.1  
320                      EnableAuthorization:
321 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
322 kumpf           1.10 	cimconfig -s enableNamespaceAuthorization=true -p
323 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
324                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
325 kumpf           1.1  
326                      EnableSSL:
327 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
328                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
329 kumpf           1.1  
330                      ConfigureUsers:
331                      ifndef PEGASUS_PAM_AUTHENTICATION
332                      	cimuser -a -u guest -w guest
333                      endif
334                      
335                      ConfigureAuthorizations:
336                      	cimauth -a -u guest -n test/cimv2 -R -W
337                      	cimauth -a -u guest -n root/cimv2 -R -W
338 kumpf           1.10 	cimauth -a -u guest -n root/PG_Internal -R -W
339                      	cimauth -a -u guest -n root/PG_InterOp -R -W
340                      	cimauth -a -u guest -n root/benchmark -R -W
341                      	cimauth -a -u guest -n root/sampleprovider -R -W
342 kumpf           1.1  	cimauth -a -u guest -n test/static -R -W
343                      	cimauth -a -u guest -n root/SampleProvider -R -W
344                      	cimauth -a -u guest -n root -R -W
345                      	cimauth -a -u guest -n test1 -R -W
346                      	cimauth -a -u guest -n test2 -R -W
347                      	cimauth -a -u guest -n test3 -R -W
348                      	cimauth -a -u guest -n test4 -R -W
349                      	cimauth -a -u guest -n test5 -R -W
350                      	cimauth -a -u guest -n test6 -R -W
351                      	cimauth -a -u guest -n test1/test2 -R -W
352                      	cimauth -a -u guest -n test1/test2/test3 -R -W
353                      	cimauth -a -u guest -n test1/test2/test3/test4 -R -W
354                      	cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
355                      	cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
356                      
357                      startcimWithoutSSL:
358 david.dillard   1.15 	$(CIMSERVER_START_SERVICE)
359 kumpf           1.19 	$(SLEEP) 5
360 kumpf           1.1  
361                      startcimWithSSL:
362 david.dillard   1.15 	$(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
363 kumpf           1.19 	$(SLEEP) 5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2