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 ## Options:
34 ## rebuild - Rebuild
|
35 david.dillard 1.15 ## build - Build
|
36 kumpf 1.1 ## prestarttests - Execute functional tests
37 ## poststarttests - Execute poststarttests (No security, No SSL)
38 ## tests - Execute prestarttests and poststarttests
39 ## standardtests - Execute poststartests and a series of
40 ## posstarttests using multiple options.
|
41 david.dillard 1.15 ##
|
42 jim.wunderlich 1.34 #####################
43 ##
44 ## The following are all standalone tests. That is the can be invoked
45 ## without any prerequisite dependencies. They stop and start the server as
46 ## needed. They clean and rebuild the repository as needed and then run the
47 ## poststarttests.
48 ##
49 ## TestXMLRepository - Executes poststartests on binary repository
50 ## built with cimmofl.
51 ##
52 ## TestXMLRepositoryServer - Executes poststartests on binary repository
53 ## built with cimmof.
54 ##
55 ## TestXMLCmpRepository - Executes poststartests on binary compressed
56 ## repository built with cimmofl.
57 ##
58 ##
59 ## TestBinRepository - Executes poststartests on binary repository
60 ## built with cimmofl.
61 ##
62 ## TestBinRepositoryServer - Executes poststartests on binary repository
63 jim.wunderlich 1.34 ## built with cimmof.
64 ##
65 ## TestBinCmpRepository - Executes poststartests on binary compressed
66 ## repository built with cimmofl.
67 ##
68 ##
|
69 kumpf 1.1 ###############################################################################
70
|
71 david.dillard 1.15 error:
72 @ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)"
|
73 kumpf 1.1
|
74 kumpf 1.23 include $(PEGASUS_ROOT)/mak/config.mak
75 include $(PEGASUS_ROOT)/mak/test.mak
76 include $(PEGASUS_ROOT)/mak/commands.mak
77
78 system = localhost
79
80 TESTS = prestarttests poststarttests
81
|
82 jim.wunderlich 1.34 .PHONY: FORCE
83
84 FORCE:
85
|
86 jim.wunderlich 1.39 rebuild: FORCE
87 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile rebuild
|
88 kumpf 1.21
|
89 jim.wunderlich 1.39 build: FORCE
90 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
|
91 kumpf 1.21
|
92 jim.wunderlich 1.39 clean: FORCE
|
93 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
94
|
95 kumpf 1.1 doc:
|
96 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
97 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
98 kumpf 1.1
|
99 david.dillard 1.15 repositoryServer:
|
100 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
101 kumpf 1.19 $(SLEEP) 5
|
102 kumpf 1.1 $(RMDIRHIER) $(REPOSITORY_ROOT)
103 $(CIMSERVER_START_SERVICE)
|
104 kumpf 1.19 $(SLEEP) 5
|
105 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
106 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
107 mday 1.6
|
108 david.dillard 1.15 prestarttests:
|
109 h.sterling 1.38 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
110 $(SLEEP) 5
111 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
112 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
113 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
114 kumpf 1.1
|
115 jim.wunderlich 1.31 poststarttestsclean:
|
116 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
117 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
118 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
119 jim.wunderlich 1.31
120 poststarttests: poststarttestsclean
|
121 jim.wunderlich 1.39 -$(CIMSERVER_STOP_SERVICE)
|
122 kumpf 1.1 $(CIMSERVER_START_SERVICE)
|
123 kumpf 1.19 $(SLEEP) 5
|
124 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
125 jim.wunderlich 1.33 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
|
126 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
127 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
128 h.sterling 1.37 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
|
129 kumpf 1.1
130 tests: $(TESTS)
|
131 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
132 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
133 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
134 tony 1.5 endif
|
135 david.dillard 1.15 @ $(ECHO) Finished Tests
|
136 kumpf 1.1
137 ###############################################################################
|
138 denise.eckstein 1.18 ## Test Suite Definitions
139 ###############################################################################
140
141 ###############################################################################
142 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
143 ##
144 ## Configuration Options: forceProviderProcesses=true
145 ##
146 ###############################################################################
147 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
148 OOP_TS1_TEST_CMDS = \
149 TestClient
150
151 run_OOP_TS1:
|
152 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
153 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
154 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
155 ###############################################################################
156
157 ###############################################################################
|
158 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
159 ##
160 ## Configuration Options: (none)
161 ##
162 ###############################################################################
163 IndInit_TS1_CONFIG_OPTIONS =
164 IndInit_TS1a_TEST_CMDS = \
165 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
166 IndInit_TS1b_TEST_CMDS = \
167 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
168
169 run_IndInit_TS1:
170 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
171 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
172 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
173 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
174 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
175 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
176
177 ###############################################################################
|
178 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
179 ##
180 ## Configuration Options: enableAuthentication=true
181 ## enableHttpsConnection=true
182 ## sslClientVerificationMode=optional
183 ## sslTrustStoreUserName=$(CURRENT_USER)
184 ##
185 ###############################################################################
186 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
187 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
188 SSL_TS1_TEST_CMDS = \
189 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
190
|
191 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
192 run_SSL_TS1: FORCE
|
193 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
194 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
195 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
|
196 jim.wunderlich 1.39 else
197 run_SSL_TS1: FORCE
198 @ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
199
200 endif
201
202
|
203 nag.boranna 1.27 ###############################################################################
204
|
205 jim.wunderlich 1.34
206
207 ##############################################################################
208 ##
209 ## TestXMLRepository rule is used to run the poststarttests suite on
210 ## the XML Repository built using cimmofl
211 ##
212 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
213 ## the XML Repository built using cimmof
214 ##
215 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
216 ## the XML Compressed Repository built using cimmofl
217 ##
218
219 ############################
220 ##
221 ## TestXMLRepository
222 ##
223
224 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
225 @ $(ECHO) TestXMLRepository +++++ passed all test
226 jim.wunderlich 1.34
227 ############################
228 ##
229 ## TestXMLRepositoryServer
230 ##
231 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
232 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
233
234 ############################
235 ##
236 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
237 ##
238 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
239 TestXMLCmpRepository: FORCE
240 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
241 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
242 else
243
244 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
245
246 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
247 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
248 else
249 TestXMLCmpRepository: FORCE
250 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
251 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
252 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
253 endif
254 endif
255
256 ###########################
257 ##
258 ## TestXMLClean
259 ##
260 TestXMLClean: FORCE
261 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
262 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
263
264
265 ###########################
266 ##
267 ## TestXMLStartServer
268 jim.wunderlich 1.34 ##
269 TestXMLStartServer: FORCE
270 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
271 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
272 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
273 $(SLEEP) 5
274
275 ####
276 #### The following caused the cimserver to fail on startup
277 ####
278 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
279
280 ###########################
281 ##
282 ## TestXMLBuildRepo
283 ##
284 TestXMLBuildRepo: FORCE
285 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
286 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
287
288
289 jim.wunderlich 1.34 ###########################
290 ##
291 ## TestXMLBuildRepoServ
292 ##
293 TestXMLBuildRepoServ: TestXMLStartServer
294 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
295 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
296 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
297
298
299 ###########################
300 ##
301 ## TestXMLRepo
302 ##
|
303 jim.wunderlich 1.35 TestXMLRepo: poststarttestsclean
304 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
305 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
306 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
307
308
309
310
311
312
|
313 jim.wunderlich 1.29 ##############################################################################
314 ##
|
315 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
316 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
317 jim.wunderlich 1.29 ##
|
318 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
319 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
320 ##
321 ## TestBinCmpRepository rule is used to run the poststarttest suite on
322 ## the Binry Compressed Repository built using cimmofl
|
323 jim.wunderlich 1.29 ##
|
324 jim.wunderlich 1.31
325 ############################
|
326 jim.wunderlich 1.29 ##
|
327 jim.wunderlich 1.31 ## TestBinRepository
|
328 jim.wunderlich 1.29 ##
|
329 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
330 ### the nightly tests to run
331
|
332 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
333 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
334 jim.wunderlich 1.36
|
335 jim.wunderlich 1.29
|
336 jim.wunderlich 1.31 ############################
337 ##
338 ## TestBinRepositoryServer
339 ##
340 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
341 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
342
343 ############################
344 ##
345 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
346 ##
347 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
348 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
349 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
350 @ $(ECHO) TestBinCmpRepository +++++ passed all test
351 else
352
353 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
354
|
355 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
356 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
357 else
|
358 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
359 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
360 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
361 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
362 endif
363 endif
364
365
|
366 jim.wunderlich 1.31 ###########################
367 ##
368 ## TestBinClean
369 ##
|
370 jim.wunderlich 1.34 TestBinClean: FORCE
|
371 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
372 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
373 jim.wunderlich 1.29
|
374 jim.wunderlich 1.31
375 ###########################
|
376 jim.wunderlich 1.29 ##
|
377 jim.wunderlich 1.31 ## TestBinStartServer
|
378 jim.wunderlich 1.29 ##
|
379 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
380 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
381 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
382 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
383 jim.wunderlich 1.29 $(SLEEP) 5
|
384 jim.wunderlich 1.31
385 ###########################
|
386 jim.wunderlich 1.29 ##
|
387 jim.wunderlich 1.31 ## TestBinBuildRepo
|
388 jim.wunderlich 1.29 ##
|
389 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
390 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
391 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
392 jim.wunderlich 1.31
393
394 ###########################
395 ##
396 ## TestBinBuildRepoServ
397 ##
398 TestBinBuildRepoServ: TestBinStartServer
399 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
400 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
401 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
402
403
404 ###########################
405 ##
406 ## TestBinRepo
407 ##
|
408 jim.wunderlich 1.35 TestBinRepo: poststarttestsclean
409 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
410 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
411 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
412 jim.wunderlich 1.29
413
414
|
415 jim.wunderlich 1.34
416 ############################
417 ##
418 ## TestCmpBuild - used to compile the repository for compression
419 ##
420 TestCmpBuild: FORCE
421 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
422 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
423 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
424
425
426 ############################
427 ##
428 ## TestRegBuild - used to compile the repository for no compression
429 ##
430 TestRegBuild: FORCE
431 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
432 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
433 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
434
435
|
436 nag.boranna 1.27 ###############################################################################
|
437 kumpf 1.1 ##
438 ## Trace Configuration
439 ##
440 ## Options:
441 ## XMLTraceOn: Enables XML request and response tracing.
442 ## ProviderLoadTraceOn: Enables Provider load tracing.
443 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
444 ## load tracing.
445 ## AllTraceOn: Enables all tracing.
446 ## AllTraceOff: Disables all tracing.
447 ## list: Lists trace settings.
448 ##
449 ###############################################################################
450
451 XMLTraceOn:
452 cimconfig -s traceComponents=XmlIO -c
453 cimconfig -s traceLevel=3 -c
454 cimconfig -g traceComponents
455 cimconfig -g traceLevel
456
457 ProviderLoadTraceOn:
458 kumpf 1.1 cimconfig -s traceComponents=ProvManager,OsAbstraction
459 cimconfig -s traceLevel=3 -c
460 cimconfig -g traceComponents
461 cimconfig -g traceLevel
462
463 XML+ProviderLoadTraceOn:
464 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
465 cimconfig -s traceLevel=3 -c
466 cimconfig -g traceComponents
467 cimconfig -g traceLevel
468
469 AllTraceOn:
470 cimconfig -s traceComponents=ALL
471 cimconfig -s traceLevel=3 -c
472 cimconfig -g traceComponents
473 cimconfig -g traceLevel
474
475 AllTraceOff:
476 cimconfig -s traceComponents=
477 cimconfig -g traceComponents
478 cimconfig -g traceLevel
479 kumpf 1.1
480 list:
481 cimconfig -g traceComponents
482 cimconfig -g traceLevel
483 cimconfig -g traceFilePath
484
|
485 kumpf 1.21 # More options...
|
486 kumpf 1.1
|
487 david.dillard 1.15 standardtests:
|
488 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
489 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
490 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
491 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
492 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
493 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
494 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
495 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
496 kumpf 1.1
497 TestNoSecurity:
498 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
499 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
500 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
501 kumpf 1.1
502 TestLocalSecurity:
|
503 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
504 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
505
506 TestRemoteSecurity:
507 TestClient -user guest -password guest $(system):5988
508 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
509
510 TestAuthorization:
|
511 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
512 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
513 kumpf 1.4 TestClient -user guest -password guest $(system):5988
514 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
515 kumpf 1.1
516 TestSubscriptions:
|
517 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
518 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
519 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
520 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
521 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
522 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
523 kumpf 1.1
524 TestCimmof:
|
525 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
526 kumpf 1.1
527 RunTestClientLocal:
528 TestClient -local
529
530 DisableSecurity:
|
531 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
532 kumpf 1.1 cimconfig -s enableAuthentication=false -p
533 cimconfig -s enableNamespaceAuthorization=false -p
534
535 EnableAuthentication:
|
536 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
537 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
538 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
539 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
540 kumpf 1.1
541 EnableAuthorization:
|
542 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
543 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
544 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
545 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
546 kumpf 1.1
547 EnableSSL:
|
548 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
549 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
550 kumpf 1.1
551 ConfigureUsers:
552 ifndef PEGASUS_PAM_AUTHENTICATION
553 cimuser -a -u guest -w guest
554 endif
555
556 ConfigureAuthorizations:
557 cimauth -a -u guest -n test/cimv2 -R -W
558 cimauth -a -u guest -n root/cimv2 -R -W
|
559 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
560 cimauth -a -u guest -n root/PG_InterOp -R -W
561 cimauth -a -u guest -n root/benchmark -R -W
562 cimauth -a -u guest -n root/sampleprovider -R -W
|
563 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
564 cimauth -a -u guest -n root/SampleProvider -R -W
565 cimauth -a -u guest -n root -R -W
566 cimauth -a -u guest -n test1 -R -W
567 cimauth -a -u guest -n test2 -R -W
568 cimauth -a -u guest -n test3 -R -W
569 cimauth -a -u guest -n test4 -R -W
570 cimauth -a -u guest -n test5 -R -W
571 cimauth -a -u guest -n test6 -R -W
572 cimauth -a -u guest -n test1/test2 -R -W
573 cimauth -a -u guest -n test1/test2/test3 -R -W
574 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
575 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
576 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
577
578 startcimWithoutSSL:
|
579 david.dillard 1.15 $(CIMSERVER_START_SERVICE)
|
580 kumpf 1.19 $(SLEEP) 5
|
581 kumpf 1.1
582 startcimWithSSL:
|
583 david.dillard 1.15 $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
|
584 kumpf 1.19 $(SLEEP) 5
|