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 jim.wunderlich 1.41 ##
130 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
131 ## are available and could be invoked directly, their direct usage is
132 ## discouraged in favor of invoking the cimstop and the cimstart rules
133 ## as this allows one place where additional checks, delays etc may be
134 ## added in the future to control or further test the servers performance
135 ## in executing these commands.
136 ##
137
|
138 jim.wunderlich 1.40 #######################
139 #
140 # doc
141 #
|
142 kumpf 1.1 doc:
|
143 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
144 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
145 kumpf 1.1
|
146 jim.wunderlich 1.40
147 #######################
148 #
149 # repositoryServer
150 #
151 repositoryServer: FORCE
|
152 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
153 kumpf 1.19 $(SLEEP) 5
|
154 kumpf 1.1 $(RMDIRHIER) $(REPOSITORY_ROOT)
|
155 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
156 kumpf 1.19 $(SLEEP) 5
|
157 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
158 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
159 mday 1.6
|
160 jim.wunderlich 1.40 ######################
161 #
162 # prestarttests is being deprecated since poststarttest is being deprecated
163 # in favor of name more related to its intended functionality.
164 #
165 prestarttests: prestarttests_msg shortsleep unittests
166
167 prestarttests_msg: FORCE
168 @$(ECHO) "=============================================================================="
169 @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
170 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
171 @$(ECHO) " The equivalent new rule is \"unittests\"."
172 @$(ECHO) " Invoking the \"unittests\" rule now."
173 @$(ECHO) "=============================================================================="
174
175 ####################
176 #
177 # poststarttests is being deprecated since it multiply defines a
178 # recursive make rule leading to ambuguity and confusion.
179 #
180 poststarttests: poststarttests_msg shortsleep servertests
181 jim.wunderlich 1.40
182 poststarttests_msg: FORCE
183 @$(ECHO) "==============================================================================="
184 @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
185 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
186 @$(ECHO) " The equivalent new rule is \"servertests\"."
187 @$(ECHO) " Invoking the \"servertests\" rule now."
188 @$(ECHO) "==============================================================================="
189
190 #####################
191 #
192 # tests is being deprecated since it multiply defines a
193 # recursive make rule leading to ambuguity and confusion.
194 #
195 tests: tests_msg shortsleep alltests
196
197 tests_msg: FORCE
198 @$(ECHO) "==================================================================="
199 @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
200 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
201 @$(ECHO) " The equivalent new rule is \"alltests\"."
202 jim.wunderlich 1.40 @$(ECHO) " Invoking the \"alltests\" rule now."
203 @$(ECHO) "==================================================================="
204
205
206 shortsleep: FORCE
207 @$(SLEEP) 5
208
209 ####################
210 #
211 # unittests
212 #
213 unittests: FORCE
|
214 h.sterling 1.38 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
215 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile unittests complete"
216
217 #####################
218 #
219 # servertests
220 #
|
221 kumpf 1.1
|
222 jim.wunderlich 1.40 servertestsclean: FORCE
|
223 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
224 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
225 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
226 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
227 jim.wunderlich 1.31
|
228 jim.wunderlich 1.40
229 servertestssetup: FORCE
230 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
231 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
232 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
|
233 kumpf 1.19 $(SLEEP) 5
|
234 jim.wunderlich 1.40
235 servertests: servertestsclean servertestssetup serversuite
236 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
237
238 serversuite: FORCE
|
239 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
240 jim.wunderlich 1.33 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
|
241 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
242 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
243 h.sterling 1.37 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
|
244 kumpf 1.1
|
245 jim.wunderlich 1.40 ####################
246 #
247 # serverquicktests
248 #
249 serverquicktests: servertestsclean servertestssetup serverquicksuite
250 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
251
252 serverquicksuite: FORCE
253 $(PEGASUS_HOME)/bin/TestClient
254 $(PEGASUS_HOME)/bin/Client
255 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
256
257 ####################
258 #
259 # alltests
260 #
261 alltests: unittests servertests
|
262 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
263 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
264 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
265 tony 1.5 endif
|
266 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile alltests Complete"
|
267 kumpf 1.1
268 ###############################################################################
|
269 denise.eckstein 1.18 ## Test Suite Definitions
270 ###############################################################################
271
272 ###############################################################################
273 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
274 ##
275 ## Configuration Options: forceProviderProcesses=true
276 ##
277 ###############################################################################
278 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
279 OOP_TS1_TEST_CMDS = \
280 TestClient
281
282 run_OOP_TS1:
|
283 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
284 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
285 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
286 ###############################################################################
287
288 ###############################################################################
|
289 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
290 ##
291 ## Configuration Options: (none)
292 ##
293 ###############################################################################
294 IndInit_TS1_CONFIG_OPTIONS =
295 IndInit_TS1a_TEST_CMDS = \
296 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
297 IndInit_TS1b_TEST_CMDS = \
298 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
299
300 run_IndInit_TS1:
301 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
302 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
303 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
304 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
305 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
306 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
307
308 ###############################################################################
|
309 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
310 ##
311 ## Configuration Options: enableAuthentication=true
312 ## enableHttpsConnection=true
313 ## sslClientVerificationMode=optional
314 ## sslTrustStoreUserName=$(CURRENT_USER)
315 ##
316 ###############################################################################
317 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
318 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
319 SSL_TS1_TEST_CMDS = \
320 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
321
|
322 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
323 run_SSL_TS1: FORCE
|
324 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
325 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
326 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
|
327 jim.wunderlich 1.39 else
328 run_SSL_TS1: FORCE
329 @ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
330
331 endif
332
333
|
334 nag.boranna 1.27 ###############################################################################
335
|
336 jim.wunderlich 1.34
337
338 ##############################################################################
339 ##
340 ## TestXMLRepository rule is used to run the poststarttests suite on
341 ## the XML Repository built using cimmofl
342 ##
343 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
344 ## the XML Repository built using cimmof
345 ##
346 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
347 ## the XML Compressed Repository built using cimmofl
348 ##
349
350 ############################
351 ##
352 ## TestXMLRepository
353 ##
354
355 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
356 @ $(ECHO) TestXMLRepository +++++ passed all test
357 jim.wunderlich 1.34
358 ############################
359 ##
360 ## TestXMLRepositoryServer
361 ##
362 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
363 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
364
365 ############################
366 ##
367 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
368 ##
369 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
370 TestXMLCmpRepository: FORCE
371 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
372 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
373 else
374
375 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
376
377 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
378 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
379 else
380 TestXMLCmpRepository: FORCE
381 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
382 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
383 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
384 endif
385 endif
386
387 ###########################
388 ##
389 ## TestXMLClean
390 ##
391 TestXMLClean: FORCE
392 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
393 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
394
395
396 ###########################
397 ##
398 ## TestXMLStartServer
399 jim.wunderlich 1.34 ##
400 TestXMLStartServer: FORCE
401 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
402 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
403 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
404 $(SLEEP) 5
405
406 ####
407 #### The following caused the cimserver to fail on startup
408 ####
409 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
410
411 ###########################
412 ##
413 ## TestXMLBuildRepo
414 ##
415 TestXMLBuildRepo: FORCE
416 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
417 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
418
419
420 jim.wunderlich 1.34 ###########################
421 ##
422 ## TestXMLBuildRepoServ
423 ##
424 TestXMLBuildRepoServ: TestXMLStartServer
425 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
426 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
427 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
428
429
430 ###########################
431 ##
432 ## TestXMLRepo
433 ##
|
434 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
435 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
436 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
437 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
438
439
440
441
442
443
|
444 jim.wunderlich 1.29 ##############################################################################
445 ##
|
446 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
447 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
448 jim.wunderlich 1.29 ##
|
449 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
450 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
451 ##
452 ## TestBinCmpRepository rule is used to run the poststarttest suite on
453 ## the Binry Compressed Repository built using cimmofl
|
454 jim.wunderlich 1.29 ##
|
455 jim.wunderlich 1.31
456 ############################
|
457 jim.wunderlich 1.29 ##
|
458 jim.wunderlich 1.31 ## TestBinRepository
|
459 jim.wunderlich 1.29 ##
|
460 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
461 ### the nightly tests to run
462
|
463 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
464 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
465 jim.wunderlich 1.36
|
466 jim.wunderlich 1.29
|
467 jim.wunderlich 1.31 ############################
468 ##
469 ## TestBinRepositoryServer
470 ##
471 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
472 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
473
474 ############################
475 ##
476 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
477 ##
478 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
479 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
480 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
481 @ $(ECHO) TestBinCmpRepository +++++ passed all test
482 else
483
484 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
485
|
486 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
487 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
488 else
|
489 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
490 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
491 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
492 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
493 endif
494 endif
495
496
|
497 jim.wunderlich 1.31 ###########################
498 ##
499 ## TestBinClean
500 ##
|
501 jim.wunderlich 1.34 TestBinClean: FORCE
|
502 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
503 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
504 jim.wunderlich 1.29
|
505 jim.wunderlich 1.31
506 ###########################
|
507 jim.wunderlich 1.29 ##
|
508 jim.wunderlich 1.31 ## TestBinStartServer
|
509 jim.wunderlich 1.29 ##
|
510 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
511 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
512 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
513 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
514 jim.wunderlich 1.29 $(SLEEP) 5
|
515 jim.wunderlich 1.31
516 ###########################
|
517 jim.wunderlich 1.29 ##
|
518 jim.wunderlich 1.31 ## TestBinBuildRepo
|
519 jim.wunderlich 1.29 ##
|
520 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
521 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
522 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
523 jim.wunderlich 1.31
524
525 ###########################
526 ##
527 ## TestBinBuildRepoServ
528 ##
529 TestBinBuildRepoServ: TestBinStartServer
530 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
531 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
532 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
533
534
535 ###########################
536 ##
537 ## TestBinRepo
538 ##
|
539 jim.wunderlich 1.40 TestBinRepo: servertestsclean
|
540 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
541 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
542 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
543 jim.wunderlich 1.29
544
545
|
546 jim.wunderlich 1.34
547 ############################
548 ##
549 ## TestCmpBuild - used to compile the repository for compression
550 ##
551 TestCmpBuild: FORCE
552 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
553 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
554 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
555
556
557 ############################
558 ##
559 ## TestRegBuild - used to compile the repository for no compression
560 ##
561 TestRegBuild: FORCE
562 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
563 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
564 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
565
566
|
567 nag.boranna 1.27 ###############################################################################
|
568 kumpf 1.1 ##
569 ## Trace Configuration
570 ##
571 ## Options:
572 ## XMLTraceOn: Enables XML request and response tracing.
573 ## ProviderLoadTraceOn: Enables Provider load tracing.
574 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
575 ## load tracing.
576 ## AllTraceOn: Enables all tracing.
577 ## AllTraceOff: Disables all tracing.
578 ## list: Lists trace settings.
579 ##
580 ###############################################################################
581
582 XMLTraceOn:
583 cimconfig -s traceComponents=XmlIO -c
584 cimconfig -s traceLevel=3 -c
585 cimconfig -g traceComponents
586 cimconfig -g traceLevel
587
588 ProviderLoadTraceOn:
589 kumpf 1.1 cimconfig -s traceComponents=ProvManager,OsAbstraction
590 cimconfig -s traceLevel=3 -c
591 cimconfig -g traceComponents
592 cimconfig -g traceLevel
593
594 XML+ProviderLoadTraceOn:
595 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
596 cimconfig -s traceLevel=3 -c
597 cimconfig -g traceComponents
598 cimconfig -g traceLevel
599
600 AllTraceOn:
601 cimconfig -s traceComponents=ALL
602 cimconfig -s traceLevel=3 -c
603 cimconfig -g traceComponents
604 cimconfig -g traceLevel
605
606 AllTraceOff:
607 cimconfig -s traceComponents=
608 cimconfig -g traceComponents
609 cimconfig -g traceLevel
610 kumpf 1.1
611 list:
612 cimconfig -g traceComponents
613 cimconfig -g traceLevel
614 cimconfig -g traceFilePath
615
|
616 kumpf 1.21 # More options...
|
617 kumpf 1.1
|
618 jim.wunderlich 1.40 standardtests: FORCE
|
619 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
620 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
621 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
622 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
623 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
624 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
625 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
626 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
627 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
628 kumpf 1.1
629 TestNoSecurity:
630 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
631 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
632 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
633 kumpf 1.1
634 TestLocalSecurity:
|
635 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
636 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
637
638 TestRemoteSecurity:
639 TestClient -user guest -password guest $(system):5988
640 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
641
642 TestAuthorization:
|
643 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
644 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
645 kumpf 1.4 TestClient -user guest -password guest $(system):5988
646 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
647 kumpf 1.1
648 TestSubscriptions:
|
649 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
650 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
651 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
652 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
653 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
654 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
655 kumpf 1.1
656 TestCimmof:
|
657 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
658 kumpf 1.1
659 RunTestClientLocal:
660 TestClient -local
661
662 DisableSecurity:
|
663 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
664 kumpf 1.1 cimconfig -s enableAuthentication=false -p
665 cimconfig -s enableNamespaceAuthorization=false -p
666
667 EnableAuthentication:
|
668 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
669 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
670 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
671 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
672 kumpf 1.1
673 EnableAuthorization:
|
674 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
675 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
676 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
677 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
678 kumpf 1.1
679 EnableSSL:
|
680 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
681 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
682 kumpf 1.1
683 ConfigureUsers:
684 ifndef PEGASUS_PAM_AUTHENTICATION
685 cimuser -a -u guest -w guest
686 endif
687
688 ConfigureAuthorizations:
689 cimauth -a -u guest -n test/cimv2 -R -W
690 cimauth -a -u guest -n root/cimv2 -R -W
|
691 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
692 cimauth -a -u guest -n root/PG_InterOp -R -W
693 cimauth -a -u guest -n root/benchmark -R -W
694 cimauth -a -u guest -n root/sampleprovider -R -W
|
695 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
696 cimauth -a -u guest -n root/SampleProvider -R -W
697 cimauth -a -u guest -n root -R -W
698 cimauth -a -u guest -n test1 -R -W
699 cimauth -a -u guest -n test2 -R -W
700 cimauth -a -u guest -n test3 -R -W
701 cimauth -a -u guest -n test4 -R -W
702 cimauth -a -u guest -n test5 -R -W
703 cimauth -a -u guest -n test6 -R -W
704 cimauth -a -u guest -n test1/test2 -R -W
705 cimauth -a -u guest -n test1/test2/test3 -R -W
706 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
707 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
708 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
709
|
710 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
711 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
712 kumpf 1.19 $(SLEEP) 5
|
713 kumpf 1.1
|
714 jim.wunderlich 1.41 startcimWithSSL: FORCE
715 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
716 kumpf 1.19 $(SLEEP) 5
|