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 mreddy 1.75.2.1 ifdef PEGASUS_ENABLE_REMOTE_CMPI
236 $(CMPIR_STOP_DAEMON)
237 endif
|
238 h.sterling 1.38 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
239 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile unittests complete"
240
241 #####################
242 #
243 # servertests
244 #
|
245 kumpf 1.1
|
246 jim.wunderlich 1.40 servertestsclean: FORCE
|
247 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
248 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
249 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
250 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
251 jim.wunderlich 1.31
|
252 jim.wunderlich 1.40 servertestssetup: FORCE
|
253 denise.eckstein 1.50 ifdef PEGASUS_HAS_SSL
|
254 jim.wunderlich 1.61 #
255 # The association between user names and certificates is stored in the
256 # repository. If the repository is recreated, we also need to re-initialize
257 # the trust store directories. Otherwise, the truststore content will be
258 # out-of-sync with the mapping stored in the repository.
259 #
|
260 denise.eckstein 1.50 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
261 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
262 endif
|
263 jim.wunderlich 1.40 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
264 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
265 denise.eckstein 1.69 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
266 cleanupCBATestCertificates
267 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
268 setupCBATestCertificates
|
269 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
|
270 kumpf 1.19 $(SLEEP) 5
|
271 jim.wunderlich 1.61 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
272 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
273
|
274 jim.wunderlich 1.40
275 servertests: servertestsclean servertestssetup serversuite
276 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
277
278 serversuite: FORCE
|
279 mreddy 1.75.2.1 ifdef PEGASUS_ENABLE_REMOTE_CMPI
280 $(CMPIR_START_DAEMON)
281 endif
|
282 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
283 jim.wunderlich 1.33 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
|
284 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
285 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
286 carolann.graves 1.67 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
287 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
|
288 denise.eckstein 1.47 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
|
289 h.sterling 1.37 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
|
290 kumpf 1.46 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
|
291 denise.eckstein 1.69 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
|
292 kumpf 1.1
|
293 j.alex 1.66 #####################
294 #
295 # stresstests
296 #
297 stresstests:
298 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
299
|
300 jim.wunderlich 1.40 ####################
301 #
302 # serverquicktests
303 #
304 serverquicktests: servertestsclean servertestssetup serverquicksuite
305 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
306
307 serverquicksuite: FORCE
308 $(PEGASUS_HOME)/bin/Client
309 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
|
310 jim.wunderlich 1.45 $(PEGASUS_HOME)/bin/TestClient
311
312 ####################
313 #
314 # perftests - simple performance test until we have better
315 #
316 # - Turns statistics on (uses TestInterop until we have better)
317 # - runs and times serverquicktests suite
318 # - runs cimperf to displat the statistics
319 # - turns statistics off
320 #
321 perftests: servertestsclean servertestssetup perfsuite
322
323 perfsuite: FORCE
324 $(PEGASUS_HOME)/bin/TestInterop on
325 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
326 @ $(ECHO) " "
327 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
328 @ $(ECHO) " "
329 $(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
330 @ $(ECHO) " "
331 jim.wunderlich 1.45 @ $(ECHO) " "
332 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
333 @ $(ECHO) " "
334 $(PEGASUS_HOME)/bin/TestInterop off
335
|
336 jim.wunderlich 1.40
337 ####################
338 #
339 # alltests
340 #
341 alltests: unittests servertests
|
342 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
343 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
344 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
345 tony 1.5 endif
|
346 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile alltests Complete"
|
347 kumpf 1.1
348 ###############################################################################
|
349 denise.eckstein 1.18 ## Test Suite Definitions
350 ###############################################################################
351
352 ###############################################################################
353 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
354 ##
355 ## Configuration Options: forceProviderProcesses=true
356 ##
|
357 jim.wunderlich 1.54 ## If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
|
358 jim.wunderlich 1.51 ## since tests have already been run with OOP enabled.
359 ##
360 ##
|
361 denise.eckstein 1.18 ###############################################################################
|
362 jim.wunderlich 1.54 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
|
363 jim.wunderlich 1.52 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
364 else
|
365 denise.eckstein 1.18 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
|
366 kumpf 1.44 endif
|
367 jim.wunderlich 1.51
|
368 denise.eckstein 1.18 OOP_TS1_TEST_CMDS = \
|
369 jim.wunderlich 1.51 $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
|
370 denise.eckstein 1.18
371 run_OOP_TS1:
|
372 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
373 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
374 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
|
375 jim.wunderlich 1.51
|
376 denise.eckstein 1.18 ###############################################################################
377
378 ###############################################################################
|
379 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
380 ##
381 ## Configuration Options: (none)
382 ##
383 ###############################################################################
384 IndInit_TS1_CONFIG_OPTIONS =
385 IndInit_TS1a_TEST_CMDS = \
386 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
387 IndInit_TS1b_TEST_CMDS = \
388 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
389
390 run_IndInit_TS1:
391 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
392 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
393 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
394 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
395 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
396 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
397
398 ###############################################################################
|
399 carolann.graves 1.67 ## OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
400 ##
401 ## Configuration Options: forceProviderProcesses=true
402 ## enableAuthentication=true, enableAuthentication=false
403 ##
404 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
405 ## suite is always run with OOP enabled. This test suite causes a provider to
406 ## exit. Running this test suite with OOP disabled would cause the cimserver
407 ## to exit and the test suite to fail.
408 ##
409 ## NOTE: The test is run once with authentication enabled, and once without
410 ## authentication enabled.
411 ##
412 ###############################################################################
413 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
414 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
415 OOPProvFail_TS1_TEST_CMDS = \
416 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
417
|
418 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
419 carolann.graves 1.67 run_OOPProvFail_TS1:
420 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
421 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
422 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
423 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
424 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
425 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
|
426 carolann.graves 1.68 else
427 run_OOPProvFail_TS1: FORCE
428 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
429 endif
|
430 carolann.graves 1.67
431 ###############################################################################
432 ## OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
433 ## Initialization Tests
434 ##
435 ## Configuration Options: forceProviderProcesses=true
436 ## enableAuthentication=true
437 ##
438 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
439 ## suite is always run with OOP enabled. This test suite causes a provider to
440 ## exit. Running this test suite with OOP disabled would cause the cimserver
441 ## to exit and the test suite to fail.
442 ##
443 ###############################################################################
444 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
445 OOPProvFail_TS2a_TEST_CMDS = \
446 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
447 OOPProvFail_TS2b_TEST_CMDS = \
448 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
449
|
450 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
451 carolann.graves 1.67 run_OOPProvFail_TS2:
452 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
453 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
454 TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
455 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
456 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
457 TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
|
458 carolann.graves 1.68 else
459 run_OOPProvFail_TS2: FORCE
460 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
461 endif
|
462 carolann.graves 1.67
463 ###############################################################################
|
464 denise.eckstein 1.47 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
465 ##
466 ## Configuration Options: (none)
467 ##
468 ###############################################################################
|
469 denise.eckstein 1.50 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
|
470 denise.eckstein 1.47 INDSSL_TS1a_TEST_CMDS = \
|
471 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
472
473 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
|
474 denise.eckstein 1.47 INDSSL_TS1b_TEST_CMDS = \
|
475 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
476
|
477 denise.eckstein 1.47
478 ifdef PEGASUS_HAS_SSL
|
479 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
480 jim.wunderlich 1.61 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
|
481 denise.eckstein 1.47 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
482 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
|
483 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
484 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
485 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
|
486 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
487 else
488 run_INDSSL_TS1: FORCE
|
489 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"
490 endif
491 else
492 run_INDSSL_TS1: FORCE
493 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
|
494 denise.eckstein 1.47 endif
495
496
497 ###############################################################################
498
499 ###############################################################################
|
500 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
501 ##
502 ## Configuration Options: enableAuthentication=true
503 ## enableHttpsConnection=true
504 ## sslClientVerificationMode=optional
505 ## sslTrustStoreUserName=$(CURRENT_USER)
506 ##
507 ###############################################################################
508 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
509 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
510 SSL_TS1_TEST_CMDS = \
|
511 sushma.fernandes 1.71 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
|
512 sushma.fernandes 1.72 SSL_TS2_TEST_CMDS = \
513 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
|
514 nag.boranna 1.27
|
515 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
|
516 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
517 jim.wunderlich 1.39 run_SSL_TS1: FORCE
|
518 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
519 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
520 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
|
521 sushma.fernandes 1.72 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
522 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
523 TESTSUITE_CMDS="$(SSL_TS2_TEST_CMDS)"
|
524 jim.wunderlich 1.39 else
525 run_SSL_TS1: FORCE
|
526 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_TS1"
527 endif
528 else
529 run_SSL_TS1: FORCE
530 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
|
531 jim.wunderlich 1.39
532 endif
533
|
534 jim.wunderlich 1.61 ############################################################################
535 #
536 # Create_SSL_Certificate
537 #
538 # create a certificate that can be used for certification testing.
539 # It is currently used by the following tests:
540 # -run_INDSSL_TS1
541 #
542 Create_SSL_Certificate_ignore: FORCE
543 -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
544
545 Create_SSL_Certificate: FORCE
546 ifdef PEGASUS_HAS_SSL
547 ifdef PEGASUS_TEST_USER_DEFINED
548 $(ECHO) "Creating SSL certificate for test"
|
549 sushma.fernandes 1.71 cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
|
550 jim.wunderlich 1.61 endif
551 else
552 $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
553 endif
554
|
555 kumpf 1.46 ###############################################################################
556 ## G11N Test Suite 1: Globalization Tests
557 ##
558 ## Configuration Options: forceProviderProcesses=false
559 ##
560 ###############################################################################
561 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
562 G11N_TS1_TEST_CMDS = \
563 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
564 -f Makefile g11ntest
565
566 run_G11N_TS1:
567 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
568 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
569 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
|
570 j.alex 1.66
571 ###############################################################################
572 ## Stress Test Suite 1: Default Stress Tests
573 ##
574 ## Configuration Options: (none)
575 ##
576 ###############################################################################
577 STRESS_TS1_CONFIG_OPTIONS =
578 STRESS_TS1_TEST_CMDS = \
579 TestStressTestController
580
581 run_STRESS_TS1:
582 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
583 CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
584 TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
|
585 kumpf 1.46 ###############################################################################
586
|
587 carolann.graves 1.75
588 ###############################################################################
|
589 nag.boranna 1.27
|
590 jim.wunderlich 1.34
591
592 ##############################################################################
593 ##
594 ## TestXMLRepository rule is used to run the poststarttests suite on
595 ## the XML Repository built using cimmofl
596 ##
597 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
598 ## the XML Repository built using cimmof
599 ##
600 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
601 ## the XML Compressed Repository built using cimmofl
602 ##
603
604 ############################
605 ##
606 ## TestXMLRepository
607 ##
608
609 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
610 @ $(ECHO) TestXMLRepository +++++ passed all test
611 jim.wunderlich 1.34
612 ############################
613 ##
614 ## TestXMLRepositoryServer
615 ##
616 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
617 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
618
619 ############################
620 ##
621 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
622 ##
623 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
624 TestXMLCmpRepository: FORCE
625 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
626 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
627 else
628
629 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
630
631 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
632 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
633 else
634 TestXMLCmpRepository: FORCE
635 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
636 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
637 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
638 endif
639 endif
640
641 ###########################
642 ##
643 ## TestXMLClean
644 ##
645 TestXMLClean: FORCE
646 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
647 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
648
649
650 ###########################
651 ##
652 ## TestXMLStartServer
653 jim.wunderlich 1.34 ##
654 TestXMLStartServer: FORCE
655 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
656 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
657 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
658 $(SLEEP) 5
659
660 ####
661 #### The following caused the cimserver to fail on startup
662 ####
663 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
664
665 ###########################
666 ##
667 ## TestXMLBuildRepo
668 ##
669 TestXMLBuildRepo: FORCE
670 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
671 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
672
673
674 jim.wunderlich 1.34 ###########################
675 ##
676 ## TestXMLBuildRepoServ
677 ##
678 TestXMLBuildRepoServ: TestXMLStartServer
679 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
680 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
681 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
682
683
684 ###########################
685 ##
686 ## TestXMLRepo
687 ##
|
688 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
689 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
690 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
691 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
692
693
694
695
696
697
|
698 jim.wunderlich 1.29 ##############################################################################
699 ##
|
700 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
701 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
702 jim.wunderlich 1.29 ##
|
703 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
704 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
705 ##
706 ## TestBinCmpRepository rule is used to run the poststarttest suite on
707 ## the Binry Compressed Repository built using cimmofl
|
708 jim.wunderlich 1.29 ##
|
709 jim.wunderlich 1.31
710 ############################
|
711 jim.wunderlich 1.29 ##
|
712 jim.wunderlich 1.31 ## TestBinRepository
|
713 jim.wunderlich 1.29 ##
|
714 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
715 ### the nightly tests to run
716
|
717 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
718 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
719 jim.wunderlich 1.36
|
720 jim.wunderlich 1.29
|
721 jim.wunderlich 1.31 ############################
722 ##
723 ## TestBinRepositoryServer
724 ##
725 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
726 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
727
728 ############################
729 ##
730 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
731 ##
732 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
733 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
734 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
735 @ $(ECHO) TestBinCmpRepository +++++ passed all test
736 else
737
738 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
739
|
740 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
741 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
742 else
|
743 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
744 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
745 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
746 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
747 endif
748 endif
749
750
|
751 jim.wunderlich 1.31 ###########################
752 ##
753 ## TestBinClean
754 ##
|
755 jim.wunderlich 1.34 TestBinClean: FORCE
|
756 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
757 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
758 jim.wunderlich 1.29
|
759 jim.wunderlich 1.31
760 ###########################
|
761 jim.wunderlich 1.29 ##
|
762 jim.wunderlich 1.31 ## TestBinStartServer
|
763 jim.wunderlich 1.29 ##
|
764 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
765 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
766 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
767 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
768 jim.wunderlich 1.29 $(SLEEP) 5
|
769 jim.wunderlich 1.31
770 ###########################
|
771 jim.wunderlich 1.29 ##
|
772 jim.wunderlich 1.31 ## TestBinBuildRepo
|
773 jim.wunderlich 1.29 ##
|
774 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
775 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
776 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
777 jim.wunderlich 1.31
778
779 ###########################
780 ##
781 ## TestBinBuildRepoServ
782 ##
783 TestBinBuildRepoServ: TestBinStartServer
784 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
785 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
786 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
787
788
789 ###########################
790 ##
791 ## TestBinRepo
792 ##
|
793 jim.wunderlich 1.40 TestBinRepo: servertestsclean
|
794 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
795 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
796 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
797 jim.wunderlich 1.29
798
799
|
800 jim.wunderlich 1.34
801 ############################
802 ##
803 ## TestCmpBuild - used to compile the repository for compression
804 ##
805 TestCmpBuild: FORCE
806 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
807 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
808 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
809
810
811 ############################
812 ##
813 ## TestRegBuild - used to compile the repository for no compression
814 ##
815 TestRegBuild: FORCE
816 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
817 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
818 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
819
820
|
821 nag.boranna 1.27 ###############################################################################
|
822 kumpf 1.1 ##
823 ## Trace Configuration
824 ##
|
825 jim.wunderlich 1.43 ## Options: see usagetrace rule
826 ##
827 ###############################################################################
828
829 usagetrace: FORCE
830 $(USAGE)
|
831 jim.wunderlich 1.60 $(USAGE)"TestMakefile Trace Commands: "
832 $(USAGE)" The cimserver must be running when using W=c which is the default for W"
|
833 jim.wunderlich 1.43 $(USAGE)
|
834 jim.wunderlich 1.60 $(USAGE)" traceon W=[current/planned(c,p): Enables all tracing."
835 $(USAGE)" traceoff W=[current/planned(c,p): Disables all tracing."
836 $(USAGE)" tracesettings: Displays all trace settings."
837 $(USAGE)" tracecomp: Displays a trace componenets list."
838 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
839 $(USAGE)" Enables tracing on component C at trace level L."
840 $(USAGE)
841 $(USAGE)" W defaults to c in the above commands where W can be specified"
|
842 jim.wunderlich 1.43 $(USAGE)
|
843 jim.wunderlich 1.60 $(USAGE)" Usage examples:"
844 $(USAGE)" traceon turns on trace in current server config"
845 $(USAGE)" traceon W=c turns on trace in current server config"
846 $(USAGE)" traceon W=p turns on trace in planned server config"
847 $(USAGE)" traceoff turns on trace in current server config"
848 $(USAGE)" traceoff W=c turns on trace in current server config"
849 $(USAGE)" traceoff W=p turns on trace in planned server config"
850 $(USAGE)
851 $(USAGE)" traceon-CL C=DiscardedData L=3 W=c"
852 $(USAGE)" Turns on trace for DiscardedData at level 3 in current server config"
853 $(USAGE)" traceon-CL C=DiscardedData L=3 W=p"
854 $(USAGE)" Turns on trace for DiscardedData at level 3 in planned server config"
|
855 jim.wunderlich 1.43 $(USAGE)
856 $(USAGE)
857
858 traceon: FORCE
|
859 jim.wunderlich 1.60 @ cimconfig -s traceComponents=ALL -$W
860 @ cimconfig -s traceLevel=3 -$W
861 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
862
|
863 jim.wunderlich 1.43
864 traceoff: FORCE
|
865 jim.wunderlich 1.60 @ cimconfig -s traceComponents= -$W
866 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
867 jim.wunderlich 1.43
868
869 tracesettings: FORCE
870 @ $(ECHO) " "
|
871 jim.wunderlich 1.60 cimconfig -g traceComponents -c -p
|
872 jim.wunderlich 1.43 @ $(ECHO) " "
|
873 jim.wunderlich 1.60 cimconfig -g traceLevel -c -p
|
874 jim.wunderlich 1.43 @ $(ECHO) " "
|
875 jim.wunderlich 1.60 cimconfig -g traceFilePath -c -p
|
876 jim.wunderlich 1.43 @ $(ECHO) " "
877
878 traceon-CL: FORCE
|
879 jim.wunderlich 1.60 @ cimconfig -s traceComponents=$C -$W
880 @ cimconfig -s traceLevel=$L -$W
881 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
882 jim.wunderlich 1.43
883 tracecomp: FORCE
884 $(USAGE)
885 $(USAGE)"Trace component list:"
886 $(USAGE)
887 $(USAGE)"Channel"
888 $(USAGE)"XmlParser"
889 $(USAGE)"XmlWriter"
890 $(USAGE)"XmlReader"
891 $(USAGE)"XmlIO"
892 $(USAGE)"Http"
893 $(USAGE)"CimData"
894 $(USAGE)"ProvManager"
895 $(USAGE)"Repository"
896 $(USAGE)"Dispatcher"
897 $(USAGE)"OsAbstraction"
898 $(USAGE)"Config"
899 $(USAGE)"IndDelivery"
900 $(USAGE)"IndHandler"
901 $(USAGE)"Authentication"
902 $(USAGE)"Authorization"
903 jim.wunderlich 1.43 $(USAGE)"UserManager"
904 $(USAGE)"SubscriptionService"
905 $(USAGE)"Registration"
906 $(USAGE)"Shutdown"
907 $(USAGE)"Server"
908 $(USAGE)"IndicationService"
909 $(USAGE)"IndicationServiceInternal"
910 $(USAGE)"ConfigurationManager"
911 $(USAGE)"MessageQueueService"
912 $(USAGE)"ProviderManager"
913 $(USAGE)"ObjectResolution"
914 $(USAGE)"WQL"
915 $(USAGE)"CQL"
916 $(USAGE)"Thread"
917 $(USAGE)"MetaDispatcher"
918 $(USAGE)"IPC"
919 $(USAGE)"IndicationHandlerService"
920 $(USAGE)"CIMExportRequestDispatcher"
921 $(USAGE)"Memory"
922 $(USAGE)"SSL"
923 $(USAGE)"ControlProvider"
924 jim.wunderlich 1.43 $(USAGE)"AsyncOpNode"
925 $(USAGE)"CIMOMHandle"
926 $(USAGE)"BinaryMessageHandler"
927 $(USAGE)"L10N"
928 $(USAGE)"ExportClient"
929 $(USAGE)"Listener"
930 $(USAGE)"DiscardedData"
931 $(USAGE)"ProviderAgent"
932 $(USAGE)
933
934 ###############################################################################
935 ##
936 ## Trace Configuration - Old rules being deprecated
937 ##
|
938 kumpf 1.1 ## Options:
939 ## XMLTraceOn: Enables XML request and response tracing.
940 ## ProviderLoadTraceOn: Enables Provider load tracing.
941 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
942 ## load tracing.
943 ## AllTraceOn: Enables all tracing.
944 ## AllTraceOff: Disables all tracing.
945 ## list: Lists trace settings.
946 ##
947 ###############################################################################
948
949 XMLTraceOn:
950 cimconfig -s traceComponents=XmlIO -c
951 cimconfig -s traceLevel=3 -c
952 cimconfig -g traceComponents
953 cimconfig -g traceLevel
954
955 ProviderLoadTraceOn:
956 cimconfig -s traceComponents=ProvManager,OsAbstraction
957 cimconfig -s traceLevel=3 -c
958 cimconfig -g traceComponents
959 kumpf 1.1 cimconfig -g traceLevel
960
961 XML+ProviderLoadTraceOn:
962 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
963 cimconfig -s traceLevel=3 -c
964 cimconfig -g traceComponents
965 cimconfig -g traceLevel
966
|
967 jim.wunderlich 1.43 AllTraceOn: traceon
968
969 AllTraceOff: traceoff
|
970 kumpf 1.1
|
971 jim.wunderlich 1.43 list: tracesettings
|
972 kumpf 1.1
|
973 jim.wunderlich 1.55 #########################################################################
974 # standardtests
975 #
976 # More testing options...
977 #
978 # The standard test seem to contain additional test that may not be able
979 # to run on all platforms so they have been grouped here for now rather than
980 # being included in the serversuite rule.
981 #
982 # The test are:
983 # TestCimmof
984 # TestNoSecurity
985 # TestLocalSecurity
986 # TestRemoteSecurity
987 # TestAuthorization
988 #
989 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
990 # TestNoSecurity.
991 #
992 # NOTE: The TestNoSecurity step runs the servertests which builds the
993 # the repository that is then left in place for the remaining tests.
994 jim.wunderlich 1.55 # The cimof test must be before the TestNosecurity step as it removes
995 # the repository builds a new one with cimmofl and another one with
996 # cimmof and then compares them.
997 #
998 # NOTE: The Authentication test is comprised of EnableAuthentication,
999 # TestLocalSecurity and TestRemoteSecurity.
1000 #
1001 # NOTE: The Authorization test is comprised of EnableAuthorization and
1002 # TestAuthorization.
1003 #
1004 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1005 # root access. Pegasus doesn't currently have the infrastructure
1006 # in place to run the server as root and run the test as non-root.
1007 # Rather than run everything, server, tests, providers, clients etc.
1008 # as root many testers prefer to run the tests as non-root. Setting
1009 # PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1010 # facilitate that.
1011 #
|
1012 kumpf 1.1
|
1013 jim.wunderlich 1.40 standardtests: FORCE
|
1014 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1015 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1016 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
|
1017 jim.wunderlich 1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
1018 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1019 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1020 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1021 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1022 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
1023 jim.wunderlich 1.53 else
|
1024 jim.wunderlich 1.55 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
|
1025 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "
1026 endif
|
1027 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
1028 kumpf 1.1
1029 TestNoSecurity:
|
1030 jim.wunderlich 1.56 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
|
1031 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1032 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1033 kumpf 1.1
1034 TestLocalSecurity:
|
1035 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1036 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1037
1038 TestRemoteSecurity:
|
1039 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1040 $(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
|
1041 kumpf 1.1
1042 TestAuthorization:
|
1043 jim.wunderlich 1.59 TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
|
1044 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1045 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1046 $(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
|
1047 kumpf 1.1
1048 TestSubscriptions:
|
1049 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
1050 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1051 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
1052 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1053 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
1054 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
1055 kumpf 1.1
1056 TestCimmof:
|
1057 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
1058 kumpf 1.1
1059 RunTestClientLocal:
1060 TestClient -local
1061
1062 DisableSecurity:
|
1063 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1064 kumpf 1.1 cimconfig -s enableAuthentication=false -p
1065 cimconfig -s enableNamespaceAuthorization=false -p
1066
|
1067 jim.wunderlich 1.61 EnableUsers:
1068 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1069 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1070 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1071
|
1072 kumpf 1.1 EnableAuthentication:
|
1073 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1074 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
1075 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1076 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
1077 kumpf 1.1
1078 EnableAuthorization:
|
1079 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1080 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
1081 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1082 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
1083 kumpf 1.1
1084 EnableSSL:
|
1085 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1086 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
1087 kumpf 1.1
|
1088 jim.wunderlich 1.61 #
1089 # ConfigureUsers
1090 #
1091 # The server must be running prior to invoking this rule
1092 #
|
1093 kumpf 1.1 ConfigureUsers:
1094 ifndef PEGASUS_PAM_AUTHENTICATION
|
1095 jim.wunderlich 1.62 -cimuser -l
|
1096 jim.wunderlich 1.61 -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
|
1097 kumpf 1.1 endif
1098
|
1099 jim.wunderlich 1.61 #
1100 # ConfigureAuthorizations rule
1101 #
1102 # The server must be running prior to invoking this rule
1103 #
|
1104 kumpf 1.1 ConfigureAuthorizations:
|
1105 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1106 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1107 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1108 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1109 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1110 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1111 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1112 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1113 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
|
1114 kumpf 1.65 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/A -R -W
1115 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/B -R -W
1116 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
|
1117 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1118 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1119 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1120 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1121 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1122 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1123 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1124 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1125 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1126 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1127 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
|
1128 kumpf 1.1
|
1129 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
1130 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
1131 kumpf 1.19 $(SLEEP) 5
|
1132 kumpf 1.1
|
1133 jim.wunderlich 1.41 startcimWithSSL: FORCE
1134 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
1135 kumpf 1.19 $(SLEEP) 5
|
1136 j.alex 1.66
|