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