(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                    poststarttests:
 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 kumpf         1.1  	$(CIMSERVER_START_SERVICE)
 69 kumpf         1.19 	$(SLEEP) 5
 70 kumpf         1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
 71 denise.eckstein 1.26 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 72 kumpf           1.20 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
 73 carolann.graves 1.28 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
 74 kumpf           1.1  
 75                      tests: $(TESTS)
 76 tony            1.5  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 77 kumpf           1.22 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
 78 mday            1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
 79 tony            1.5  endif
 80 david.dillard   1.15 	@ $(ECHO) Finished Tests
 81 kumpf           1.1  
 82                      ###############################################################################
 83 denise.eckstein 1.18 ##  Test Suite Definitions
 84                      ###############################################################################
 85                      
 86                      ###############################################################################
 87                      ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
 88                      ##
 89                      ##  Configuration Options: forceProviderProcesses=true
 90                      ##
 91                      ###############################################################################
 92                      OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
 93                      OOP_TS1_TEST_CMDS = \
 94                              TestClient
 95                      
 96                      run_OOP_TS1:
 97 denise.eckstein 1.26 	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
 98 denise.eckstein 1.18             CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
 99                                  TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
100                      ###############################################################################
101                      
102                      ###############################################################################
103 carolann.graves 1.28 ##  IndInit Test Suite 1: IndicationService Initialization Tests 
104                      ##
105                      ##  Configuration Options: (none)
106                      ##
107                      ###############################################################################
108                      IndInit_TS1_CONFIG_OPTIONS = 
109                      IndInit_TS1a_TEST_CMDS = \
110                      	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
111                      IndInit_TS1b_TEST_CMDS = \
112                      	$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
113                      
114                      run_IndInit_TS1:
115                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
116                                  CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
117                                  TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
118                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
119                                  CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
120                                  TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
121                      
122                      ###############################################################################
123 nag.boranna     1.27 ##  SSL Test Suite 1: SSL Tests
124                      ##
125                      ##  Configuration Options: enableAuthentication=true
126                      ##                         enableHttpsConnection=true
127                      ##                         sslClientVerificationMode=optional
128                      ##                         sslTrustStoreUserName=$(CURRENT_USER)
129                      ##
130                      ###############################################################################
131                      SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
132                             sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
133                      SSL_TS1_TEST_CMDS = \
134                             $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
135                      
136                      run_SSL_TS1:
137                      	$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
138                                  CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
139                                  TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
140                      ###############################################################################
141                      
142 jim.wunderlich  1.29 ##############################################################################
143                      ##
144                      ## TestBinReposiory rule is used to run the poststarttests suite on
145                      ## the Binary Reposiory.
146                      ##
147                      ## Running the poststarttests as part of the nightly's I have three choices.
148                      ## 1. a)remove repository, 
149                      ##    b)build bin repository as repository, 
150                      ##    c)run test, 
151                      ##    d)remove repository, 
152                      ##    e)build xml repository.
153                      ##
154                      ## 2. a)build bin repository as repository_bin, 
155                      ##    b)run test on repository_bin
156                      ##
157                      ## Currently scenaerio 1 works but it is slow.
158                      ## Scenaerio 2 is close to working. There may be a few test remaining that
159                      ## don't honor the REPOSITORY_NAME build config variable.
160                      ##
161                      
162                      
163 jim.wunderlich  1.29 
164                      TestBinRepository: TestBinRepository2
165                      	$(ECHO) TestBinRepository +++++ passed all test
166                      ##
167                      ## 1. a)remove repository, 
168                      ##    b)build bin repository as repository, 
169                      ##    c)run test, 
170                      ##    d)remove repository, 
171                      ##    e)build xml repository.
172                      ##
173                      TestBinRepository1:
174                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
175                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean
176                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_MODE=BIN
177                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_MODE=BIN
178 jim.wunderlich  1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
179 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true"
180                      	$(SLEEP) 5
181                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_MODE=BIN
182                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
183                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean
184                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository 
185                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
186                      ##
187                      ## 2. a)build bin repository as repository_bin, 
188                      ##    b)run test on repository_bin
189                      ##
190                      TestBinRepository2:
191                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
192                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
193                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
194                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
195 jim.wunderlich  1.30 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
196 jim.wunderlich  1.29 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
197                      	$(SLEEP) 5
198                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
199                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
200                      
201                      
202                      
203                      
204 nag.boranna     1.27 ###############################################################################
205 kumpf           1.1  ##
206                      ## Trace Configuration
207                      ##
208                      ## Options:
209                      ##      XMLTraceOn: Enables XML request and response tracing.
210                      ##      ProviderLoadTraceOn: Enables Provider load tracing.
211                      ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
212                      ##                                 load tracing.
213                      ##      AllTraceOn: Enables all tracing.
214                      ##      AllTraceOff: Disables all tracing.
215                      ##      list: Lists trace settings.
216                      ##
217                      ###############################################################################
218                      
219                      XMLTraceOn:
220                      	cimconfig -s traceComponents=XmlIO -c
221                      	cimconfig -s traceLevel=3 -c
222                      	cimconfig -g traceComponents
223                      	cimconfig -g traceLevel
224                      
225                      ProviderLoadTraceOn:
226 kumpf           1.1  	cimconfig -s traceComponents=ProvManager,OsAbstraction
227                      	cimconfig -s traceLevel=3 -c
228                      	cimconfig -g traceComponents
229                      	cimconfig -g traceLevel
230                      
231                      XML+ProviderLoadTraceOn:
232                      	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
233                      	cimconfig -s traceLevel=3 -c
234                      	cimconfig -g traceComponents
235                      	cimconfig -g traceLevel
236                      
237                      AllTraceOn:
238                      	cimconfig -s traceComponents=ALL
239                      	cimconfig -s traceLevel=3 -c
240                      	cimconfig -g traceComponents
241                      	cimconfig -g traceLevel
242                      
243                      AllTraceOff:
244                      	cimconfig -s traceComponents=
245                      	cimconfig -g traceComponents
246                      	cimconfig -g traceLevel
247 kumpf           1.1  
248                      list:
249                      	cimconfig -g traceComponents
250                      	cimconfig -g traceLevel
251                      	cimconfig -g traceFilePath
252                      
253 kumpf           1.21 # More options...
254 kumpf           1.1  
255 david.dillard   1.15 standardtests:
256 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
257                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
258                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
259                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
260                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
261                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
262                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
263                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
264 kumpf           1.1  
265                      TestNoSecurity:
266                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
267 kumpf           1.24 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
268 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
269 kumpf           1.1  
270                      TestLocalSecurity:
271 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
272 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
273                      
274                      TestRemoteSecurity:
275                      	TestClient -user guest -password guest $(system):5988
276                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
277                      
278                      TestAuthorization:
279 kumpf           1.4  	DeleteNamespace -a -user guest -password guest
280 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
281 kumpf           1.4  	TestClient -user guest -password guest $(system):5988
282                      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
283 kumpf           1.1  
284                      TestSubscriptions:
285 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
286 kumpf           1.1  	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
287                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
288 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
289 david.dillard   1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
290 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
291 kumpf           1.1  
292                      TestCimmof:
293 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
294 kumpf           1.1  
295                      RunTestClientLocal:
296                      	TestClient -local
297                      
298                      DisableSecurity:
299 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
300 kumpf           1.1  	cimconfig -s enableAuthentication=false -p
301                      	cimconfig -s enableNamespaceAuthorization=false -p
302                      
303                      EnableAuthentication:
304 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
305 kumpf           1.1  	cimconfig -s enableAuthentication=true -p
306 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
307                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
308 kumpf           1.1  
309                      EnableAuthorization:
310 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
311 kumpf           1.10 	cimconfig -s enableNamespaceAuthorization=true -p
312 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
313                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
314 kumpf           1.1  
315                      EnableSSL:
316 kumpf           1.21 	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
317                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
318 kumpf           1.1  
319                      ConfigureUsers:
320                      ifndef PEGASUS_PAM_AUTHENTICATION
321                      	cimuser -a -u guest -w guest
322                      endif
323                      
324                      ConfigureAuthorizations:
325                      	cimauth -a -u guest -n test/cimv2 -R -W
326                      	cimauth -a -u guest -n root/cimv2 -R -W
327 kumpf           1.10 	cimauth -a -u guest -n root/PG_Internal -R -W
328                      	cimauth -a -u guest -n root/PG_InterOp -R -W
329                      	cimauth -a -u guest -n root/benchmark -R -W
330                      	cimauth -a -u guest -n root/sampleprovider -R -W
331 kumpf           1.1  	cimauth -a -u guest -n test/static -R -W
332                      	cimauth -a -u guest -n root/SampleProvider -R -W
333                      	cimauth -a -u guest -n root -R -W
334                      	cimauth -a -u guest -n test1 -R -W
335                      	cimauth -a -u guest -n test2 -R -W
336                      	cimauth -a -u guest -n test3 -R -W
337                      	cimauth -a -u guest -n test4 -R -W
338                      	cimauth -a -u guest -n test5 -R -W
339                      	cimauth -a -u guest -n test6 -R -W
340                      	cimauth -a -u guest -n test1/test2 -R -W
341                      	cimauth -a -u guest -n test1/test2/test3 -R -W
342                      	cimauth -a -u guest -n test1/test2/test3/test4 -R -W
343                      	cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
344                      	cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
345                      
346                      startcimWithoutSSL:
347 david.dillard   1.15 	$(CIMSERVER_START_SERVICE)
348 kumpf           1.19 	$(SLEEP) 5
349 kumpf           1.1  
350                      startcimWithSSL:
351 david.dillard   1.15 	$(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
352 kumpf           1.19 	$(SLEEP) 5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2