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 jim.wunderlich 1.43 $(USAGE)"usagetrace - usage on trace targets"
|
68 jim.wunderlich 1.40 $(USAGE)
69
70 usage2: FORCE
71 $(USAGE)
72 $(USAGE)"TestMakefile Secondary Targets:"
73 $(USAGE)
74 $(USAGE)"The following are run as part of the Primary target test suites and may"
75 $(USAGE)"also be invoked as standalone tests."
76 $(USAGE)
77 $(USAGE)"TestXMLRepository - Executes poststarttests on XML repository"
78 $(USAGE)" built with cimmofl."
79 $(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository"
80 $(USAGE)" built with cimmof."
81 $(USAGE)"TestXMLCmpRepository - Executes poststarttests on XML compressed"
82 $(USAGE)" repository built with cimmofl."
83 $(USAGE)"TestBinRepository - Executes poststarttests on binary repository "
84 $(USAGE)" built with cimmofl."
85 $(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
86 $(USAGE)" built with cimmof."
87 $(USAGE)"TestBinCmpRepository - Executes poststarttests on binary compressed"
88 $(USAGE)" repository built with cimmofl."
89 jim.wunderlich 1.40 $(USAGE)
90 $(USAGE)"The following require the repository to be pre-built."
91 $(USAGE)
92 $(USAGE)"run_SSL_TS1 - Executes the SSL tests"
93 $(USAGE)"run_OOP_TS1 - Executes the Out Of Process Provider tests"
94 $(USAGE)
95 $(USAGE)"The following require the repository to be pre-built and the server to be started."
96 $(USAGE)
97 $(USAGE)"serversuite - the collection of test run by the servertests rule"
98 $(USAGE)"serverquicksuite - The collection of test run by the serverquicktests rule"
99 $(USAGE)
100
101
102 ##########################################################
103 #
104 # rules that are defined in Makefile
105 #
106 ##########################################################
|
107 kumpf 1.21
|
108 jim.wunderlich 1.39 build: FORCE
109 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
|
110 kumpf 1.21
|
111 jim.wunderlich 1.40 world: FORCE
112 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
113
114 new: FORCE
115 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
116
|
117 jim.wunderlich 1.39 clean: FORCE
|
118 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
119
|
120 jim.wunderlich 1.40 depend: FORCE
121 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
122
123
124 ############################################################
125 #
126 # rules defined here
127 #
128 ############################################################
129
|
130 jim.wunderlich 1.41 ##
131 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
132 ## are available and could be invoked directly, their direct usage is
133 ## discouraged in favor of invoking the cimstop and the cimstart rules
134 ## as this allows one place where additional checks, delays etc may be
135 ## added in the future to control or further test the servers performance
136 ## in executing these commands.
137 ##
138
|
139 jim.wunderlich 1.40 #######################
140 #
141 # doc
142 #
|
143 kumpf 1.1 doc:
|
144 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
145 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
146 kumpf 1.1
|
147 jim.wunderlich 1.40
148 #######################
149 #
150 # repositoryServer
151 #
152 repositoryServer: FORCE
|
153 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
154 kumpf 1.19 $(SLEEP) 5
|
155 kumpf 1.1 $(RMDIRHIER) $(REPOSITORY_ROOT)
|
156 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
157 kumpf 1.19 $(SLEEP) 5
|
158 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
159 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
160 mday 1.6
|
161 jim.wunderlich 1.40 ######################
162 #
163 # prestarttests is being deprecated since poststarttest is being deprecated
164 # in favor of name more related to its intended functionality.
165 #
166 prestarttests: prestarttests_msg shortsleep unittests
167
168 prestarttests_msg: FORCE
169 @$(ECHO) "=============================================================================="
170 @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
171 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
172 @$(ECHO) " The equivalent new rule is \"unittests\"."
173 @$(ECHO) " Invoking the \"unittests\" rule now."
174 @$(ECHO) "=============================================================================="
175
176 ####################
177 #
178 # poststarttests is being deprecated since it multiply defines a
179 # recursive make rule leading to ambuguity and confusion.
180 #
181 poststarttests: poststarttests_msg shortsleep servertests
182 jim.wunderlich 1.40
183 poststarttests_msg: FORCE
184 @$(ECHO) "==============================================================================="
185 @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
186 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
187 @$(ECHO) " The equivalent new rule is \"servertests\"."
188 @$(ECHO) " Invoking the \"servertests\" rule now."
189 @$(ECHO) "==============================================================================="
190
191 #####################
192 #
193 # tests is being deprecated since it multiply defines a
194 # recursive make rule leading to ambuguity and confusion.
195 #
196 tests: tests_msg shortsleep alltests
197
198 tests_msg: FORCE
199 @$(ECHO) "==================================================================="
200 @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
201 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
202 @$(ECHO) " The equivalent new rule is \"alltests\"."
203 jim.wunderlich 1.40 @$(ECHO) " Invoking the \"alltests\" rule now."
204 @$(ECHO) "==================================================================="
205
206
207 shortsleep: FORCE
208 @$(SLEEP) 5
209
210 ####################
211 #
212 # unittests
213 #
214 unittests: FORCE
|
215 h.sterling 1.38 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
216 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile unittests complete"
217
218 #####################
219 #
220 # servertests
221 #
|
222 kumpf 1.1
|
223 jim.wunderlich 1.40 servertestsclean: FORCE
|
224 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
225 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
226 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
227 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
228 jim.wunderlich 1.31
|
229 jim.wunderlich 1.40
230 servertestssetup: FORCE
231 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
232 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
233 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
|
234 kumpf 1.19 $(SLEEP) 5
|
235 jim.wunderlich 1.40
236 servertests: servertestsclean servertestssetup serversuite
237 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
238
239 serversuite: FORCE
|
240 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
241 jim.wunderlich 1.33 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
|
242 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
243 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
244 h.sterling 1.37 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
|
245 kumpf 1.1
|
246 jim.wunderlich 1.40 ####################
247 #
248 # serverquicktests
249 #
250 serverquicktests: servertestsclean servertestssetup serverquicksuite
251 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
252
253 serverquicksuite: FORCE
|
254 jim.wunderlich 1.43 $(PEGASUS_HOME)/bin/TestClient
|
255 jim.wunderlich 1.40 $(PEGASUS_HOME)/bin/Client
256 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
257
258 ####################
259 #
260 # alltests
261 #
262 alltests: unittests servertests
|
263 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
264 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
265 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
266 tony 1.5 endif
|
267 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile alltests Complete"
|
268 kumpf 1.1
269 ###############################################################################
|
270 denise.eckstein 1.18 ## Test Suite Definitions
271 ###############################################################################
272
273 ###############################################################################
274 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
275 ##
276 ## Configuration Options: forceProviderProcesses=true
277 ##
278 ###############################################################################
279 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
|
280 kumpf 1.44 ifndef PEGASUS_DEFAULT_OOP_FALSE
281 ifeq ($(OS),HPUX)
282 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
283 endif
284 endif
|
285 denise.eckstein 1.18 OOP_TS1_TEST_CMDS = \
286 TestClient
287
288 run_OOP_TS1:
|
289 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
290 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
291 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
292 ###############################################################################
293
294 ###############################################################################
|
295 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
296 ##
297 ## Configuration Options: (none)
298 ##
299 ###############################################################################
300 IndInit_TS1_CONFIG_OPTIONS =
301 IndInit_TS1a_TEST_CMDS = \
302 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
303 IndInit_TS1b_TEST_CMDS = \
304 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
305
306 run_IndInit_TS1:
307 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
308 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
309 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
310 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
311 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
312 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
313
314 ###############################################################################
|
315 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
316 ##
317 ## Configuration Options: enableAuthentication=true
318 ## enableHttpsConnection=true
319 ## sslClientVerificationMode=optional
320 ## sslTrustStoreUserName=$(CURRENT_USER)
321 ##
322 ###############################################################################
323 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
324 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
325 SSL_TS1_TEST_CMDS = \
326 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
327
|
328 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
329 run_SSL_TS1: FORCE
|
330 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
331 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
332 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
|
333 jim.wunderlich 1.39 else
334 run_SSL_TS1: FORCE
335 @ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
336
337 endif
338
339
|
340 nag.boranna 1.27 ###############################################################################
341
|
342 jim.wunderlich 1.34
343
344 ##############################################################################
345 ##
346 ## TestXMLRepository rule is used to run the poststarttests suite on
347 ## the XML Repository built using cimmofl
348 ##
349 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
350 ## the XML Repository built using cimmof
351 ##
352 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
353 ## the XML Compressed Repository built using cimmofl
354 ##
355
356 ############################
357 ##
358 ## TestXMLRepository
359 ##
360
361 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
362 @ $(ECHO) TestXMLRepository +++++ passed all test
363 jim.wunderlich 1.34
364 ############################
365 ##
366 ## TestXMLRepositoryServer
367 ##
368 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
369 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
370
371 ############################
372 ##
373 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
374 ##
375 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
376 TestXMLCmpRepository: FORCE
377 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
378 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
379 else
380
381 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
382
383 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
384 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
385 else
386 TestXMLCmpRepository: FORCE
387 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
388 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
389 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
390 endif
391 endif
392
393 ###########################
394 ##
395 ## TestXMLClean
396 ##
397 TestXMLClean: FORCE
398 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
399 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
400
401
402 ###########################
403 ##
404 ## TestXMLStartServer
405 jim.wunderlich 1.34 ##
406 TestXMLStartServer: FORCE
407 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
408 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
409 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
410 $(SLEEP) 5
411
412 ####
413 #### The following caused the cimserver to fail on startup
414 ####
415 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
416
417 ###########################
418 ##
419 ## TestXMLBuildRepo
420 ##
421 TestXMLBuildRepo: FORCE
422 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
423 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
424
425
426 jim.wunderlich 1.34 ###########################
427 ##
428 ## TestXMLBuildRepoServ
429 ##
430 TestXMLBuildRepoServ: TestXMLStartServer
431 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
432 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
433 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
434
435
436 ###########################
437 ##
438 ## TestXMLRepo
439 ##
|
440 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
441 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
442 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
443 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
444
445
446
447
448
449
|
450 jim.wunderlich 1.29 ##############################################################################
451 ##
|
452 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
453 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
454 jim.wunderlich 1.29 ##
|
455 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
456 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
457 ##
458 ## TestBinCmpRepository rule is used to run the poststarttest suite on
459 ## the Binry Compressed Repository built using cimmofl
|
460 jim.wunderlich 1.29 ##
|
461 jim.wunderlich 1.31
462 ############################
|
463 jim.wunderlich 1.29 ##
|
464 jim.wunderlich 1.31 ## TestBinRepository
|
465 jim.wunderlich 1.29 ##
|
466 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
467 ### the nightly tests to run
468
|
469 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
470 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
471 jim.wunderlich 1.36
|
472 jim.wunderlich 1.29
|
473 jim.wunderlich 1.31 ############################
474 ##
475 ## TestBinRepositoryServer
476 ##
477 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
478 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
479
480 ############################
481 ##
482 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
483 ##
484 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
485 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
486 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
487 @ $(ECHO) TestBinCmpRepository +++++ passed all test
488 else
489
490 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
491
|
492 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
493 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
494 else
|
495 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
496 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
497 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
498 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
499 endif
500 endif
501
502
|
503 jim.wunderlich 1.31 ###########################
504 ##
505 ## TestBinClean
506 ##
|
507 jim.wunderlich 1.34 TestBinClean: FORCE
|
508 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
509 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
510 jim.wunderlich 1.29
|
511 jim.wunderlich 1.31
512 ###########################
|
513 jim.wunderlich 1.29 ##
|
514 jim.wunderlich 1.31 ## TestBinStartServer
|
515 jim.wunderlich 1.29 ##
|
516 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
517 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
518 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
519 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
520 jim.wunderlich 1.29 $(SLEEP) 5
|
521 jim.wunderlich 1.31
522 ###########################
|
523 jim.wunderlich 1.29 ##
|
524 jim.wunderlich 1.31 ## TestBinBuildRepo
|
525 jim.wunderlich 1.29 ##
|
526 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
527 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
528 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
529 jim.wunderlich 1.31
530
531 ###########################
532 ##
533 ## TestBinBuildRepoServ
534 ##
535 TestBinBuildRepoServ: TestBinStartServer
536 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
537 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
538 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
539
540
541 ###########################
542 ##
543 ## TestBinRepo
544 ##
|
545 jim.wunderlich 1.40 TestBinRepo: servertestsclean
|
546 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
547 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
548 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
549 jim.wunderlich 1.29
550
551
|
552 jim.wunderlich 1.34
553 ############################
554 ##
555 ## TestCmpBuild - used to compile the repository for compression
556 ##
557 TestCmpBuild: FORCE
558 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
559 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
560 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
561
562
563 ############################
564 ##
565 ## TestRegBuild - used to compile the repository for no compression
566 ##
567 TestRegBuild: FORCE
568 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
569 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
570 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
571
572
|
573 nag.boranna 1.27 ###############################################################################
|
574 kumpf 1.1 ##
575 ## Trace Configuration
576 ##
|
577 jim.wunderlich 1.43 ## Options: see usagetrace rule
578 ##
579 ###############################################################################
580
581 usagetrace: FORCE
582 $(USAGE)
583 $(USAGE)"TestMakefile Trace Commands: (cimserver should be running)"
584 $(USAGE)
585 $(USAGE)
586 $(USAGE)" traceon: Enables all tracing."
587 $(USAGE)" traceoff: Disables all tracing."
588 $(USAGE)" tracesettings: Displays trace settings."
589 $(USAGE)" tracecomp: Displays a trace componenets list."
590 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)]: "
591 $(USAGE)" Enables tracing on component C at trace level L."
592 $(USAGE)" Usage example:"
593 $(USAGE)" Turns tracing on for DiscardedData at level 3"
594 $(USAGE)" traceon-CL C=DiscardedData L=3"
595 $(USAGE)
596 $(USAGE)
597
598 jim.wunderlich 1.43 traceon: FORCE
599 @ cimconfig -s traceComponents=ALL
600 @ cimconfig -s traceLevel=3 -c
601 @ cimconfig -g traceComponents
602 @ cimconfig -g traceLevel
603
604 traceoff: FORCE
605 @ cimconfig -s traceComponents=
606 @ cimconfig -g traceComponents
607 @ cimconfig -g traceLevel
608
609
610 tracesettings: FORCE
611 @ $(ECHO) " "
612 cimconfig -g traceComponents
613 @ $(ECHO) " "
614 cimconfig -g traceLevel
615 @ $(ECHO) " "
616 cimconfig -g traceFilePath
617 @ $(ECHO) " "
618
619 jim.wunderlich 1.43 traceon-CL: FORCE
620 @ cimconfig -s traceComponents=$C -c
621 @ cimconfig -s traceLevel=$L -c
622 @ cimconfig -g traceComponents
623 @ cimconfig -g traceLevel
624
625 tracecomp: FORCE
626 $(USAGE)
627 $(USAGE)"Trace component list:"
628 $(USAGE)
629 $(USAGE)"Channel"
630 $(USAGE)"XmlParser"
631 $(USAGE)"XmlWriter"
632 $(USAGE)"XmlReader"
633 $(USAGE)"XmlIO"
634 $(USAGE)"Http"
635 $(USAGE)"CimData"
636 $(USAGE)"ProvManager"
637 $(USAGE)"Repository"
638 $(USAGE)"Dispatcher"
639 $(USAGE)"OsAbstraction"
640 jim.wunderlich 1.43 $(USAGE)"Config"
641 $(USAGE)"IndDelivery"
642 $(USAGE)"IndHandler"
643 $(USAGE)"Authentication"
644 $(USAGE)"Authorization"
645 $(USAGE)"UserManager"
646 $(USAGE)"SubscriptionService"
647 $(USAGE)"Registration"
648 $(USAGE)"Shutdown"
649 $(USAGE)"Server"
650 $(USAGE)"IndicationService"
651 $(USAGE)"IndicationServiceInternal"
652 $(USAGE)"ConfigurationManager"
653 $(USAGE)"MessageQueueService"
654 $(USAGE)"ProviderManager"
655 $(USAGE)"ObjectResolution"
656 $(USAGE)"WQL"
657 $(USAGE)"CQL"
658 $(USAGE)"Thread"
659 $(USAGE)"MetaDispatcher"
660 $(USAGE)"IPC"
661 jim.wunderlich 1.43 $(USAGE)"IndicationHandlerService"
662 $(USAGE)"CIMExportRequestDispatcher"
663 $(USAGE)"Memory"
664 $(USAGE)"SSL"
665 $(USAGE)"ControlProvider"
666 $(USAGE)"AsyncOpNode"
667 $(USAGE)"CIMOMHandle"
668 $(USAGE)"BinaryMessageHandler"
669 $(USAGE)"L10N"
670 $(USAGE)"ExportClient"
671 $(USAGE)"Listener"
672 $(USAGE)"DiscardedData"
673 $(USAGE)"ProviderAgent"
674 $(USAGE)
675
676 ###############################################################################
677 ##
678 ## Trace Configuration - Old rules being deprecated
679 ##
|
680 kumpf 1.1 ## Options:
681 ## XMLTraceOn: Enables XML request and response tracing.
682 ## ProviderLoadTraceOn: Enables Provider load tracing.
683 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
684 ## load tracing.
685 ## AllTraceOn: Enables all tracing.
686 ## AllTraceOff: Disables all tracing.
687 ## list: Lists trace settings.
688 ##
689 ###############################################################################
690
691 XMLTraceOn:
692 cimconfig -s traceComponents=XmlIO -c
693 cimconfig -s traceLevel=3 -c
694 cimconfig -g traceComponents
695 cimconfig -g traceLevel
696
697 ProviderLoadTraceOn:
698 cimconfig -s traceComponents=ProvManager,OsAbstraction
699 cimconfig -s traceLevel=3 -c
700 cimconfig -g traceComponents
701 kumpf 1.1 cimconfig -g traceLevel
702
703 XML+ProviderLoadTraceOn:
704 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
705 cimconfig -s traceLevel=3 -c
706 cimconfig -g traceComponents
707 cimconfig -g traceLevel
708
|
709 jim.wunderlich 1.43 AllTraceOn: traceon
710
711 AllTraceOff: traceoff
|
712 kumpf 1.1
|
713 jim.wunderlich 1.43 list: tracesettings
|
714 kumpf 1.1
715
|
716 kumpf 1.21 # More options...
|
717 kumpf 1.1
|
718 jim.wunderlich 1.40 standardtests: FORCE
|
719 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
720 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
721 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
722 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
723 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
724 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
725 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
726 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
727 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
728 kumpf 1.1
729 TestNoSecurity:
730 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
731 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
732 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
733 kumpf 1.1
734 TestLocalSecurity:
|
735 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
736 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
737
738 TestRemoteSecurity:
739 TestClient -user guest -password guest $(system):5988
740 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
741
742 TestAuthorization:
|
743 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
744 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
745 kumpf 1.4 TestClient -user guest -password guest $(system):5988
746 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
747 kumpf 1.1
748 TestSubscriptions:
|
749 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
750 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
751 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
752 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
753 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
754 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
755 kumpf 1.1
756 TestCimmof:
|
757 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
758 kumpf 1.1
759 RunTestClientLocal:
760 TestClient -local
761
762 DisableSecurity:
|
763 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
764 kumpf 1.1 cimconfig -s enableAuthentication=false -p
765 cimconfig -s enableNamespaceAuthorization=false -p
766
767 EnableAuthentication:
|
768 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
769 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
770 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
771 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
772 kumpf 1.1
773 EnableAuthorization:
|
774 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
775 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
776 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
777 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
778 kumpf 1.1
779 EnableSSL:
|
780 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
781 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
782 kumpf 1.1
783 ConfigureUsers:
784 ifndef PEGASUS_PAM_AUTHENTICATION
785 cimuser -a -u guest -w guest
786 endif
787
788 ConfigureAuthorizations:
789 cimauth -a -u guest -n test/cimv2 -R -W
790 cimauth -a -u guest -n root/cimv2 -R -W
|
791 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
792 cimauth -a -u guest -n root/PG_InterOp -R -W
793 cimauth -a -u guest -n root/benchmark -R -W
794 cimauth -a -u guest -n root/sampleprovider -R -W
|
795 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
796 cimauth -a -u guest -n root/SampleProvider -R -W
797 cimauth -a -u guest -n root -R -W
798 cimauth -a -u guest -n test1 -R -W
799 cimauth -a -u guest -n test2 -R -W
800 cimauth -a -u guest -n test3 -R -W
801 cimauth -a -u guest -n test4 -R -W
802 cimauth -a -u guest -n test5 -R -W
803 cimauth -a -u guest -n test6 -R -W
804 cimauth -a -u guest -n test1/test2 -R -W
805 cimauth -a -u guest -n test1/test2/test3 -R -W
806 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
807 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
808 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
809
|
810 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
811 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
812 kumpf 1.19 $(SLEEP) 5
|
813 kumpf 1.1
|
814 jim.wunderlich 1.41 startcimWithSSL: FORCE
815 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
816 kumpf 1.19 $(SLEEP) 5
|