1 karl 1.57 #//%2006////////////////////////////////////////////////////////////////////////
|
2 martin 1.32 #//
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 karl 1.57 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
|
13 martin 1.32 #//
14 #// Permission is hereby granted, free of charge, to any person obtaining a copy
15 #// of this software and associated documentation files (the "Software"), to
16 #// deal in the Software without restriction, including without limitation the
17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 #// sell copies of the Software, and to permit persons to whom the Software is
19 #// furnished to do so, subject to the following conditions:
20 #//
21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #//
30 #//==============================================================================
|
31 kumpf 1.1 ###############################################################################
32 ##
33 ## Test Makefile for Pegasus CIMOM
34 ##
|
35 jim.wunderlich 1.40 ## see the usage rule for documentation of rules etc.
|
36 jim.wunderlich 1.34 ##
37 ##
|
38 kumpf 1.1 ###############################################################################
39
|
40 david.dillard 1.15 error:
|
41 jim.wunderlich 1.40 @ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
|
42 kumpf 1.1
|
43 kumpf 1.23 include $(PEGASUS_ROOT)/mak/config.mak
44 include $(PEGASUS_ROOT)/mak/test.mak
45 include $(PEGASUS_ROOT)/mak/commands.mak
46
47 system = localhost
48
|
49 jim.wunderlich 1.34 .PHONY: FORCE
50
51 FORCE:
52
|
53 jim.wunderlich 1.40 usage: FORCE
54 $(USAGE)
55 $(USAGE)"TestMakefile Primary Targets:"
56 $(USAGE)
57 $(USAGE)"The following are all standalone tests. They stop and start the server,"
58 $(USAGE)"and build repositories as needed."
59 $(USAGE)
60 $(USAGE)"alltests - Execute unittests and servertests"
61 $(USAGE)"unittests - Execute the unit functional tests - no repository"
62 $(USAGE)" or active server is required"
63 $(USAGE)"servertests - Execute a basic server test suites (No security, No SSL)"
64 $(USAGE)"standardtests - Execute an extended server test suites "
65 $(USAGE)" using multiple options."
66 $(USAGE)"serverquicktests - Executes a brief server test"
|
67 jim.wunderlich 1.45 $(USAGE)"perftests - Executes a brief server performance test"
|
68 jim.wunderlich 1.40 $(USAGE)
69 $(USAGE)"usage2 - usage on secondary test targets"
|
70 jim.wunderlich 1.43 $(USAGE)"usagetrace - usage on trace targets"
|
71 j.alex 1.66 $(USAGE)"stresstests - Execute the default stress test suite"
|
72 jim.wunderlich 1.40 $(USAGE)
73
74 usage2: FORCE
75 $(USAGE)
76 $(USAGE)"TestMakefile Secondary Targets:"
77 $(USAGE)
78 $(USAGE)"The following are run as part of the Primary target test suites and may"
79 $(USAGE)"also be invoked as standalone tests."
80 $(USAGE)
81 $(USAGE)"TestXMLRepository - Executes poststarttests on XML repository"
82 $(USAGE)" built with cimmofl."
83 $(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository"
84 $(USAGE)" built with cimmof."
85 $(USAGE)"TestXMLCmpRepository - Executes poststarttests on XML compressed"
86 $(USAGE)" repository built with cimmofl."
87 $(USAGE)"TestBinRepository - Executes poststarttests on binary repository "
88 $(USAGE)" built with cimmofl."
89 $(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
90 $(USAGE)" built with cimmof."
91 $(USAGE)"TestBinCmpRepository - Executes poststarttests on binary compressed"
92 $(USAGE)" repository built with cimmofl."
93 jim.wunderlich 1.40 $(USAGE)
94 $(USAGE)"The following require the repository to be pre-built."
95 $(USAGE)
96 $(USAGE)"run_SSL_TS1 - Executes the SSL tests"
97 $(USAGE)"run_OOP_TS1 - Executes the Out Of Process Provider tests"
|
98 kumpf 1.46 $(USAGE)"run_G11N_TS1 - Executes the Globalization tests"
|
99 jim.wunderlich 1.40 $(USAGE)
100 $(USAGE)"The following require the repository to be pre-built and the server to be started."
101 $(USAGE)
102 $(USAGE)"serversuite - the collection of test run by the servertests rule"
103 $(USAGE)"serverquicksuite - The collection of test run by the serverquicktests rule"
|
104 j.alex 1.66 $(USAGE)"run_STRESS_TS1 - Executes the stresstests"
|
105 jim.wunderlich 1.40 $(USAGE)
106
107
108 ##########################################################
109 #
110 # rules that are defined in Makefile
111 #
112 ##########################################################
|
113 kumpf 1.21
|
114 jim.wunderlich 1.39 build: FORCE
115 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
|
116 kumpf 1.21
|
117 jim.wunderlich 1.40 world: FORCE
118 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
119
120 new: FORCE
121 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
122
|
123 jim.wunderlich 1.39 clean: FORCE
|
124 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
125
|
126 jim.wunderlich 1.40 depend: FORCE
127 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
128
|
129 denise.eckstein 1.69 ###############################################################################
130 # mak/certificate_test.mak implements three key functions for
131 # testing Certificate-Based Authentication (CBA).
132 #
133 # setupCBATestCertificates is used to create a set of test certificates
134 # make -f TestMakefile setupCBATestCertificates
135 #
136 # runCBATestSuites is used to run a set of CBA tests
137 # make -f TestMakefile runCBATestSuites
138 #
139 # cleanupCBATestCertificates can be used to remove the test certificates
140 # make -f TestMakefile cleanupCBATestCertificates
141 ###############################################################################
142 include $(PEGASUS_ROOT)/mak/certificate_test.mak
|
143 jim.wunderlich 1.40
144 ############################################################
145 #
146 # rules defined here
147 #
148 ############################################################
149
|
150 jim.wunderlich 1.41 ##
151 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
152 ## are available and could be invoked directly, their direct usage is
153 ## discouraged in favor of invoking the cimstop and the cimstart rules
154 ## as this allows one place where additional checks, delays etc may be
155 ## added in the future to control or further test the servers performance
156 ## in executing these commands.
157 ##
158
|
159 jim.wunderlich 1.40 #######################
160 #
161 # doc
162 #
|
163 kumpf 1.1 doc:
|
164 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
165 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
166 kumpf 1.1
|
167 jim.wunderlich 1.40
168 #######################
169 #
170 # repositoryServer
171 #
172 repositoryServer: FORCE
|
173 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
174 kumpf 1.19 $(SLEEP) 5
|
175 kumpf 1.1 $(RMDIRHIER) $(REPOSITORY_ROOT)
|
176 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
177 kumpf 1.19 $(SLEEP) 5
|
178 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
179 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
180 mday 1.6
|
181 jim.wunderlich 1.40 ######################
182 #
183 # prestarttests is being deprecated since poststarttest is being deprecated
184 # in favor of name more related to its intended functionality.
185 #
186 prestarttests: prestarttests_msg shortsleep unittests
187
188 prestarttests_msg: FORCE
189 @$(ECHO) "=============================================================================="
190 @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
191 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
192 @$(ECHO) " The equivalent new rule is \"unittests\"."
193 @$(ECHO) " Invoking the \"unittests\" rule now."
194 @$(ECHO) "=============================================================================="
195
196 ####################
197 #
198 # poststarttests is being deprecated since it multiply defines a
199 # recursive make rule leading to ambuguity and confusion.
200 #
201 poststarttests: poststarttests_msg shortsleep servertests
202 jim.wunderlich 1.40
203 poststarttests_msg: FORCE
204 @$(ECHO) "==============================================================================="
205 @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
206 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
207 @$(ECHO) " The equivalent new rule is \"servertests\"."
208 @$(ECHO) " Invoking the \"servertests\" rule now."
209 @$(ECHO) "==============================================================================="
210
211 #####################
212 #
213 # tests is being deprecated since it multiply defines a
214 # recursive make rule leading to ambuguity and confusion.
215 #
216 tests: tests_msg shortsleep alltests
217
218 tests_msg: FORCE
219 @$(ECHO) "==================================================================="
220 @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
221 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
222 @$(ECHO) " The equivalent new rule is \"alltests\"."
223 jim.wunderlich 1.40 @$(ECHO) " Invoking the \"alltests\" rule now."
224 @$(ECHO) "==================================================================="
225
226
227 shortsleep: FORCE
228 @$(SLEEP) 5
229
230 ####################
231 #
232 # unittests
233 #
234 unittests: FORCE
|
235 h.sterling 1.38 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
236 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile unittests complete"
237
238 #####################
239 #
240 # servertests
241 #
|
242 kumpf 1.1
|
243 jim.wunderlich 1.40 servertestsclean: FORCE
|
244 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
245 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
246 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
247 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
248 jim.wunderlich 1.31
|
249 jim.wunderlich 1.40 servertestssetup: FORCE
|
250 denise.eckstein 1.50 ifdef PEGASUS_HAS_SSL
|
251 jim.wunderlich 1.61 #
252 # The association between user names and certificates is stored in the
253 # repository. If the repository is recreated, we also need to re-initialize
254 # the trust store directories. Otherwise, the truststore content will be
255 # out-of-sync with the mapping stored in the repository.
256 #
|
257 denise.eckstein 1.50 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
258 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
259 endif
|
260 jim.wunderlich 1.40 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
261 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
262 denise.eckstein 1.69 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
263 cleanupCBATestCertificates
264 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
265 setupCBATestCertificates
|
266 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
|
267 kumpf 1.19 $(SLEEP) 5
|
268 jim.wunderlich 1.61 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
269 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
|
270 denise.eckstein 1.73 ifeq ($(PEGASUS_TEST_SDK),true)
271 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples -f Makefile setupSDK
272 endif
273
|
274 jim.wunderlich 1.61
|
275 jim.wunderlich 1.40
276 servertests: servertestsclean servertestssetup serversuite
277 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
278
279 serversuite: FORCE
|
280 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
281 jim.wunderlich 1.33 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
|
282 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
283 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
284 carolann.graves 1.67 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
285 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
|
286 denise.eckstein 1.47 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
|
287 h.sterling 1.37 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
|
288 kumpf 1.46 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
|
289 denise.eckstein 1.69 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
|
290 denise.eckstein 1.73 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
|
291 kumpf 1.1
|
292 j.alex 1.66 #####################
293 #
294 # stresstests
295 #
296 stresstests:
297 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
298
|
299 jim.wunderlich 1.40 ####################
300 #
301 # serverquicktests
302 #
303 serverquicktests: servertestsclean servertestssetup serverquicksuite
304 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
305
306 serverquicksuite: FORCE
307 $(PEGASUS_HOME)/bin/Client
308 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
|
309 jim.wunderlich 1.45 $(PEGASUS_HOME)/bin/TestClient
310
311 ####################
312 #
313 # perftests - simple performance test until we have better
314 #
315 # - Turns statistics on (uses TestInterop until we have better)
316 # - runs and times serverquicktests suite
317 # - runs cimperf to displat the statistics
318 # - turns statistics off
319 #
320 perftests: servertestsclean servertestssetup perfsuite
321
322 perfsuite: FORCE
323 $(PEGASUS_HOME)/bin/TestInterop on
324 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
325 @ $(ECHO) " "
326 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
327 @ $(ECHO) " "
328 $(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
329 @ $(ECHO) " "
330 jim.wunderlich 1.45 @ $(ECHO) " "
331 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
332 @ $(ECHO) " "
333 $(PEGASUS_HOME)/bin/TestInterop off
334
|
335 jim.wunderlich 1.40
336 ####################
337 #
338 # alltests
339 #
340 alltests: unittests servertests
|
341 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
342 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
343 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
344 tony 1.5 endif
|
345 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile alltests Complete"
|
346 kumpf 1.1
347 ###############################################################################
|
348 denise.eckstein 1.18 ## Test Suite Definitions
349 ###############################################################################
350
351 ###############################################################################
352 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
353 ##
354 ## Configuration Options: forceProviderProcesses=true
355 ##
|
356 jim.wunderlich 1.54 ## If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
|
357 jim.wunderlich 1.51 ## since tests have already been run with OOP enabled.
358 ##
359 ##
|
360 denise.eckstein 1.18 ###############################################################################
|
361 jim.wunderlich 1.54 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
|
362 jim.wunderlich 1.52 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
363 else
|
364 denise.eckstein 1.18 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
|
365 kumpf 1.44 endif
|
366 jim.wunderlich 1.51
|
367 denise.eckstein 1.18 OOP_TS1_TEST_CMDS = \
|
368 jim.wunderlich 1.51 $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
|
369 denise.eckstein 1.18
370 run_OOP_TS1:
|
371 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
372 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
373 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
|
374 jim.wunderlich 1.51
|
375 denise.eckstein 1.18 ###############################################################################
376
377 ###############################################################################
|
378 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
379 ##
380 ## Configuration Options: (none)
381 ##
382 ###############################################################################
383 IndInit_TS1_CONFIG_OPTIONS =
384 IndInit_TS1a_TEST_CMDS = \
385 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
386 IndInit_TS1b_TEST_CMDS = \
387 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
388
389 run_IndInit_TS1:
390 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
391 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
392 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
393 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
394 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
395 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
396
397 ###############################################################################
|
398 carolann.graves 1.67 ## OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
399 ##
400 ## Configuration Options: forceProviderProcesses=true
401 ## enableAuthentication=true, enableAuthentication=false
402 ##
403 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
404 ## suite is always run with OOP enabled. This test suite causes a provider to
405 ## exit. Running this test suite with OOP disabled would cause the cimserver
406 ## to exit and the test suite to fail.
407 ##
408 ## NOTE: The test is run once with authentication enabled, and once without
409 ## authentication enabled.
410 ##
411 ###############################################################################
412 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
413 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
414 OOPProvFail_TS1_TEST_CMDS = \
415 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
416
|
417 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
418 carolann.graves 1.67 run_OOPProvFail_TS1:
419 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
420 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
421 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
422 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
423 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
424 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
|
425 carolann.graves 1.68 else
426 run_OOPProvFail_TS1: FORCE
427 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
428 endif
|
429 carolann.graves 1.67
430 ###############################################################################
431 ## OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
432 ## Initialization Tests
433 ##
434 ## Configuration Options: forceProviderProcesses=true
435 ## enableAuthentication=true
436 ##
437 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
438 ## suite is always run with OOP enabled. This test suite causes a provider to
439 ## exit. Running this test suite with OOP disabled would cause the cimserver
440 ## to exit and the test suite to fail.
441 ##
442 ###############################################################################
443 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
444 OOPProvFail_TS2a_TEST_CMDS = \
445 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
446 OOPProvFail_TS2b_TEST_CMDS = \
447 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
448
|
449 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
450 carolann.graves 1.67 run_OOPProvFail_TS2:
451 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
452 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
453 TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
454 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
455 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
456 TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
|
457 carolann.graves 1.68 else
458 run_OOPProvFail_TS2: FORCE
459 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
460 endif
|
461 carolann.graves 1.67
462 ###############################################################################
|
463 denise.eckstein 1.47 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
464 ##
465 ## Configuration Options: (none)
466 ##
467 ###############################################################################
|
468 denise.eckstein 1.50 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
|
469 denise.eckstein 1.47 INDSSL_TS1a_TEST_CMDS = \
|
470 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
471
472 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
|
473 denise.eckstein 1.47 INDSSL_TS1b_TEST_CMDS = \
|
474 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
475
|
476 denise.eckstein 1.47
477 ifdef PEGASUS_HAS_SSL
|
478 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
479 jim.wunderlich 1.61 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
|
480 denise.eckstein 1.47 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
481 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
|
482 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
483 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
484 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
|
485 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
486 else
487 run_INDSSL_TS1: FORCE
|
488 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"
489 endif
490 else
491 run_INDSSL_TS1: FORCE
492 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
|
493 denise.eckstein 1.47 endif
494
495
496 ###############################################################################
497
498 ###############################################################################
|
499 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
500 ##
501 ## Configuration Options: enableAuthentication=true
502 ## enableHttpsConnection=true
503 ## sslClientVerificationMode=optional
504 ## sslTrustStoreUserName=$(CURRENT_USER)
505 ##
506 ###############################################################################
507 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
508 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
509 SSL_TS1_TEST_CMDS = \
|
510 sushma.fernandes 1.71 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
|
511 sushma.fernandes 1.72 SSL_TS2_TEST_CMDS = \
512 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
|
513 nag.boranna 1.27
|
514 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
|
515 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
516 jim.wunderlich 1.39 run_SSL_TS1: FORCE
|
517 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
518 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
519 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
|
520 sushma.fernandes 1.72 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
521 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
522 TESTSUITE_CMDS="$(SSL_TS2_TEST_CMDS)"
|
523 jim.wunderlich 1.39 else
524 run_SSL_TS1: FORCE
|
525 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_TS1"
526 endif
527 else
528 run_SSL_TS1: FORCE
529 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
|
530 jim.wunderlich 1.39
531 endif
532
|
533 jim.wunderlich 1.61 ############################################################################
534 #
535 # Create_SSL_Certificate
536 #
537 # create a certificate that can be used for certification testing.
538 # It is currently used by the following tests:
539 # -run_INDSSL_TS1
540 #
541 Create_SSL_Certificate_ignore: FORCE
542 -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
543
544 Create_SSL_Certificate: FORCE
545 ifdef PEGASUS_HAS_SSL
546 ifdef PEGASUS_TEST_USER_DEFINED
547 $(ECHO) "Creating SSL certificate for test"
|
548 sushma.fernandes 1.71 cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
|
549 jim.wunderlich 1.61 endif
550 else
551 $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
552 endif
553
|
554 kumpf 1.46 ###############################################################################
555 ## G11N Test Suite 1: Globalization Tests
556 ##
557 ## Configuration Options: forceProviderProcesses=false
558 ##
559 ###############################################################################
560 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
561 G11N_TS1_TEST_CMDS = \
562 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
563 -f Makefile g11ntest
564
565 run_G11N_TS1:
566 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
567 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
568 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
|
569 j.alex 1.66
570 ###############################################################################
571 ## Stress Test Suite 1: Default Stress Tests
572 ##
573 ## Configuration Options: (none)
574 ##
575 ###############################################################################
576 STRESS_TS1_CONFIG_OPTIONS =
577 STRESS_TS1_TEST_CMDS = \
578 TestStressTestController
579
580 run_STRESS_TS1:
581 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
582 CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
583 TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
|
584 kumpf 1.46 ###############################################################################
585
|
586 denise.eckstein 1.73 ###############################################################################
587 ## SDK Test Suite 1: SDK Tests
588 ##
589 ## Configuration Options: (none)
590 ##
591 ###############################################################################
592 SDK_TS1_CONFIG_OPTIONS =
593 SDK_TS1_TEST_CMDS = \
594 $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
595 -f Makefile testSDK
596
597 ifeq ($(PEGASUS_TEST_SDK),true)
598 run_SDK_TS1: FORCE
599 $(MAKE) --directory=$(PEGASUS_ROOT)/mak \
600 -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
601 PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
602 PEGASUS_INCLUDE_DIR=/include
603 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
604 -f Makefile clean
605 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
606 -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
607 denise.eckstein 1.73 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
608 CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
609 TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
610 else
611 run_SDK_TS1: FORCE
612 @ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"
613 endif
614 ###############################################################################
|
615 jim.wunderlich 1.39
|
616 nag.boranna 1.27 ###############################################################################
617
|
618 jim.wunderlich 1.34
619
620 ##############################################################################
621 ##
622 ## TestXMLRepository rule is used to run the poststarttests suite on
623 ## the XML Repository built using cimmofl
624 ##
625 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
626 ## the XML Repository built using cimmof
627 ##
628 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
629 ## the XML Compressed Repository built using cimmofl
630 ##
631
632 ############################
633 ##
634 ## TestXMLRepository
635 ##
636
637 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
638 @ $(ECHO) TestXMLRepository +++++ passed all test
639 jim.wunderlich 1.34
640 ############################
641 ##
642 ## TestXMLRepositoryServer
643 ##
644 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
645 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
646
647 ############################
648 ##
649 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
650 ##
651 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
652 TestXMLCmpRepository: FORCE
653 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
654 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
655 else
656
657 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
658
659 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
660 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
661 else
662 TestXMLCmpRepository: FORCE
663 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
664 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
665 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
666 endif
667 endif
668
669 ###########################
670 ##
671 ## TestXMLClean
672 ##
673 TestXMLClean: FORCE
674 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
675 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
676
677
678 ###########################
679 ##
680 ## TestXMLStartServer
681 jim.wunderlich 1.34 ##
682 TestXMLStartServer: FORCE
683 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
684 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
685 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
686 $(SLEEP) 5
687
688 ####
689 #### The following caused the cimserver to fail on startup
690 ####
691 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
692
693 ###########################
694 ##
695 ## TestXMLBuildRepo
696 ##
697 TestXMLBuildRepo: FORCE
698 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
699 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
700
701
702 jim.wunderlich 1.34 ###########################
703 ##
704 ## TestXMLBuildRepoServ
705 ##
706 TestXMLBuildRepoServ: TestXMLStartServer
707 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
708 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
709 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
710
711
712 ###########################
713 ##
714 ## TestXMLRepo
715 ##
|
716 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
717 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
718 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
719 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
720
721
722
723
724
725
|
726 jim.wunderlich 1.29 ##############################################################################
727 ##
|
728 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
729 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
730 jim.wunderlich 1.29 ##
|
731 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
732 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
733 ##
734 ## TestBinCmpRepository rule is used to run the poststarttest suite on
735 ## the Binry Compressed Repository built using cimmofl
|
736 jim.wunderlich 1.29 ##
|
737 jim.wunderlich 1.31
738 ############################
|
739 jim.wunderlich 1.29 ##
|
740 jim.wunderlich 1.31 ## TestBinRepository
|
741 jim.wunderlich 1.29 ##
|
742 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
743 ### the nightly tests to run
744
|
745 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
746 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
747 jim.wunderlich 1.36
|
748 jim.wunderlich 1.29
|
749 jim.wunderlich 1.31 ############################
750 ##
751 ## TestBinRepositoryServer
752 ##
753 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
754 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
755
756 ############################
757 ##
758 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
759 ##
760 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
761 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
762 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
763 @ $(ECHO) TestBinCmpRepository +++++ passed all test
764 else
765
766 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
767
|
768 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
769 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
770 else
|
771 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
772 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
773 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
774 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
775 endif
776 endif
777
778
|
779 jim.wunderlich 1.31 ###########################
780 ##
781 ## TestBinClean
782 ##
|
783 jim.wunderlich 1.34 TestBinClean: FORCE
|
784 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
785 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
786 jim.wunderlich 1.29
|
787 jim.wunderlich 1.31
788 ###########################
|
789 jim.wunderlich 1.29 ##
|
790 jim.wunderlich 1.31 ## TestBinStartServer
|
791 jim.wunderlich 1.29 ##
|
792 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
793 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
794 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
795 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
796 jim.wunderlich 1.29 $(SLEEP) 5
|
797 jim.wunderlich 1.31
798 ###########################
|
799 jim.wunderlich 1.29 ##
|
800 jim.wunderlich 1.31 ## TestBinBuildRepo
|
801 jim.wunderlich 1.29 ##
|
802 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
803 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
804 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
805 jim.wunderlich 1.31
806
807 ###########################
808 ##
809 ## TestBinBuildRepoServ
810 ##
811 TestBinBuildRepoServ: TestBinStartServer
812 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
813 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
814 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
815
816
817 ###########################
818 ##
819 ## TestBinRepo
820 ##
|
821 jim.wunderlich 1.40 TestBinRepo: servertestsclean
|
822 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
823 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
824 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
825 jim.wunderlich 1.29
826
827
|
828 jim.wunderlich 1.34
829 ############################
830 ##
831 ## TestCmpBuild - used to compile the repository for compression
832 ##
833 TestCmpBuild: FORCE
834 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
835 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
836 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
837
838
839 ############################
840 ##
841 ## TestRegBuild - used to compile the repository for no compression
842 ##
843 TestRegBuild: FORCE
844 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
845 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
846 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
847
848
|
849 nag.boranna 1.27 ###############################################################################
|
850 kumpf 1.1 ##
851 ## Trace Configuration
852 ##
|
853 jim.wunderlich 1.43 ## Options: see usagetrace rule
854 ##
855 ###############################################################################
856
857 usagetrace: FORCE
858 $(USAGE)
|
859 jim.wunderlich 1.60 $(USAGE)"TestMakefile Trace Commands: "
860 $(USAGE)" The cimserver must be running when using W=c which is the default for W"
|
861 jim.wunderlich 1.43 $(USAGE)
|
862 jim.wunderlich 1.60 $(USAGE)" traceon W=[current/planned(c,p): Enables all tracing."
863 $(USAGE)" traceoff W=[current/planned(c,p): Disables all tracing."
864 $(USAGE)" tracesettings: Displays all trace settings."
865 $(USAGE)" tracecomp: Displays a trace componenets list."
866 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
867 $(USAGE)" Enables tracing on component C at trace level L."
868 $(USAGE)
869 $(USAGE)" W defaults to c in the above commands where W can be specified"
|
870 jim.wunderlich 1.43 $(USAGE)
|
871 jim.wunderlich 1.60 $(USAGE)" Usage examples:"
872 $(USAGE)" traceon turns on trace in current server config"
873 $(USAGE)" traceon W=c turns on trace in current server config"
874 $(USAGE)" traceon W=p turns on trace in planned server config"
875 $(USAGE)" traceoff turns on trace in current server config"
876 $(USAGE)" traceoff W=c turns on trace in current server config"
877 $(USAGE)" traceoff W=p turns on trace in planned server config"
878 $(USAGE)
879 $(USAGE)" traceon-CL C=DiscardedData L=3 W=c"
880 $(USAGE)" Turns on trace for DiscardedData at level 3 in current server config"
881 $(USAGE)" traceon-CL C=DiscardedData L=3 W=p"
882 $(USAGE)" Turns on trace for DiscardedData at level 3 in planned server config"
|
883 jim.wunderlich 1.43 $(USAGE)
884 $(USAGE)
885
886 traceon: FORCE
|
887 jim.wunderlich 1.60 @ cimconfig -s traceComponents=ALL -$W
888 @ cimconfig -s traceLevel=3 -$W
889 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
890
|
891 jim.wunderlich 1.43
892 traceoff: FORCE
|
893 jim.wunderlich 1.60 @ cimconfig -s traceComponents= -$W
894 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
895 jim.wunderlich 1.43
896
897 tracesettings: FORCE
898 @ $(ECHO) " "
|
899 jim.wunderlich 1.60 cimconfig -g traceComponents -c -p
|
900 jim.wunderlich 1.43 @ $(ECHO) " "
|
901 jim.wunderlich 1.60 cimconfig -g traceLevel -c -p
|
902 jim.wunderlich 1.43 @ $(ECHO) " "
|
903 jim.wunderlich 1.60 cimconfig -g traceFilePath -c -p
|
904 jim.wunderlich 1.43 @ $(ECHO) " "
905
906 traceon-CL: FORCE
|
907 jim.wunderlich 1.60 @ cimconfig -s traceComponents=$C -$W
908 @ cimconfig -s traceLevel=$L -$W
909 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
910 jim.wunderlich 1.43
911 tracecomp: FORCE
912 $(USAGE)
913 $(USAGE)"Trace component list:"
914 $(USAGE)
915 $(USAGE)"Channel"
916 $(USAGE)"XmlParser"
917 $(USAGE)"XmlWriter"
918 $(USAGE)"XmlReader"
919 $(USAGE)"XmlIO"
920 $(USAGE)"Http"
921 $(USAGE)"CimData"
922 $(USAGE)"ProvManager"
923 $(USAGE)"Repository"
924 $(USAGE)"Dispatcher"
925 $(USAGE)"OsAbstraction"
926 $(USAGE)"Config"
927 $(USAGE)"IndDelivery"
928 $(USAGE)"IndHandler"
929 $(USAGE)"Authentication"
930 $(USAGE)"Authorization"
931 jim.wunderlich 1.43 $(USAGE)"UserManager"
932 $(USAGE)"SubscriptionService"
933 $(USAGE)"Registration"
934 $(USAGE)"Shutdown"
935 $(USAGE)"Server"
936 $(USAGE)"IndicationService"
937 $(USAGE)"IndicationServiceInternal"
938 $(USAGE)"ConfigurationManager"
939 $(USAGE)"MessageQueueService"
940 $(USAGE)"ProviderManager"
941 $(USAGE)"ObjectResolution"
942 $(USAGE)"WQL"
943 $(USAGE)"CQL"
944 $(USAGE)"Thread"
945 $(USAGE)"MetaDispatcher"
946 $(USAGE)"IPC"
947 $(USAGE)"IndicationHandlerService"
948 $(USAGE)"CIMExportRequestDispatcher"
949 $(USAGE)"Memory"
950 $(USAGE)"SSL"
951 $(USAGE)"ControlProvider"
952 jim.wunderlich 1.43 $(USAGE)"AsyncOpNode"
953 $(USAGE)"CIMOMHandle"
954 $(USAGE)"BinaryMessageHandler"
955 $(USAGE)"L10N"
956 $(USAGE)"ExportClient"
957 $(USAGE)"Listener"
958 $(USAGE)"DiscardedData"
959 $(USAGE)"ProviderAgent"
960 $(USAGE)
961
962 ###############################################################################
963 ##
964 ## Trace Configuration - Old rules being deprecated
965 ##
|
966 kumpf 1.1 ## Options:
967 ## XMLTraceOn: Enables XML request and response tracing.
968 ## ProviderLoadTraceOn: Enables Provider load tracing.
969 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
970 ## load tracing.
971 ## AllTraceOn: Enables all tracing.
972 ## AllTraceOff: Disables all tracing.
973 ## list: Lists trace settings.
974 ##
975 ###############################################################################
976
977 XMLTraceOn:
978 cimconfig -s traceComponents=XmlIO -c
979 cimconfig -s traceLevel=3 -c
980 cimconfig -g traceComponents
981 cimconfig -g traceLevel
982
983 ProviderLoadTraceOn:
984 cimconfig -s traceComponents=ProvManager,OsAbstraction
985 cimconfig -s traceLevel=3 -c
986 cimconfig -g traceComponents
987 kumpf 1.1 cimconfig -g traceLevel
988
989 XML+ProviderLoadTraceOn:
990 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
991 cimconfig -s traceLevel=3 -c
992 cimconfig -g traceComponents
993 cimconfig -g traceLevel
994
|
995 jim.wunderlich 1.43 AllTraceOn: traceon
996
997 AllTraceOff: traceoff
|
998 kumpf 1.1
|
999 jim.wunderlich 1.43 list: tracesettings
|
1000 kumpf 1.1
|
1001 jim.wunderlich 1.55 #########################################################################
1002 # standardtests
1003 #
1004 # More testing options...
1005 #
1006 # The standard test seem to contain additional test that may not be able
1007 # to run on all platforms so they have been grouped here for now rather than
1008 # being included in the serversuite rule.
1009 #
1010 # The test are:
1011 # TestCimmof
1012 # TestNoSecurity
1013 # TestLocalSecurity
1014 # TestRemoteSecurity
1015 # TestAuthorization
1016 #
1017 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1018 # TestNoSecurity.
1019 #
1020 # NOTE: The TestNoSecurity step runs the servertests which builds the
1021 # the repository that is then left in place for the remaining tests.
1022 jim.wunderlich 1.55 # The cimof test must be before the TestNosecurity step as it removes
1023 # the repository builds a new one with cimmofl and another one with
1024 # cimmof and then compares them.
1025 #
1026 # NOTE: The Authentication test is comprised of EnableAuthentication,
1027 # TestLocalSecurity and TestRemoteSecurity.
1028 #
1029 # NOTE: The Authorization test is comprised of EnableAuthorization and
1030 # TestAuthorization.
1031 #
1032 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1033 # root access. Pegasus doesn't currently have the infrastructure
1034 # in place to run the server as root and run the test as non-root.
1035 # Rather than run everything, server, tests, providers, clients etc.
1036 # as root many testers prefer to run the tests as non-root. Setting
1037 # PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1038 # facilitate that.
1039 #
|
1040 kumpf 1.1
|
1041 jim.wunderlich 1.40 standardtests: FORCE
|
1042 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1043 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1044 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
|
1045 jim.wunderlich 1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
1046 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1047 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1048 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1049 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1050 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
1051 jim.wunderlich 1.53 else
|
1052 jim.wunderlich 1.55 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
|
1053 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "
1054 endif
|
1055 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
1056 kumpf 1.1
1057 TestNoSecurity:
|
1058 jim.wunderlich 1.56 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
|
1059 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1060 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1061 kumpf 1.1
1062 TestLocalSecurity:
|
1063 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1064 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1065
1066 TestRemoteSecurity:
|
1067 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1068 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-u$(PEGASUS_TEST_USER_ID) PASSWORD=-w$(PEGASUS_TEST_USER_PASS) SECURITY_ENABLED=true
|
1069 kumpf 1.1
1070 TestAuthorization:
|
1071 jim.wunderlich 1.59 TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
|
1072 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1073 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1074 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-u$(PEGASUS_TEST_USER_ID) PASSWORD=-w$(PEGASUS_TEST_USER_PASS) SECURITY_ENABLED=true
|
1075 kumpf 1.1
1076 TestSubscriptions:
|
1077 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
1078 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1079 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
1080 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1081 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
1082 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
1083 kumpf 1.1
1084 TestCimmof:
|
1085 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
1086 kumpf 1.1
1087 RunTestClientLocal:
1088 TestClient -local
1089
1090 DisableSecurity:
|
1091 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1092 kumpf 1.1 cimconfig -s enableAuthentication=false -p
1093 cimconfig -s enableNamespaceAuthorization=false -p
1094
|
1095 jim.wunderlich 1.61 EnableUsers:
1096 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1097 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1098 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1099
|
1100 kumpf 1.1 EnableAuthentication:
|
1101 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1102 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
1103 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1104 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
1105 kumpf 1.1
1106 EnableAuthorization:
|
1107 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1108 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
1109 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1110 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
1111 kumpf 1.1
1112 EnableSSL:
|
1113 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1114 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
1115 kumpf 1.1
|
1116 jim.wunderlich 1.61 #
1117 # ConfigureUsers
1118 #
1119 # The server must be running prior to invoking this rule
1120 #
|
1121 kumpf 1.1 ConfigureUsers:
1122 ifndef PEGASUS_PAM_AUTHENTICATION
|
1123 jim.wunderlich 1.62 -cimuser -l
|
1124 jim.wunderlich 1.61 -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
|
1125 kumpf 1.1 endif
1126
|
1127 jim.wunderlich 1.61 #
1128 # ConfigureAuthorizations rule
1129 #
1130 # The server must be running prior to invoking this rule
1131 #
|
1132 kumpf 1.1 ConfigureAuthorizations:
|
1133 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1134 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1135 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1136 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1137 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1138 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1139 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1140 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1141 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
|
1142 kumpf 1.65 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/A -R -W
1143 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/B -R -W
1144 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
|
1145 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1146 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1147 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1148 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1149 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1150 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1151 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1152 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1153 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1154 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1155 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
|
1156 kumpf 1.1
|
1157 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
1158 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
1159 kumpf 1.19 $(SLEEP) 5
|
1160 kumpf 1.1
|
1161 jim.wunderlich 1.41 startcimWithSSL: FORCE
1162 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
1163 kumpf 1.19 $(SLEEP) 5
|
1164 j.alex 1.66
|