1 martin 1.99 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.100 #//
|
3 martin 1.99 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
8 #// License.
|
9 martin 1.100 #//
|
10 martin 1.99 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
|
16 martin 1.100 #//
|
17 martin 1.99 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.100 #//
|
20 martin 1.99 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.100 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.99 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.100 #//
|
28 martin 1.99 #//////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.1 ###############################################################################
30 ##
31 ## Test Makefile for Pegasus CIMOM
32 ##
|
33 jim.wunderlich 1.40 ## see the usage rule for documentation of rules etc.
|
34 jim.wunderlich 1.34 ##
35 ##
|
36 kumpf 1.1 ###############################################################################
37
|
38 david.dillard 1.15 error:
|
39 jim.wunderlich 1.40 @ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
|
40 kumpf 1.1
|
41 kumpf 1.23 include $(PEGASUS_ROOT)/mak/config.mak
42 include $(PEGASUS_ROOT)/mak/test.mak
43 include $(PEGASUS_ROOT)/mak/commands.mak
44
45 system = localhost
46
|
47 jim.wunderlich 1.34 .PHONY: FORCE
48
49 FORCE:
50
|
51 jim.wunderlich 1.40 usage: FORCE
52 $(USAGE)
53 $(USAGE)"TestMakefile Primary Targets:"
54 $(USAGE)
55 $(USAGE)"The following are all standalone tests. They stop and start the server,"
56 $(USAGE)"and build repositories as needed."
57 $(USAGE)
58 $(USAGE)"alltests - Execute unittests and servertests"
59 $(USAGE)"unittests - Execute the unit functional tests - no repository"
60 $(USAGE)" or active server is required"
61 $(USAGE)"servertests - Execute a basic server test suites (No security, No SSL)"
62 $(USAGE)"standardtests - Execute an extended server test suites "
63 $(USAGE)" using multiple options."
|
64 jim.wunderlich 1.45 $(USAGE)"perftests - Executes a brief server performance test"
|
65 jim.wunderlich 1.40 $(USAGE)
66 $(USAGE)"usage2 - usage on secondary test targets"
|
67 jim.wunderlich 1.43 $(USAGE)"usagetrace - usage on trace targets"
|
68 j.alex 1.66 $(USAGE)"stresstests - Execute the default stress test suite"
|
69 jim.wunderlich 1.40 $(USAGE)
70
71 usage2: FORCE
72 $(USAGE)
73 $(USAGE)"TestMakefile Secondary Targets:"
74 $(USAGE)
75 $(USAGE)"The following are run as part of the Primary target test suites and may"
76 $(USAGE)"also be invoked as standalone tests."
77 $(USAGE)
78 $(USAGE)"TestXMLRepository - Executes poststarttests on XML repository"
79 $(USAGE)" built with cimmofl."
|
80 kumpf 1.101 $(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository"
|
81 jim.wunderlich 1.40 $(USAGE)" built with cimmof."
82 $(USAGE)"TestXMLCmpRepository - Executes poststarttests on XML compressed"
83 $(USAGE)" repository built with cimmofl."
84 $(USAGE)"TestBinRepository - Executes poststarttests on binary repository "
85 $(USAGE)" built with cimmofl."
86 $(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
87 $(USAGE)" built with cimmof."
88 $(USAGE)"TestBinCmpRepository - Executes poststarttests on binary compressed"
89 $(USAGE)" repository built with cimmofl."
90 $(USAGE)
91 $(USAGE)"The following require the repository to be pre-built."
92 $(USAGE)
|
93 sushma.fernandes 1.84 $(USAGE)"run_SSL_CBA_TS1 - Executes the Certificate based authentication test suite."
94 $(USAGE)"run_SSL_IPV4_TS1 - Executes the IPv4 SSL connection test suite."
95 $(USAGE)"run_SSL_IPV6_TS1 - Executes the IPv6 SSL connection test suite."
|
96 jim.wunderlich 1.40 $(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 j.alex 1.66 $(USAGE)"run_STRESS_TS1 - Executes the stresstests"
|
103 dave.sudlik 1.78 $(USAGE)"slptests - Executes the slptests"
|
104 kumpf 1.101 $(USAGE)"run_Cmpi_Sub - Executes the CMPI subscription tests"
|
105 jim.wunderlich 1.40 $(USAGE)
106
107
108 ##########################################################
109 #
110 # rules that are defined in Makefile
111 #
112 ##########################################################
|
113 kumpf 1.21
|
114 jim.wunderlich 1.39 build: FORCE
115 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
|
116 kumpf 1.21
|
117 jim.wunderlich 1.40 world: FORCE
118 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
119
120 new: FORCE
121 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
122
|
123 jim.wunderlich 1.39 clean: FORCE
|
124 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
125
|
126 jim.wunderlich 1.40 depend: FORCE
127 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
128
|
129 denise.eckstein 1.69 ###############################################################################
130 # mak/certificate_test.mak implements three key functions for
131 # testing Certificate-Based Authentication (CBA).
|
132 kumpf 1.101 #
|
133 denise.eckstein 1.69 # setupCBATestCertificates is used to create a set of test certificates
134 # make -f TestMakefile setupCBATestCertificates
135 #
136 # runCBATestSuites is used to run a set of CBA tests
137 # make -f TestMakefile runCBATestSuites
138 #
139 # cleanupCBATestCertificates can be used to remove the test certificates
140 # make -f TestMakefile cleanupCBATestCertificates
141 ###############################################################################
142 include $(PEGASUS_ROOT)/mak/certificate_test.mak
|
143 jim.wunderlich 1.40
144 ############################################################
145 #
146 # rules defined here
147 #
148 ############################################################
149
|
150 jim.wunderlich 1.41 ##
151 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
152 ## are available and could be invoked directly, their direct usage is
153 ## discouraged in favor of invoking the cimstop and the cimstart rules
|
154 kumpf 1.101 ## as this allows one place where additional checks, delays etc may be
|
155 jim.wunderlich 1.41 ## added in the future to control or further test the servers performance
156 ## in executing these commands.
157 ##
158
|
159 jim.wunderlich 1.40 #######################
160 #
161 # doc
162 #
|
163 kumpf 1.1 doc:
|
164 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
165 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
166 kumpf 1.1
|
167 jim.wunderlich 1.40
168 #######################
169 #
170 # repositoryServer
171 #
172 repositoryServer: FORCE
|
173 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
174 kumpf 1.19 $(SLEEP) 5
|
175 kumpf 1.90 $(RMREPOSITORY) $(REPOSITORY_ROOT)
|
176 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
177 kumpf 1.19 $(SLEEP) 5
|
178 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
179 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
180 mday 1.6
|
181 jim.wunderlich 1.40 ######################
182 #
183 # prestarttests is being deprecated since poststarttest is being deprecated
|
184 kumpf 1.101 # in favor of name more related to its intended functionality.
|
185 jim.wunderlich 1.40 #
186 prestarttests: prestarttests_msg shortsleep unittests
187
188 prestarttests_msg: FORCE
189 @$(ECHO) "=============================================================================="
190 @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
191 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
|
192 kumpf 1.101 @$(ECHO) " The equivalent new rule is \"unittests\"."
|
193 jim.wunderlich 1.40 @$(ECHO) " Invoking the \"unittests\" rule now."
194 @$(ECHO) "=============================================================================="
195
196 ####################
197 #
|
198 kumpf 1.101 # poststarttests is being deprecated since it multiply defines a
|
199 jim.wunderlich 1.40 # recursive make rule leading to ambuguity and confusion.
200 #
|
201 kumpf 1.101 poststarttests: poststarttests_msg shortsleep servertests
|
202 jim.wunderlich 1.40
203 poststarttests_msg: FORCE
204 @$(ECHO) "==============================================================================="
|
205 kumpf 1.101 @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
|
206 jim.wunderlich 1.40 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
|
207 kumpf 1.101 @$(ECHO) " The equivalent new rule is \"servertests\"."
|
208 jim.wunderlich 1.40 @$(ECHO) " Invoking the \"servertests\" rule now."
209 @$(ECHO) "==============================================================================="
210
211 #####################
212 #
|
213 kumpf 1.101 # tests is being deprecated since it multiply defines a
|
214 jim.wunderlich 1.40 # recursive make rule leading to ambuguity and confusion.
215 #
216 tests: tests_msg shortsleep alltests
217
218 tests_msg: FORCE
219 @$(ECHO) "==================================================================="
220 @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
221 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
|
222 kumpf 1.101 @$(ECHO) " The equivalent new rule is \"alltests\"."
|
223 jim.wunderlich 1.40 @$(ECHO) " Invoking the \"alltests\" rule now."
224 @$(ECHO) "==================================================================="
225
226
227 shortsleep: FORCE
228 @$(SLEEP) 5
229
230 ####################
231 #
232 # unittests
233 #
234 unittests: FORCE
|
235 h.sterling 1.38 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
236 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile unittests complete"
237
238 #####################
239 #
240 # servertests
241 #
|
242 kumpf 1.1
|
243 jim.wunderlich 1.40 servertestsclean: FORCE
|
244 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
245 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
246 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
247 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
248 jim.wunderlich 1.31
|
249 jim.wunderlich 1.40 servertestssetup: FORCE
|
250 denise.eckstein 1.50 ifdef PEGASUS_HAS_SSL
|
251 jim.wunderlich 1.61 #
|
252 kumpf 1.101 # The association between user names and certificates is stored in the
|
253 jim.wunderlich 1.61 # repository. If the repository is recreated, we also need to re-initialize
|
254 kumpf 1.101 # the trust store directories. Otherwise, the truststore content will be
|
255 jim.wunderlich 1.61 # out-of-sync with the mapping stored in the repository.
256 #
|
257 w.otsuka 1.76 # NOTE: Tests that require their own test namespaces to run poststarttests
258 # should add their namespace creation make commands to pegasus/Makefile
259 # under the testrepository tag.
260 #
|
261 denise.eckstein 1.50 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
262 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
263 endif
|
264 jim.wunderlich 1.40 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
265 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
266 denise.eckstein 1.69 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
267 cleanupCBATestCertificates
268 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
269 setupCBATestCertificates
|
270 jim.wunderlich 1.41 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
|
271 kumpf 1.19 $(SLEEP) 5
|
272 jim.wunderlich 1.61 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
273 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
|
274 denise.eckstein 1.73 ifeq ($(PEGASUS_TEST_SDK),true)
|
275 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples -f Makefile setupSDK
|
276 denise.eckstein 1.73 endif
|
277 kumpf 1.98 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
278 denise.eckstein 1.73
|
279 dave.sudlik 1.78 # slptests are run under separate target because these testcases require that
280 # both the cimserver and SLP are running. There is no need for special options
281 # while starting cimserver.
282 slptests:
283 $(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/slptests -f Makefile slptests
284 @ $(ECHO) "+++++ TestMakefile slp test suite completed"
|
285 jim.wunderlich 1.40
286 servertests: servertestsclean servertestssetup serversuite
287 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
288
289 serversuite: FORCE
|
290 kumpf 1.98 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests -f Makefile commandtests
291 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
|
292 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
293 jim.wunderlich 1.33 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
|
294 w.otsuka 1.76 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimsub_InterOp
|
295 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
296 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
297 carolann.graves 1.67 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
298 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
|
299 carolann.graves 1.74 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS3
|
300 denise.eckstein 1.47 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
|
301 sushma.fernandes 1.84 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV4_TS1
302 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV6_TS1
303 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_CBA_TS1
|
304 kumpf 1.46 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
|
305 denise.eckstein 1.69 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
|
306 denise.eckstein 1.73 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
|
307 carolann.graves 1.75 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1
|
308 sahana.prabhakar 1.103 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimserver_Availability
|
309 kumpf 1.87 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
|
310 s.kodali 1.85 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub
311 endif
|
312 s.kodali 1.105 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimprovagt32tests
|
313 dave.sudlik 1.88 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout1
314 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout2
|
315 kumpf 1.1
|
316 j.alex 1.66 #####################
317 #
318 # stresstests
319 #
320 stresstests:
321 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
322
|
323 jim.wunderlich 1.40 ####################
324 #
|
325 jim.wunderlich 1.45 # perftests - simple performance test until we have better
326 #
327 # - Turns statistics on (uses TestInterop until we have better)
|
328 kumpf 1.81 # - runs poststarttests suite and TestBenchmark
|
329 jim.wunderlich 1.45 # - runs cimperf to displat the statistics
|
330 kumpf 1.101 # - turns statistics off
|
331 jim.wunderlich 1.45 #
332 perftests: servertestsclean servertestssetup perfsuite
333
334 perfsuite: FORCE
335 $(PEGASUS_HOME)/bin/TestInterop on
336 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
337 @ $(ECHO) " "
338 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
339 @ $(ECHO) " "
|
340 kumpf 1.81 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestBenchmark
|
341 jim.wunderlich 1.45 @ $(ECHO) " "
342 @ $(ECHO) " "
343 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
344 @ $(ECHO) " "
345 $(PEGASUS_HOME)/bin/TestInterop off
346
|
347 jim.wunderlich 1.40
348 ####################
349 #
350 # alltests
351 #
352 alltests: unittests servertests
|
353 a.dunfey 1.79 ifeq ($(OS_TYPE),windows)
|
354 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
355 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
356 tony 1.5 endif
|
357 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile alltests Complete"
|
358 kumpf 1.1
359 ###############################################################################
|
360 denise.eckstein 1.18 ## Test Suite Definitions
361 ###############################################################################
362
363 ###############################################################################
|
364 kumpf 1.101 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
|
365 denise.eckstein 1.18 ##
366 ## Configuration Options: forceProviderProcesses=true
367 ##
|
368 jim.wunderlich 1.54 ## If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
|
369 jim.wunderlich 1.51 ## since tests have already been run with OOP enabled.
370 ##
371 ##
|
372 denise.eckstein 1.18 ###############################################################################
|
373 jim.wunderlich 1.54 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
|
374 jim.wunderlich 1.52 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
375 else
|
376 denise.eckstein 1.18 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
|
377 kumpf 1.44 endif
|
378 jim.wunderlich 1.51
|
379 kumpf 1.96 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
380 # When privilege separation is enabled, most providers run out of process
381 # regardless of the forceProviderProcesses setting. The exception is
382 # providers that register with UserContext = 5 (CIM Server). The only
383 # case of this in the automated tests is the UserContextTestProvider.
384 OOP_TS1_TEST_CMDS = \
385 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/UserContextTestProvider/testclient@@poststarttests
386 else
387 OOP_TS1_TEST_CMDS = \
388 $(MAKE)@@--directory=$(PEGASUS_ROOT)@@-f@@Makefile@@poststarttests
389 endif
|
390 denise.eckstein 1.18
391 run_OOP_TS1:
|
392 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
393 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
394 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
|
395 jim.wunderlich 1.51
|
396 denise.eckstein 1.18 ###############################################################################
397
398 ###############################################################################
|
399 kumpf 1.101 ## IndInit Test Suite 1: IndicationService Initialization Tests
|
400 carolann.graves 1.28 ##
401 ## Configuration Options: (none)
402 ##
403 ###############################################################################
|
404 kumpf 1.101 IndInit_TS1_CONFIG_OPTIONS =
|
405 carolann.graves 1.28 IndInit_TS1a_TEST_CMDS = \
406 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
407 IndInit_TS1b_TEST_CMDS = \
408 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
409
410 run_IndInit_TS1:
411 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
412 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
413 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
414 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
415 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
416 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
417
418 ###############################################################################
|
419 carolann.graves 1.67 ## OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
420 ##
421 ## Configuration Options: forceProviderProcesses=true
422 ## enableAuthentication=true, enableAuthentication=false
423 ##
424 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
425 ## suite is always run with OOP enabled. This test suite causes a provider to
426 ## exit. Running this test suite with OOP disabled would cause the cimserver
427 ## to exit and the test suite to fail.
428 ##
429 ## NOTE: The test is run once with authentication enabled, and once without
430 ## authentication enabled.
431 ##
432 ###############################################################################
|
433 venkat.puvvada 1.104 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true maxFailedProviderModuleRestarts=0
434 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false maxFailedProviderModuleRestarts=0
|
435 carolann.graves 1.67 OOPProvFail_TS1_TEST_CMDS = \
436 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
437
|
438 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
439 carolann.graves 1.67 run_OOPProvFail_TS1:
440 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
441 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
442 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
443 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
444 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
445 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
|
446 carolann.graves 1.68 else
447 run_OOPProvFail_TS1: FORCE
448 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
449 endif
|
450 carolann.graves 1.67
451 ###############################################################################
|
452 kumpf 1.101 ## OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
|
453 carolann.graves 1.67 ## Initialization Tests
454 ##
455 ## Configuration Options: forceProviderProcesses=true
456 ## enableAuthentication=true
457 ##
458 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
459 ## suite is always run with OOP enabled. This test suite causes a provider to
460 ## exit. Running this test suite with OOP disabled would cause the cimserver
461 ## to exit and the test suite to fail.
462 ##
463 ###############################################################################
464 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
465 OOPProvFail_TS2a_TEST_CMDS = \
466 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
467 OOPProvFail_TS2b_TEST_CMDS = \
468 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
469
|
470 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
471 carolann.graves 1.67 run_OOPProvFail_TS2:
472 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
473 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
474 TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
475 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
476 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
477 TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
|
478 carolann.graves 1.68 else
479 run_OOPProvFail_TS2: FORCE
480 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
481 endif
|
482 carolann.graves 1.67
483 ###############################################################################
|
484 carolann.graves 1.74 ## OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
485 ## Tests
486 ##
487 ## Configuration Options: forceProviderProcesses=true
488 ## enableAuthentication=true
489 ##
490 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
491 ## suite is always run with OOP enabled. This test suite causes a provider to
492 ## exit. Running this test suite with OOP disabled would cause the cimserver
493 ## to exit and the test suite to fail.
494 ##
495 ###############################################################################
|
496 venkat.puvvada 1.104 OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true maxFailedProviderModuleRestarts=0
|
497 carolann.graves 1.74 OOPProvFail_TS3a_TEST_CMDS = \
498 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
499 OOPProvFail_TS3b_TEST_CMDS = \
500 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
501
502 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
503 run_OOPProvFail_TS3:
504 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
505 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
506 TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
507 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
508 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
509 TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
510 else
511 run_OOPProvFail_TS3: FORCE
512 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
513 endif
514
515 ###############################################################################
|
516 denise.eckstein 1.47 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
517 ##
518 ## Configuration Options: (none)
519 ##
520 ###############################################################################
|
521 denise.eckstein 1.50 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
|
522 denise.eckstein 1.47 INDSSL_TS1a_TEST_CMDS = \
|
523 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
524
525 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
|
526 denise.eckstein 1.47 INDSSL_TS1b_TEST_CMDS = \
|
527 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
528
|
529 denise.eckstein 1.47
530 ifdef PEGASUS_HAS_SSL
|
531 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
532 jim.wunderlich 1.61 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
|
533 denise.eckstein 1.47 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
534 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
|
535 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
536 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
537 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
|
538 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
539 else
540 run_INDSSL_TS1: FORCE
|
541 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"
542 endif
543 else
544 run_INDSSL_TS1: FORCE
545 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
|
546 denise.eckstein 1.47 endif
547
548
549 ###############################################################################
|
550 kumpf 1.101
|
551 denise.eckstein 1.47 ###############################################################################
|
552 sushma.fernandes 1.84 ## SSL IPv4 Test Suite : Tests SSL connections for IPv4
553 ##
554 ## Configuration Options: enableHttpsConnection=true
555 ## NOTE : Authentication is not enabled as we are only verifying
556 ## if SSL based IPv6 connections are working correctly. The osinfo
557 ## client requires a password to be passed for a remote connection
|
558 kumpf 1.101 ## otherwise it will prompt for one. As a work around,
559 ## we are providing a dummy password.
|
560 sushma.fernandes 1.84 ##
561 ###############################################################################
|
562 ouyang.jian 1.91 SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
563 enableAuthentication=false
|
564 sushma.fernandes 1.84 SSL_IPV4_TS1_CMD_1 = \
565 osinfo -s -w notapassword -h 127.0.0.1 -p 5989
566 SSL_IPV4_TS1_CMD_2 = \
567 osinfo -s -w notapassword -h localhost -p 5989
568
569 ifdef PEGASUS_HAS_SSL
570 run_SSL_IPV4_TS1: FORCE
571 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
572 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
573 TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
574 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
575 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
576 TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
577 else
578 run_SSL_IPV4_TS1: FORCE
579 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
580 endif
581
582 ###############################################################################
583 ## SSL IPv6 Test Suite : Tests SSL connections for IPv6
584 ##
585 sushma.fernandes 1.84 ## Configuration Options: enableHttpsConnection=true
586 ## NOTE : Authentication is not enabled as we are only verifying
587 ## if SSL based IPv6 connections are working correctly. The osinfo
588 ## client requires a password to be passed for a remote connection
589 ## otherwise it will prompt for one. As a work around,
|
590 kumpf 1.101 ## we are providing a dummy password.
|
591 sushma.fernandes 1.84 ##
|
592 sushma.fernandes 1.86 ## The IPv4-mapped IPv6 address test is only enabled for unix
593 ## platforms as Windows does not support IPv4-mapped IPv6 addresses
|
594 kumpf 1.101 ## on certain versions.
|
595 sushma.fernandes 1.86 ##
|
596 sushma.fernandes 1.84 ###############################################################################
|
597 ouyang.jian 1.91 SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
598 enableAuthentication=false
|
599 sushma.fernandes 1.84 SSL_IPV6_TS1_CMD_1 = \
600 osinfo -s -w notapassword -h ::1 -p 5989
601 SSL_IPV6_TS1_CMD_2 = \
602 osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
603
604 ifdef PEGASUS_HAS_SSL
605 run_SSL_IPV6_TS1: FORCE
606 ifeq ($(PEGASUS_TEST_IPV6), true)
607 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
608 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
609 TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
|
610 sushma.fernandes 1.86 ifeq ($(OS_TYPE), unix)
|
611 sushma.fernandes 1.84 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
612 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
613 TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
|
614 sushma.fernandes 1.86 endif
|
615 sushma.fernandes 1.84 else
616 @ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
617 endif
618 else
619 run_SSL_IPV6_TS1: FORCE
620 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
621 endif
622
623 ###############################################################################
624 ## CBA SSL Test Suite 1: Certificate based authentication Tests
|
625 nag.boranna 1.27 ##
626 ## Configuration Options: enableAuthentication=true
627 ## enableHttpsConnection=true
628 ## sslClientVerificationMode=optional
629 ## sslTrustStoreUserName=$(CURRENT_USER)
630 ##
631 ###############################################################################
|
632 sushma.fernandes 1.84 SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
|
633 nag.boranna 1.27 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
|
634 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_1 = \
|
635 sushma.fernandes 1.71 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
|
636 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_2 = \
|
637 sushma.fernandes 1.72 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
|
638 nag.boranna 1.27
|
639 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
|
640 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
641 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
|
642 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
643 sushma.fernandes 1.84 CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
644 TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
|
645 sushma.fernandes 1.72 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
646 sushma.fernandes 1.84 CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
647 TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
|
648 jim.wunderlich 1.39 else
|
649 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
650 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"
|
651 jim.wunderlich 1.53 endif
652 else
|
653 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
654 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
|
655 jim.wunderlich 1.39
656 endif
657
|
658 jim.wunderlich 1.61 ############################################################################
|
659 kumpf 1.101 #
|
660 jim.wunderlich 1.61 # Create_SSL_Certificate
661 #
662 # create a certificate that can be used for certification testing.
663 # It is currently used by the following tests:
664 # -run_INDSSL_TS1
665 #
666 Create_SSL_Certificate_ignore: FORCE
667 -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
668
669 Create_SSL_Certificate: FORCE
670 ifdef PEGASUS_HAS_SSL
671 ifdef PEGASUS_TEST_USER_DEFINED
672 $(ECHO) "Creating SSL certificate for test"
|
673 sushma.fernandes 1.71 cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
|
674 jim.wunderlich 1.61 endif
675 else
676 $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
677 endif
678
|
679 kumpf 1.46 ###############################################################################
|
680 kumpf 1.101 ## G11N Test Suite 1: Globalization Tests
|
681 kumpf 1.46 ##
682 ## Configuration Options: forceProviderProcesses=false
683 ##
684 ###############################################################################
685 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
686 G11N_TS1_TEST_CMDS = \
687 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
688 -f Makefile g11ntest
689
690 run_G11N_TS1:
691 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
692 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
693 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
|
694 j.alex 1.66
695 ###############################################################################
696 ## Stress Test Suite 1: Default Stress Tests
697 ##
698 ## Configuration Options: (none)
699 ##
700 ###############################################################################
701 STRESS_TS1_CONFIG_OPTIONS =
702 STRESS_TS1_TEST_CMDS = \
703 TestStressTestController
704
705 run_STRESS_TS1:
706 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
707 CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
708 TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
|
709 kumpf 1.46 ###############################################################################
710
|
711 denise.eckstein 1.73 ###############################################################################
712 ## SDK Test Suite 1: SDK Tests
713 ##
714 ## Configuration Options: (none)
715 ##
716 ###############################################################################
717 SDK_TS1_CONFIG_OPTIONS =
718 SDK_TS1_TEST_CMDS = \
719 $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
|
720 kumpf 1.101 -f Makefile testSDK
|
721 denise.eckstein 1.73
722 ifeq ($(PEGASUS_TEST_SDK),true)
723 run_SDK_TS1: FORCE
724 $(MAKE) --directory=$(PEGASUS_ROOT)/mak \
725 -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
726 PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
727 PEGASUS_INCLUDE_DIR=/include
728 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
729 -f Makefile clean
730 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
731 -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
732 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
733 CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
734 TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
735 else
736 run_SDK_TS1: FORCE
737 @ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"
738 endif
739 ###############################################################################
|
740 jim.wunderlich 1.39
|
741 nag.boranna 1.27 ###############################################################################
|
742 carolann.graves 1.75 ## Export Client SSL Test Suite 1:
743 ##
744 ## Configuration Options: enableHttpsConnection=true
745 ##
746 ###############################################################################
747 ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
748 ExportClientSSL_TS1_TEST_CMDS = \
749 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
750
751 ifdef PEGASUS_HAS_SSL
752 run_ExportClientSSL_TS1:
753 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
754 CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
755 TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
756 else
757 run_ExportClientSSL_TS1: FORCE
758 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
759 endif
760
761 ###############################################################################
|
762 nag.boranna 1.27
|
763 jim.wunderlich 1.34
764
|
765 w.otsuka 1.76 ###############################################################################
|
766 dave.sudlik 1.88 ## idleConnectionTimeout Test Suite 1: uses ChunkingStressProvider Tests
767 ##
|
768 dave.sudlik 1.89 ## Configuration Options: idleConnectionTime=55
|
769 dave.sudlik 1.88 ##
770 ###############################################################################
|
771 dave.sudlik 1.89 IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS = idleConnectionTimeout=55
|
772 dave.sudlik 1.88 IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS = \
773 $(MAKE)@@--directory \
774 $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \
775 -f@@Makefile@@poststarttests
776 run_idleConnectionTimeout1: FORCE
777 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
778 CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \
779 TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS)"
780 ###############################################################################
781
782 ###############################################################################
783 ## idleConnectionTimeout Test Suite 2: uses IdleConnectionTimeout client test
784 ##
785 ## Configuration Options: idleConnectionTime=6
786 ##
787 ###############################################################################
788 IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS = idleConnectionTimeout=6
789 IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS = \
790 $(MAKE)@@--directory \
791 $(PEGASUS_ROOT)/src/Pegasus/Client/tests/IdleConnectionTimeout/ \
792 -f@@Makefile@@timeoutTest@@IDLETIME=10
793 dave.sudlik 1.88 run_idleConnectionTimeout2: FORCE
794 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
795 CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS)" \
796 TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS)"
797 ###############################################################################
798
|
799 sahana.prabhakar 1.103 ###############################################################################
800 ## cimserver thread limit test:
801 ##
802 ## Configuration Options: none
803 ##
804 ###############################################################################
805 CIMSERVER_THREAD_LIMIT_TEST_CONFIG_OPTIONS = forceProviderProcesses=true
806 CIMSERVER_THREAD_LIMIT_TEST_CMDS = \
807 $(MAKE)@@--directory \
808 $(PEGASUS_ROOT)/src/Providers/TestProviders/FaultyInstanceProvider/testclient \
809 -f@@Makefile@@runAvailabilityTest
810 run_Cimserver_Availability: FORCE
811 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
812 CIMSERVER_CONFIG_OPTIONS="$(CIMSERVER_THREAD_LIMIT_TEST_CONFIG_OPTIONS)" \
813 TESTSUITE_CMDS="$(CIMSERVER_THREAD_LIMIT_TEST_CMDS)"
814 ###############################################################################
|
815 dave.sudlik 1.88
816 ###############################################################################
|
817 w.otsuka 1.76 ## cimsub CLI Test Suite 1: PG_InterOp Tests
818 ##
819 ## Configuration Options: (none)
820 ##
821 ###############################################################################
822 CIMSUB_INTEROP_CONFIG_OPTIONS =
823 CIMSUB_INTEROP_TEST_CMDS = \
824 $(MAKE) --directory \
825 $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
826 -f Makefile cimsubTest_InterOp
827 run_Cimsub_InterOp: FORCE
828 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
829 CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
830 TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
831 ###############################################################################
832
833 ###############################################################################
|
834 s.kodali 1.85 ## CMPI subscription activation Test Suite 1:
835 ##
836 ## Configuration Options: (none)
837 ##
838 ###############################################################################
839 CMPI_SUB_TEST_CONFIG_OPTIONS=
840 CMPI_SUBa_TEST_CMDS = \
841 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
842 CMPI_SUBb_TEST_CMDS = \
843 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
844 CMPI_SUBc_TEST_CMDS = \
845 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
846 run_Cmpi_Sub: FORCE
847 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
848 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
849 TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
850 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
851 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
852 TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
853 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
854 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
855 s.kodali 1.85 TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
|
856 kumpf 1.101
|
857 s.kodali 1.85 ##############################################################################
|
858 w.otsuka 1.76
859
|
860 s.kodali 1.105 #############################################################################
861 ##
862 ## 32-bit provider tests on 64-bit CIMServer
863 ##
864 #############################################################################
865
866 TEST_32BIT_CONFIG_OPTIONS = providerDir=lib32:lib
867 TEST_32BIT_CMDS = \
868 $(MAKE)@@--directory \
869 $(PEGASUS_ROOT)/src/Providers/TestProviders -f@@Makefile.cimprovagt32tests@@cimprovagt32tests
870 cimprovagt32tests: FORCE
871 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
872 CIMSERVER_CONFIG_OPTIONS="$(TEST_32BIT_CONFIG_OPTIONS)" \
873 TESTSUITE_CMDS="$(TEST_32BIT_CMDS)"
874
|
875 jim.wunderlich 1.34 ##############################################################################
876 ##
877 ## TestXMLRepository rule is used to run the poststarttests suite on
878 ## the XML Repository built using cimmofl
879 ##
880 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
881 ## the XML Repository built using cimmof
882 ##
|
883 kumpf 1.101 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
|
884 jim.wunderlich 1.34 ## the XML Compressed Repository built using cimmofl
885 ##
886
887 ############################
888 ##
889 ## TestXMLRepository
890 ##
891
892 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
893 @ $(ECHO) TestXMLRepository +++++ passed all test
894
895 ############################
896 ##
897 ## TestXMLRepositoryServer
898 ##
899 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
900 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
901
902 ############################
903 ##
904 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
905 jim.wunderlich 1.34 ##
906 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
907 TestXMLCmpRepository: FORCE
908 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
909 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
910 else
911
912 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
913
914 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
915 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
916 else
917 TestXMLCmpRepository: FORCE
|
918 kumpf 1.101 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
|
919 jim.wunderlich 1.34 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
|
920 kumpf 1.101 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
|
921 jim.wunderlich 1.34 endif
922 endif
923
924 ###########################
925 ##
926 ## TestXMLClean
927 ##
928 TestXMLClean: FORCE
|
929 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
930 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
931
932
933 ###########################
934 ##
935 ## TestXMLStartServer
936 ##
937 TestXMLStartServer: FORCE
938 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
939 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
940 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
941 $(SLEEP) 5
942
943 ####
944 #### The following caused the cimserver to fail on startup
945 ####
946 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
947
948 ###########################
949 ##
950 ## TestXMLBuildRepo
951 jim.wunderlich 1.34 ##
952 TestXMLBuildRepo: FORCE
953 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
954 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
955
956
957 ###########################
958 ##
959 ## TestXMLBuildRepoServ
960 ##
961 TestXMLBuildRepoServ: TestXMLStartServer
962 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
963 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
|
964 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
965 jim.wunderlich 1.34
966
967 ###########################
968 ##
969 ## TestXMLRepo
970 ##
|
971 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
972 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
973 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
|
974 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
975 jim.wunderlich 1.34
976
977
978
979
980
|
981 jim.wunderlich 1.29 ##############################################################################
982 ##
|
983 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
984 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
985 jim.wunderlich 1.29 ##
|
986 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
987 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
988 ##
|
989 kumpf 1.101 ## TestBinCmpRepository rule is used to run the poststarttest suite on
|
990 jim.wunderlich 1.33 ## the Binry Compressed Repository built using cimmofl
|
991 jim.wunderlich 1.29 ##
|
992 jim.wunderlich 1.31
993 ############################
|
994 jim.wunderlich 1.29 ##
|
995 jim.wunderlich 1.31 ## TestBinRepository
|
996 jim.wunderlich 1.29 ##
|
997 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
998 ### the nightly tests to run
999
|
1000 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
1001 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
1002 jim.wunderlich 1.36
|
1003 jim.wunderlich 1.29
|
1004 jim.wunderlich 1.31 ############################
1005 ##
1006 ## TestBinRepositoryServer
1007 ##
1008 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
1009 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
1010
1011 ############################
1012 ##
1013 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
1014 ##
1015 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
1016 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
1017 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
1018 @ $(ECHO) TestBinCmpRepository +++++ passed all test
1019 else
1020
1021 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
1022
|
1023 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
1024 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
1025 else
|
1026 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
1027 kumpf 1.101 @ $(ECHO) TestBinCmpRepository +++++ Not tested
|
1028 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
|
1029 kumpf 1.101 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
|
1030 jim.wunderlich 1.33 endif
1031 endif
1032
1033
|
1034 jim.wunderlich 1.31 ###########################
1035 ##
1036 ## TestBinClean
1037 ##
|
1038 jim.wunderlich 1.34 TestBinClean: FORCE
|
1039 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1040 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
1041 jim.wunderlich 1.29
|
1042 jim.wunderlich 1.31
1043 ###########################
|
1044 jim.wunderlich 1.29 ##
|
1045 jim.wunderlich 1.31 ## TestBinStartServer
|
1046 jim.wunderlich 1.29 ##
|
1047 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
1048 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
1049 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
1050 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
1051 jim.wunderlich 1.29 $(SLEEP) 5
|
1052 jim.wunderlich 1.31
1053 ###########################
|
1054 jim.wunderlich 1.29 ##
|
1055 jim.wunderlich 1.31 ## TestBinBuildRepo
|
1056 jim.wunderlich 1.29 ##
|
1057 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
1058 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1059 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
1060 jim.wunderlich 1.31
1061
1062 ###########################
1063 ##
1064 ## TestBinBuildRepoServ
1065 ##
1066 TestBinBuildRepoServ: TestBinStartServer
1067 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1068 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
1069 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1070 jim.wunderlich 1.31
1071
1072 ###########################
1073 ##
1074 ## TestBinRepo
1075 ##
|
1076 kumpf 1.101 TestBinRepo: servertestsclean
|
1077 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
1078 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
1079 kumpf 1.101 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1080 jim.wunderlich 1.29
1081
1082
|
1083 jim.wunderlich 1.34
1084 ############################
1085 ##
1086 ## TestCmpBuild - used to compile the repository for compression
1087 ##
1088 TestCmpBuild: FORCE
1089 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1090 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1091 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1092
1093
1094 ############################
1095 ##
1096 ## TestRegBuild - used to compile the repository for no compression
1097 ##
1098 TestRegBuild: FORCE
1099 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
|
1100 kumpf 1.101 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
1101 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
|
1102 jim.wunderlich 1.34
|
1103 nag.boranna 1.27 ###############################################################################
|
1104 kumpf 1.1 ##
1105 ## Trace Configuration
1106 ##
|
1107 jim.wunderlich 1.43 ## Options: see usagetrace rule
1108 ##
1109 ###############################################################################
1110
1111 usagetrace: FORCE
1112 $(USAGE)
|
1113 jim.wunderlich 1.60 $(USAGE)"TestMakefile Trace Commands: "
1114 $(USAGE)" The cimserver must be running when using W=c which is the default for W"
|
1115 jim.wunderlich 1.43 $(USAGE)
|
1116 jim.wunderlich 1.60 $(USAGE)" traceon W=[current/planned(c,p): Enables all tracing."
1117 $(USAGE)" traceoff W=[current/planned(c,p): Disables all tracing."
1118 $(USAGE)" tracesettings: Displays all trace settings."
1119 $(USAGE)" tracecomp: Displays a trace componenets list."
1120 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1121 $(USAGE)" Enables tracing on component C at trace level L."
1122 $(USAGE)
|
1123 kumpf 1.101 $(USAGE)" W defaults to c in the above commands where W can be specified"
|
1124 jim.wunderlich 1.43 $(USAGE)
|
1125 jim.wunderlich 1.60 $(USAGE)" Usage examples:"
1126 $(USAGE)" traceon turns on trace in current server config"
1127 $(USAGE)" traceon W=c turns on trace in current server config"
1128 $(USAGE)" traceon W=p turns on trace in planned server config"
1129 $(USAGE)" traceoff turns on trace in current server config"
1130 $(USAGE)" traceoff W=c turns on trace in current server config"
1131 $(USAGE)" traceoff W=p turns on trace in planned server config"
1132 $(USAGE)
1133 $(USAGE)" traceon-CL C=DiscardedData L=3 W=c"
1134 $(USAGE)" Turns on trace for DiscardedData at level 3 in current server config"
1135 $(USAGE)" traceon-CL C=DiscardedData L=3 W=p"
1136 $(USAGE)" Turns on trace for DiscardedData at level 3 in planned server config"
|
1137 jim.wunderlich 1.43 $(USAGE)
1138 $(USAGE)
1139
1140 traceon: FORCE
|
1141 kumpf 1.101 @ cimconfig -s traceComponents=ALL -$W
|
1142 jim.wunderlich 1.60 @ cimconfig -s traceLevel=3 -$W
1143 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
1144
|
1145 jim.wunderlich 1.43
1146 traceoff: FORCE
|
1147 jim.wunderlich 1.60 @ cimconfig -s traceComponents= -$W
1148 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
1149 jim.wunderlich 1.43
1150
1151 tracesettings: FORCE
1152 @ $(ECHO) " "
|
1153 jim.wunderlich 1.60 cimconfig -g traceComponents -c -p
|
1154 jim.wunderlich 1.43 @ $(ECHO) " "
|
1155 jim.wunderlich 1.60 cimconfig -g traceLevel -c -p
|
1156 jim.wunderlich 1.43 @ $(ECHO) " "
|
1157 jim.wunderlich 1.60 cimconfig -g traceFilePath -c -p
|
1158 jim.wunderlich 1.43 @ $(ECHO) " "
1159
1160 traceon-CL: FORCE
|
1161 jim.wunderlich 1.60 @ cimconfig -s traceComponents=$C -$W
1162 @ cimconfig -s traceLevel=$L -$W
1163 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
1164 jim.wunderlich 1.43
1165 tracecomp: FORCE
1166 $(USAGE)
1167 $(USAGE)"Trace component list:"
1168 $(USAGE)
1169 $(USAGE)"Channel"
1170 $(USAGE)"XmlParser"
1171 $(USAGE)"XmlWriter"
1172 $(USAGE)"XmlReader"
1173 $(USAGE)"XmlIO"
1174 $(USAGE)"Http"
1175 $(USAGE)"CimData"
1176 $(USAGE)"ProvManager"
1177 $(USAGE)"Repository"
1178 $(USAGE)"Dispatcher"
1179 $(USAGE)"OsAbstraction"
1180 $(USAGE)"Config"
1181 $(USAGE)"IndDelivery"
1182 $(USAGE)"IndHandler"
1183 $(USAGE)"Authentication"
1184 $(USAGE)"Authorization"
1185 jim.wunderlich 1.43 $(USAGE)"UserManager"
1186 $(USAGE)"SubscriptionService"
1187 $(USAGE)"Registration"
1188 $(USAGE)"Shutdown"
1189 $(USAGE)"Server"
1190 $(USAGE)"IndicationService"
1191 $(USAGE)"IndicationServiceInternal"
1192 $(USAGE)"ConfigurationManager"
1193 $(USAGE)"MessageQueueService"
1194 $(USAGE)"ProviderManager"
1195 $(USAGE)"ObjectResolution"
1196 $(USAGE)"WQL"
1197 $(USAGE)"CQL"
1198 $(USAGE)"Thread"
1199 $(USAGE)"MetaDispatcher"
1200 $(USAGE)"IPC"
1201 $(USAGE)"IndicationHandlerService"
1202 $(USAGE)"CIMExportRequestDispatcher"
1203 $(USAGE)"Memory"
1204 $(USAGE)"SSL"
1205 $(USAGE)"ControlProvider"
1206 jim.wunderlich 1.43 $(USAGE)"AsyncOpNode"
1207 $(USAGE)"CIMOMHandle"
1208 $(USAGE)"L10N"
1209 $(USAGE)"ExportClient"
1210 $(USAGE)"Listener"
1211 $(USAGE)"DiscardedData"
1212 $(USAGE)"ProviderAgent"
1213 $(USAGE)
1214
1215 ###############################################################################
1216 ##
1217 ## Trace Configuration - Old rules being deprecated
1218 ##
|
1219 kumpf 1.1 ## Options:
1220 ## XMLTraceOn: Enables XML request and response tracing.
1221 ## ProviderLoadTraceOn: Enables Provider load tracing.
1222 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1223 ## load tracing.
1224 ## AllTraceOn: Enables all tracing.
1225 ## AllTraceOff: Disables all tracing.
1226 ## list: Lists trace settings.
1227 ##
1228 ###############################################################################
1229
1230 XMLTraceOn:
1231 cimconfig -s traceComponents=XmlIO -c
1232 cimconfig -s traceLevel=3 -c
1233 cimconfig -g traceComponents
1234 cimconfig -g traceLevel
1235
1236 ProviderLoadTraceOn:
1237 cimconfig -s traceComponents=ProvManager,OsAbstraction
1238 cimconfig -s traceLevel=3 -c
1239 cimconfig -g traceComponents
1240 kumpf 1.1 cimconfig -g traceLevel
1241
1242 XML+ProviderLoadTraceOn:
1243 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1244 cimconfig -s traceLevel=3 -c
1245 cimconfig -g traceComponents
1246 cimconfig -g traceLevel
1247
|
1248 jim.wunderlich 1.43 AllTraceOn: traceon
1249
1250 AllTraceOff: traceoff
|
1251 kumpf 1.1
|
1252 jim.wunderlich 1.43 list: tracesettings
|
1253 kumpf 1.1
|
1254 jim.wunderlich 1.55 #########################################################################
1255 # standardtests
1256 #
1257 # More testing options...
1258 #
|
1259 kumpf 1.101 # The standard test seem to contain additional test that may not be able
|
1260 jim.wunderlich 1.55 # to run on all platforms so they have been grouped here for now rather than
1261 # being included in the serversuite rule.
1262 #
1263 # The test are:
1264 # TestCimmof
1265 # TestNoSecurity
1266 # TestLocalSecurity
1267 # TestRemoteSecurity
1268 # TestAuthorization
1269 #
1270 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1271 # TestNoSecurity.
1272 #
1273 # NOTE: The TestNoSecurity step runs the servertests which builds the
1274 # the repository that is then left in place for the remaining tests.
1275 # The cimof test must be before the TestNosecurity step as it removes
1276 # the repository builds a new one with cimmofl and another one with
|
1277 kumpf 1.101 # cimmof and then compares them.
|
1278 jim.wunderlich 1.55 #
|
1279 kumpf 1.101 # NOTE: The Authentication test is comprised of EnableAuthentication,
1280 # TestLocalSecurity and TestRemoteSecurity.
|
1281 jim.wunderlich 1.55 #
1282 # NOTE: The Authorization test is comprised of EnableAuthorization and
|
1283 kumpf 1.101 # TestAuthorization.
|
1284 jim.wunderlich 1.55 #
|
1285 kumpf 1.101 # NOTE: The EnableAuthentication and EnableAuthorization steps require
|
1286 jim.wunderlich 1.55 # root access. Pegasus doesn't currently have the infrastructure
1287 # in place to run the server as root and run the test as non-root.
1288 # Rather than run everything, server, tests, providers, clients etc.
1289 # as root many testers prefer to run the tests as non-root. Setting
|
1290 kumpf 1.101 # PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
|
1291 jim.wunderlich 1.55 # facilitate that.
1292 #
|
1293 kumpf 1.1
|
1294 jim.wunderlich 1.40 standardtests: FORCE
|
1295 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1296 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
|
1297 kumpf 1.94 # $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1298 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository testrepository
|
1299 jim.wunderlich 1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
1300 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1301 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1302 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1303 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1304 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
1305 jim.wunderlich 1.53 else
|
1306 jim.wunderlich 1.55 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
|
1307 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "
1308 endif
|
1309 kumpf 1.94 # Reset the security options to the defaults
1310 cimconfig -u enableNamespaceAuthorization -p
1311 cimconfig -u enableAuthentication -p
|
1312 kumpf 1.93 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1313 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
1314 kumpf 1.1
1315 TestNoSecurity:
|
1316 jim.wunderlich 1.56 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
|
1317 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1318 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1319 kumpf 1.1
1320 TestLocalSecurity:
|
1321 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1322 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1323
1324 TestRemoteSecurity:
|
1325 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1326 $(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
|
1327 kumpf 1.1
1328 TestAuthorization:
|
1329 jim.wunderlich 1.59 TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
|
1330 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1331 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1332 $(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
|
1333 kumpf 1.1
1334 TestSubscriptions:
|
1335 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
1336 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1337 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
1338 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1339 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
1340 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
1341 kumpf 1.1
1342 TestCimmof:
|
1343 kumpf 1.95 # Build the repository with cimmofl and cimmof and compare them.
1344 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1345 -@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-save
1346 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1347 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1348 @$(ECHO) $(CIM_SCHEMA_DIR)
1349 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1350 @$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmofl
1351 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
1352 @$(ECHO) $(CIM_SCHEMA_DIR)
1353 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
1354 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1355 @$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmof
1356 -@$(MOVE) $(REPOSITORY_DIR)/repository-save $(REPOSITORY_DIR)/repository
1357 TestCompareRepositories $(REPOSITORY_DIR)/repository-cimmofl $(REPOSITORY_DIR)/repository-cimmof
1358 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1359 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
|
1360 kumpf 1.1
1361 RunTestClientLocal:
1362 TestClient -local
1363
1364 DisableSecurity:
|
1365 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1366 kumpf 1.1 cimconfig -s enableAuthentication=false -p
1367 cimconfig -s enableNamespaceAuthorization=false -p
1368
|
1369 jim.wunderlich 1.61 EnableUsers:
1370 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1371 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1372 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1373
|
1374 kumpf 1.1 EnableAuthentication:
|
1375 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1376 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
1377 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1378 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
1379 kumpf 1.1
1380 EnableAuthorization:
|
1381 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1382 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
1383 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1384 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
1385 kumpf 1.1
1386 EnableSSL:
|
1387 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1388 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
1389 kumpf 1.1
|
1390 jim.wunderlich 1.61 #
1391 # ConfigureUsers
1392 #
1393 # The server must be running prior to invoking this rule
1394 #
|
1395 kumpf 1.1 ConfigureUsers:
1396 ifndef PEGASUS_PAM_AUTHENTICATION
|
1397 jim.wunderlich 1.62 -cimuser -l
|
1398 jim.wunderlich 1.61 -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
|
1399 kumpf 1.1 endif
1400
|
1401 jim.wunderlich 1.61 #
1402 # ConfigureAuthorizations rule
1403 #
1404 # The server must be running prior to invoking this rule
1405 #
|
1406 kumpf 1.1 ConfigureAuthorizations:
|
1407 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1408 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1409 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1410 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1411 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1412 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1413 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1414 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1415 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
|
1416 sushma.fernandes 1.80 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1417 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
|
1418 kumpf 1.65 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
|
1419 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1420 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1421 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1422 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1423 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1424 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1425 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1426 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1427 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1428 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1429 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
|
1430 kumpf 1.82 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
|
1431 kumpf 1.83 cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
|
1432 kumpf 1.82 endif
|
1433 kumpf 1.1
|
1434 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
1435 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
1436 kumpf 1.19 $(SLEEP) 5
|
1437 kumpf 1.1
|
1438 jim.wunderlich 1.41 startcimWithSSL: FORCE
1439 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
1440 kumpf 1.19 $(SLEEP) 5
|
1441 j.alex 1.66
|
1442 denise.eckstein 1.97 ###############################################################################
1443 ##
1444 ## check_for_cores - used to search for core files in the build environment.
1445 ##
1446 ## This option will search (1) each source directory, (2) the PEGASUS_CORE_DIR
1447 ## if it is defined and (3) the PEGASUS_TMP directory.
1448 ##
1449 ###############################################################################
1450 CORE_FILE_LIST = $(PEGASUS_HOME)/CoreFileList
1451
1452 check_core_search_results:
1453 ifneq ($(wildcard $(CORE_FILE_LIST)), )
1454 @$(ECHO) "*** One or more core files found. ***"
1455 @$(CAT) $(CORE_FILE_LIST)
1456 @exit 1
1457 endif
1458
1459 ifdef PEGASUS_CORE_DIR
1460 CORE_FILES_IN_CORE_DIR = \
1461 $(wildcard $(PEGASUS_CORE_DIR)/$(PLATFORM_CORE_PATTERN))
1462 endif
1463 denise.eckstein 1.97 ifdef PEGASUS_TMP
1464 CORE_FILES_IN_TMP_DIR = \
1465 $(wildcard $(PEGASUS_TMP)/$(PLATFORM_CORE_PATTERN))
1466 endif
1467
1468 generate_core_file_list:
1469 @$(RM) $(CORE_FILE_LIST)
1470 @$(MAKE) -s directory=$(PEGASUS_ROOT) general OPTION=CORE_SEARCH \
|
1471 kumpf 1.101 CORE_FILE_LIST=$(CORE_FILE_LIST)
|
1472 denise.eckstein 1.97 ifdef PEGASUS_CORE_DIR
1473 ifneq ($(CORE_FILES_IN_CORE_DIR), )
1474 @$(ECHO) $(CORE_FILES_IN_CORE_DIR) >> $(CORE_FILE_LIST)
1475 endif
1476 endif
1477 ifdef PEGASUS_TMP
1478 ifneq ($(CORE_FILES_IN_TMP_DIR), )
1479 @$(ECHO) $(CORE_FILES_IN_TMP_DIR) >> $(CORE_FILE_LIST)
1480 endif
1481 endif
1482
1483 check_for_cores:
1484 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
|
1485 kumpf 1.101 generate_core_file_list
|
1486 denise.eckstein 1.97 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
|
1487 kumpf 1.101 check_core_search_results
|
1488 kumpf 1.102
1489 ###############################################################################
1490 ##
1491 ## option_summary - used to generate a concise list of build options for use in
1492 ## a nightly build status report. This is not intended to be a complete list,
1493 ## so it is likely that some options are omitted. New options may be added
1494 ## here as needs dictate.
1495 ##
1496 ###############################################################################
1497
1498 OPTION_SUMMARY =
1499 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
1500 OPTION_SUMMARY += "+CMPI"
1501 endif
1502 ifeq ($(PEGASUS_ENABLE_CQL),true)
1503 OPTION_SUMMARY += "+CQL"
1504 endif
1505 ifeq ($(PEGASUS_HAS_ICU),true)
1506 OPTION_SUMMARY += "+ICU"
1507 endif
1508 ifeq ($(PEGASUS_ENABLE_IPV6),true)
1509 kumpf 1.102 OPTION_SUMMARY += "+IPv6"
1510 endif
1511 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER),true)
1512 OPTION_SUMMARY += "+JMPI"
1513 endif
1514 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1515 OPTION_SUMMARY += "+PrivSep"
1516 endif
1517 ifdef PEGASUS_ENABLE_EXECQUERY
1518 OPTION_SUMMARY += "+Query"
1519 endif
1520 ifdef PEGASUS_ENABLE_REMOTE_CMPI
1521 OPTION_SUMMARY += "+RCMPI"
1522 endif
1523 ifeq ($(PEGASUS_ENABLE_SLP),true)
1524 OPTION_SUMMARY += "+SLP"
1525 endif
1526 ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
1527 OPTION_SUMMARY += "+SQLite"
1528 endif
1529 ifdef PEGASUS_HAS_SSL
1530 kumpf 1.102 OPTION_SUMMARY += "+SSL"
1531 endif
1532 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1533 OPTION_SUMMARY += "+WSMan"
1534 endif
1535
1536 option_summary:
1537 @$(ECHO) "$(OPTION_SUMMARY)"
|