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