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