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