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