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