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 denise.eckstein 1.47 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
|
247 h.sterling 1.37 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
|
248 kumpf 1.46 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
|
249 kumpf 1.1
|
250 jim.wunderlich 1.40 ####################
251 #
252 # serverquicktests
253 #
254 serverquicktests: servertestsclean servertestssetup serverquicksuite
255 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
256
257 serverquicksuite: FORCE
258 $(PEGASUS_HOME)/bin/Client
259 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
|
260 jim.wunderlich 1.45 $(PEGASUS_HOME)/bin/TestClient
261
262 ####################
263 #
264 # perftests - simple performance test until we have better
265 #
266 # - Turns statistics on (uses TestInterop until we have better)
267 # - runs and times serverquicktests suite
268 # - runs cimperf to displat the statistics
269 # - turns statistics off
270 #
271 perftests: servertestsclean servertestssetup perfsuite
272
273 perfsuite: FORCE
274 $(PEGASUS_HOME)/bin/TestInterop on
275 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
276 @ $(ECHO) " "
277 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
278 @ $(ECHO) " "
279 $(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
280 @ $(ECHO) " "
281 jim.wunderlich 1.45 @ $(ECHO) " "
282 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
283 @ $(ECHO) " "
284 $(PEGASUS_HOME)/bin/TestInterop off
285
|
286 jim.wunderlich 1.40
287 ####################
288 #
289 # alltests
290 #
291 alltests: unittests servertests
|
292 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
293 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
294 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
295 tony 1.5 endif
|
296 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile alltests Complete"
|
297 kumpf 1.1
298 ###############################################################################
|
299 denise.eckstein 1.18 ## Test Suite Definitions
300 ###############################################################################
301
302 ###############################################################################
303 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
304 ##
305 ## Configuration Options: forceProviderProcesses=true
306 ##
307 ###############################################################################
308 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
|
309 kumpf 1.44 ifndef PEGASUS_DEFAULT_OOP_FALSE
310 ifeq ($(OS),HPUX)
311 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
312 endif
|
313 kumpf 1.48 ifeq ($(OS),LINUX)
314 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
315 endif
|
316 kumpf 1.44 endif
|
317 denise.eckstein 1.18 OOP_TS1_TEST_CMDS = \
318 TestClient
319
320 run_OOP_TS1:
|
321 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
322 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
323 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
324 ###############################################################################
325
326 ###############################################################################
|
327 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
328 ##
329 ## Configuration Options: (none)
330 ##
331 ###############################################################################
332 IndInit_TS1_CONFIG_OPTIONS =
333 IndInit_TS1a_TEST_CMDS = \
334 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
335 IndInit_TS1b_TEST_CMDS = \
336 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
337
338 run_IndInit_TS1:
339 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
340 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
341 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
342 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
343 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
344 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
345
346 ###############################################################################
|
347 denise.eckstein 1.47 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
348 ##
349 ## Configuration Options: (none)
350 ##
351 ###############################################################################
352 INDSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
353 INDSSL_TS1a_TEST_CMDS = \
354 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@wql_10_1@@p=HTTPS
355 INDSSL_TS1b_TEST_CMDS = \
356 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@cql_10_1@@p=HTTPS
357
358 ifdef PEGASUS_HAS_SSL
359 run_INDSSL_TS1:
360 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
361 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1_CONFIG_OPTIONS)" \
362 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
363 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
364 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1_CONFIG_OPTIONS)" \
365 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
366 else
367 run_INDSSL_TS1: FORCE
368 denise.eckstein 1.47 @ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
369 endif
370
371
372 ###############################################################################
373
374 ###############################################################################
|
375 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
376 ##
377 ## Configuration Options: enableAuthentication=true
378 ## enableHttpsConnection=true
379 ## sslClientVerificationMode=optional
380 ## sslTrustStoreUserName=$(CURRENT_USER)
381 ##
382 ###############################################################################
383 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
384 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
385 SSL_TS1_TEST_CMDS = \
386 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
387
|
388 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
389 run_SSL_TS1: FORCE
|
390 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
391 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
392 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
|
393 jim.wunderlich 1.39 else
394 run_SSL_TS1: FORCE
395 @ $(ECHO) "PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
396
397 endif
398
|
399 kumpf 1.46 ###############################################################################
400 ## G11N Test Suite 1: Globalization Tests
401 ##
402 ## Configuration Options: forceProviderProcesses=false
403 ##
404 ###############################################################################
405 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
406 G11N_TS1_TEST_CMDS = \
407 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
408 -f Makefile g11ntest
409
410 run_G11N_TS1:
411 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
412 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
413 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
414 ###############################################################################
415
|
416 jim.wunderlich 1.39
|
417 nag.boranna 1.27 ###############################################################################
418
|
419 jim.wunderlich 1.34
420
421 ##############################################################################
422 ##
423 ## TestXMLRepository rule is used to run the poststarttests suite on
424 ## the XML Repository built using cimmofl
425 ##
426 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
427 ## the XML Repository built using cimmof
428 ##
429 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
430 ## the XML Compressed Repository built using cimmofl
431 ##
432
433 ############################
434 ##
435 ## TestXMLRepository
436 ##
437
438 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
439 @ $(ECHO) TestXMLRepository +++++ passed all test
440 jim.wunderlich 1.34
441 ############################
442 ##
443 ## TestXMLRepositoryServer
444 ##
445 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
446 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
447
448 ############################
449 ##
450 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
451 ##
452 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
453 TestXMLCmpRepository: FORCE
454 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
455 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
456 else
457
458 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
459
460 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
461 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
462 else
463 TestXMLCmpRepository: FORCE
464 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
465 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
466 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
467 endif
468 endif
469
470 ###########################
471 ##
472 ## TestXMLClean
473 ##
474 TestXMLClean: FORCE
475 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
476 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
477
478
479 ###########################
480 ##
481 ## TestXMLStartServer
482 jim.wunderlich 1.34 ##
483 TestXMLStartServer: FORCE
484 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
485 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
486 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
487 $(SLEEP) 5
488
489 ####
490 #### The following caused the cimserver to fail on startup
491 ####
492 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
493
494 ###########################
495 ##
496 ## TestXMLBuildRepo
497 ##
498 TestXMLBuildRepo: FORCE
499 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
500 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
501
502
503 jim.wunderlich 1.34 ###########################
504 ##
505 ## TestXMLBuildRepoServ
506 ##
507 TestXMLBuildRepoServ: TestXMLStartServer
508 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
509 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
510 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
511
512
513 ###########################
514 ##
515 ## TestXMLRepo
516 ##
|
517 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
518 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
519 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
520 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
521
522
523
524
525
526
|
527 jim.wunderlich 1.29 ##############################################################################
528 ##
|
529 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
530 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
531 jim.wunderlich 1.29 ##
|
532 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
533 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
534 ##
535 ## TestBinCmpRepository rule is used to run the poststarttest suite on
536 ## the Binry Compressed Repository built using cimmofl
|
537 jim.wunderlich 1.29 ##
|
538 jim.wunderlich 1.31
539 ############################
|
540 jim.wunderlich 1.29 ##
|
541 jim.wunderlich 1.31 ## TestBinRepository
|
542 jim.wunderlich 1.29 ##
|
543 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
544 ### the nightly tests to run
545
|
546 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
547 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
548 jim.wunderlich 1.36
|
549 jim.wunderlich 1.29
|
550 jim.wunderlich 1.31 ############################
551 ##
552 ## TestBinRepositoryServer
553 ##
554 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
555 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
556
557 ############################
558 ##
559 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
560 ##
561 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
562 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
563 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
564 @ $(ECHO) TestBinCmpRepository +++++ passed all test
565 else
566
567 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
568
|
569 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
570 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
571 else
|
572 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
573 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
574 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
575 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
576 endif
577 endif
578
579
|
580 jim.wunderlich 1.31 ###########################
581 ##
582 ## TestBinClean
583 ##
|
584 jim.wunderlich 1.34 TestBinClean: FORCE
|
585 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
586 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
587 jim.wunderlich 1.29
|
588 jim.wunderlich 1.31
589 ###########################
|
590 jim.wunderlich 1.29 ##
|
591 jim.wunderlich 1.31 ## TestBinStartServer
|
592 jim.wunderlich 1.29 ##
|
593 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
594 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
595 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
596 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
597 jim.wunderlich 1.29 $(SLEEP) 5
|
598 jim.wunderlich 1.31
599 ###########################
|
600 jim.wunderlich 1.29 ##
|
601 jim.wunderlich 1.31 ## TestBinBuildRepo
|
602 jim.wunderlich 1.29 ##
|
603 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
604 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
605 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
606 jim.wunderlich 1.31
607
608 ###########################
609 ##
610 ## TestBinBuildRepoServ
611 ##
612 TestBinBuildRepoServ: TestBinStartServer
613 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
614 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
615 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
616
617
618 ###########################
619 ##
620 ## TestBinRepo
621 ##
|
622 jim.wunderlich 1.40 TestBinRepo: servertestsclean
|
623 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
624 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
625 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
626 jim.wunderlich 1.29
627
628
|
629 jim.wunderlich 1.34
630 ############################
631 ##
632 ## TestCmpBuild - used to compile the repository for compression
633 ##
634 TestCmpBuild: FORCE
635 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
636 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
637 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
638
639
640 ############################
641 ##
642 ## TestRegBuild - used to compile the repository for no compression
643 ##
644 TestRegBuild: FORCE
645 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
646 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
647 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
648
649
|
650 nag.boranna 1.27 ###############################################################################
|
651 kumpf 1.1 ##
652 ## Trace Configuration
653 ##
|
654 jim.wunderlich 1.43 ## Options: see usagetrace rule
655 ##
656 ###############################################################################
657
658 usagetrace: FORCE
659 $(USAGE)
660 $(USAGE)"TestMakefile Trace Commands: (cimserver should be running)"
661 $(USAGE)
662 $(USAGE)
663 $(USAGE)" traceon: Enables all tracing."
664 $(USAGE)" traceoff: Disables all tracing."
665 $(USAGE)" tracesettings: Displays trace settings."
666 $(USAGE)" tracecomp: Displays a trace componenets list."
667 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)]: "
668 $(USAGE)" Enables tracing on component C at trace level L."
669 $(USAGE)" Usage example:"
670 $(USAGE)" Turns tracing on for DiscardedData at level 3"
671 $(USAGE)" traceon-CL C=DiscardedData L=3"
672 $(USAGE)
673 $(USAGE)
674
675 jim.wunderlich 1.43 traceon: FORCE
676 @ cimconfig -s traceComponents=ALL
677 @ cimconfig -s traceLevel=3 -c
678 @ cimconfig -g traceComponents
679 @ cimconfig -g traceLevel
680
681 traceoff: FORCE
682 @ cimconfig -s traceComponents=
683 @ cimconfig -g traceComponents
684 @ cimconfig -g traceLevel
685
686
687 tracesettings: FORCE
688 @ $(ECHO) " "
689 cimconfig -g traceComponents
690 @ $(ECHO) " "
691 cimconfig -g traceLevel
692 @ $(ECHO) " "
693 cimconfig -g traceFilePath
694 @ $(ECHO) " "
695
696 jim.wunderlich 1.43 traceon-CL: FORCE
697 @ cimconfig -s traceComponents=$C -c
698 @ cimconfig -s traceLevel=$L -c
699 @ cimconfig -g traceComponents
700 @ cimconfig -g traceLevel
701
702 tracecomp: FORCE
703 $(USAGE)
704 $(USAGE)"Trace component list:"
705 $(USAGE)
706 $(USAGE)"Channel"
707 $(USAGE)"XmlParser"
708 $(USAGE)"XmlWriter"
709 $(USAGE)"XmlReader"
710 $(USAGE)"XmlIO"
711 $(USAGE)"Http"
712 $(USAGE)"CimData"
713 $(USAGE)"ProvManager"
714 $(USAGE)"Repository"
715 $(USAGE)"Dispatcher"
716 $(USAGE)"OsAbstraction"
717 jim.wunderlich 1.43 $(USAGE)"Config"
718 $(USAGE)"IndDelivery"
719 $(USAGE)"IndHandler"
720 $(USAGE)"Authentication"
721 $(USAGE)"Authorization"
722 $(USAGE)"UserManager"
723 $(USAGE)"SubscriptionService"
724 $(USAGE)"Registration"
725 $(USAGE)"Shutdown"
726 $(USAGE)"Server"
727 $(USAGE)"IndicationService"
728 $(USAGE)"IndicationServiceInternal"
729 $(USAGE)"ConfigurationManager"
730 $(USAGE)"MessageQueueService"
731 $(USAGE)"ProviderManager"
732 $(USAGE)"ObjectResolution"
733 $(USAGE)"WQL"
734 $(USAGE)"CQL"
735 $(USAGE)"Thread"
736 $(USAGE)"MetaDispatcher"
737 $(USAGE)"IPC"
738 jim.wunderlich 1.43 $(USAGE)"IndicationHandlerService"
739 $(USAGE)"CIMExportRequestDispatcher"
740 $(USAGE)"Memory"
741 $(USAGE)"SSL"
742 $(USAGE)"ControlProvider"
743 $(USAGE)"AsyncOpNode"
744 $(USAGE)"CIMOMHandle"
745 $(USAGE)"BinaryMessageHandler"
746 $(USAGE)"L10N"
747 $(USAGE)"ExportClient"
748 $(USAGE)"Listener"
749 $(USAGE)"DiscardedData"
750 $(USAGE)"ProviderAgent"
751 $(USAGE)
752
753 ###############################################################################
754 ##
755 ## Trace Configuration - Old rules being deprecated
756 ##
|
757 kumpf 1.1 ## Options:
758 ## XMLTraceOn: Enables XML request and response tracing.
759 ## ProviderLoadTraceOn: Enables Provider load tracing.
760 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
761 ## load tracing.
762 ## AllTraceOn: Enables all tracing.
763 ## AllTraceOff: Disables all tracing.
764 ## list: Lists trace settings.
765 ##
766 ###############################################################################
767
768 XMLTraceOn:
769 cimconfig -s traceComponents=XmlIO -c
770 cimconfig -s traceLevel=3 -c
771 cimconfig -g traceComponents
772 cimconfig -g traceLevel
773
774 ProviderLoadTraceOn:
775 cimconfig -s traceComponents=ProvManager,OsAbstraction
776 cimconfig -s traceLevel=3 -c
777 cimconfig -g traceComponents
778 kumpf 1.1 cimconfig -g traceLevel
779
780 XML+ProviderLoadTraceOn:
781 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
782 cimconfig -s traceLevel=3 -c
783 cimconfig -g traceComponents
784 cimconfig -g traceLevel
785
|
786 jim.wunderlich 1.43 AllTraceOn: traceon
787
788 AllTraceOff: traceoff
|
789 kumpf 1.1
|
790 jim.wunderlich 1.43 list: tracesettings
|
791 kumpf 1.1
792
|
793 kumpf 1.21 # More options...
|
794 kumpf 1.1
|
795 jim.wunderlich 1.40 standardtests: FORCE
|
796 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
797 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
798 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
799 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
800 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
801 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
802 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
803 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
804 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
805 kumpf 1.1
806 TestNoSecurity:
807 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
808 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
809 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
810 kumpf 1.1
811 TestLocalSecurity:
|
812 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
813 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
814
815 TestRemoteSecurity:
816 TestClient -user guest -password guest $(system):5988
817 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
818
819 TestAuthorization:
|
820 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
821 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
822 kumpf 1.4 TestClient -user guest -password guest $(system):5988
823 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
824 kumpf 1.1
825 TestSubscriptions:
|
826 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
827 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
828 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
829 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
830 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
831 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
832 kumpf 1.1
833 TestCimmof:
|
834 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
835 kumpf 1.1
836 RunTestClientLocal:
837 TestClient -local
838
839 DisableSecurity:
|
840 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
841 kumpf 1.1 cimconfig -s enableAuthentication=false -p
842 cimconfig -s enableNamespaceAuthorization=false -p
843
844 EnableAuthentication:
|
845 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
846 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
847 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
848 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
849 kumpf 1.1
850 EnableAuthorization:
|
851 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
852 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
853 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
854 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
855 kumpf 1.1
856 EnableSSL:
|
857 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
858 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
859 kumpf 1.1
860 ConfigureUsers:
861 ifndef PEGASUS_PAM_AUTHENTICATION
862 cimuser -a -u guest -w guest
863 endif
864
865 ConfigureAuthorizations:
866 cimauth -a -u guest -n test/cimv2 -R -W
867 cimauth -a -u guest -n root/cimv2 -R -W
|
868 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
869 cimauth -a -u guest -n root/PG_InterOp -R -W
870 cimauth -a -u guest -n root/benchmark -R -W
871 cimauth -a -u guest -n root/sampleprovider -R -W
|
872 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
873 cimauth -a -u guest -n root/SampleProvider -R -W
874 cimauth -a -u guest -n root -R -W
875 cimauth -a -u guest -n test1 -R -W
876 cimauth -a -u guest -n test2 -R -W
877 cimauth -a -u guest -n test3 -R -W
878 cimauth -a -u guest -n test4 -R -W
879 cimauth -a -u guest -n test5 -R -W
880 cimauth -a -u guest -n test6 -R -W
881 cimauth -a -u guest -n test1/test2 -R -W
882 cimauth -a -u guest -n test1/test2/test3 -R -W
883 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
884 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
885 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
886
|
887 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
888 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
889 kumpf 1.19 $(SLEEP) 5
|
890 kumpf 1.1
|
891 jim.wunderlich 1.41 startcimWithSSL: FORCE
892 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
893 kumpf 1.19 $(SLEEP) 5
|