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