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