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