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