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 denise.eckstein 1.18 OOP_TS1_TEST_CMDS = \
|
377 jim.wunderlich 1.51 $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
|
378 denise.eckstein 1.18
379 run_OOP_TS1:
|
380 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
381 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
382 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
|
383 jim.wunderlich 1.51
|
384 denise.eckstein 1.18 ###############################################################################
385
386 ###############################################################################
|
387 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
388 ##
389 ## Configuration Options: (none)
390 ##
391 ###############################################################################
392 IndInit_TS1_CONFIG_OPTIONS =
393 IndInit_TS1a_TEST_CMDS = \
394 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
395 IndInit_TS1b_TEST_CMDS = \
396 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
397
398 run_IndInit_TS1:
399 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
400 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
401 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
402 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
403 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
404 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
405
406 ###############################################################################
|
407 carolann.graves 1.67 ## OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
408 ##
409 ## Configuration Options: forceProviderProcesses=true
410 ## enableAuthentication=true, enableAuthentication=false
411 ##
412 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
413 ## suite is always run with OOP enabled. This test suite causes a provider to
414 ## exit. Running this test suite with OOP disabled would cause the cimserver
415 ## to exit and the test suite to fail.
416 ##
417 ## NOTE: The test is run once with authentication enabled, and once without
418 ## authentication enabled.
419 ##
420 ###############################################################################
421 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
422 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
423 OOPProvFail_TS1_TEST_CMDS = \
424 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
425
|
426 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
427 carolann.graves 1.67 run_OOPProvFail_TS1:
428 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
429 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
430 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
431 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
432 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
433 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
|
434 carolann.graves 1.68 else
435 run_OOPProvFail_TS1: FORCE
436 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
437 endif
|
438 carolann.graves 1.67
439 ###############################################################################
440 ## OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
441 ## Initialization Tests
442 ##
443 ## Configuration Options: forceProviderProcesses=true
444 ## enableAuthentication=true
445 ##
446 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
447 ## suite is always run with OOP enabled. This test suite causes a provider to
448 ## exit. Running this test suite with OOP disabled would cause the cimserver
449 ## to exit and the test suite to fail.
450 ##
451 ###############################################################################
452 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
453 OOPProvFail_TS2a_TEST_CMDS = \
454 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
455 OOPProvFail_TS2b_TEST_CMDS = \
456 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
457
|
458 carolann.graves 1.68 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
459 carolann.graves 1.67 run_OOPProvFail_TS2:
460 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
461 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
462 TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
463 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
464 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
465 TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
|
466 carolann.graves 1.68 else
467 run_OOPProvFail_TS2: FORCE
468 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
469 endif
|
470 carolann.graves 1.67
471 ###############################################################################
|
472 carolann.graves 1.74 ## OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
473 ## Tests
474 ##
475 ## Configuration Options: forceProviderProcesses=true
476 ## enableAuthentication=true
477 ##
478 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
479 ## suite is always run with OOP enabled. This test suite causes a provider to
480 ## exit. Running this test suite with OOP disabled would cause the cimserver
481 ## to exit and the test suite to fail.
482 ##
483 ###############################################################################
484 OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
485 OOPProvFail_TS3a_TEST_CMDS = \
486 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
487 OOPProvFail_TS3b_TEST_CMDS = \
488 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
489
490 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
491 run_OOPProvFail_TS3:
492 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
493 carolann.graves 1.74 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
494 TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
495 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
496 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
497 TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
498 else
499 run_OOPProvFail_TS3: FORCE
500 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
501 endif
502
503 ###############################################################################
|
504 denise.eckstein 1.47 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
505 ##
506 ## Configuration Options: (none)
507 ##
508 ###############################################################################
|
509 denise.eckstein 1.50 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
|
510 denise.eckstein 1.47 INDSSL_TS1a_TEST_CMDS = \
|
511 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
512
513 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
|
514 denise.eckstein 1.47 INDSSL_TS1b_TEST_CMDS = \
|
515 denise.eckstein 1.50 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
516
|
517 denise.eckstein 1.47
518 ifdef PEGASUS_HAS_SSL
|
519 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
520 jim.wunderlich 1.61 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
|
521 denise.eckstein 1.47 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
522 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
|
523 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
524 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
525 denise.eckstein 1.50 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
|
526 denise.eckstein 1.47 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
527 else
528 run_INDSSL_TS1: FORCE
|
529 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"
530 endif
531 else
532 run_INDSSL_TS1: FORCE
533 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
|
534 denise.eckstein 1.47 endif
535
536
537 ###############################################################################
538
539 ###############################################################################
|
540 sushma.fernandes 1.84 ## SSL IPv4 Test Suite : Tests SSL connections for IPv4
541 ##
542 ## Configuration Options: enableHttpsConnection=true
543 ## NOTE : Authentication is not enabled as we are only verifying
544 ## if SSL based IPv6 connections are working correctly. The osinfo
545 ## client requires a password to be passed for a remote connection
546 ## otherwise it will prompt for one. As a work around,
547 ## we are providing a dummy password.
548 ##
549 ###############################################################################
|
550 ouyang.jian 1.91 SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
551 enableAuthentication=false
|
552 sushma.fernandes 1.84 SSL_IPV4_TS1_CMD_1 = \
553 osinfo -s -w notapassword -h 127.0.0.1 -p 5989
554 SSL_IPV4_TS1_CMD_2 = \
555 osinfo -s -w notapassword -h localhost -p 5989
556
557 ifdef PEGASUS_HAS_SSL
558 run_SSL_IPV4_TS1: FORCE
559 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
560 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
561 TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
562 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
563 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
564 TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
565 else
566 run_SSL_IPV4_TS1: FORCE
567 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
568 endif
569
570 ###############################################################################
571 ## SSL IPv6 Test Suite : Tests SSL connections for IPv6
572 ##
573 sushma.fernandes 1.84 ## Configuration Options: enableHttpsConnection=true
574 ## NOTE : Authentication is not enabled as we are only verifying
575 ## if SSL based IPv6 connections are working correctly. The osinfo
576 ## client requires a password to be passed for a remote connection
577 ## otherwise it will prompt for one. As a work around,
578 ## we are providing a dummy password.
579 ##
|
580 sushma.fernandes 1.86 ## The IPv4-mapped IPv6 address test is only enabled for unix
581 ## platforms as Windows does not support IPv4-mapped IPv6 addresses
582 ## on certain versions.
583 ##
|
584 sushma.fernandes 1.84 ###############################################################################
|
585 ouyang.jian 1.91 SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
586 enableAuthentication=false
|
587 sushma.fernandes 1.84 SSL_IPV6_TS1_CMD_1 = \
588 osinfo -s -w notapassword -h ::1 -p 5989
589 SSL_IPV6_TS1_CMD_2 = \
590 osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
591
592 ifdef PEGASUS_HAS_SSL
593 run_SSL_IPV6_TS1: FORCE
594 ifeq ($(PEGASUS_TEST_IPV6), true)
595 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
596 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
597 TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
|
598 sushma.fernandes 1.86 ifeq ($(OS_TYPE), unix)
|
599 sushma.fernandes 1.84 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
600 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
601 TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
|
602 sushma.fernandes 1.86 endif
|
603 sushma.fernandes 1.84 else
604 @ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
605 endif
606 else
607 run_SSL_IPV6_TS1: FORCE
608 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
609 endif
610
611 ###############################################################################
612 ## CBA SSL Test Suite 1: Certificate based authentication Tests
|
613 nag.boranna 1.27 ##
614 ## Configuration Options: enableAuthentication=true
615 ## enableHttpsConnection=true
616 ## sslClientVerificationMode=optional
617 ## sslTrustStoreUserName=$(CURRENT_USER)
618 ##
619 ###############################################################################
|
620 sushma.fernandes 1.84 SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
|
621 nag.boranna 1.27 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
|
622 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_1 = \
|
623 sushma.fernandes 1.71 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
|
624 sushma.fernandes 1.84 SSL_CBA_TS1_TEST_CMD_2 = \
|
625 sushma.fernandes 1.72 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
|
626 nag.boranna 1.27
|
627 jim.wunderlich 1.39 ifdef PEGASUS_HAS_SSL
|
628 jim.wunderlich 1.53 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
629 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
|
630 nag.boranna 1.27 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
631 sushma.fernandes 1.84 CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
632 TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
|
633 sushma.fernandes 1.72 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
634 sushma.fernandes 1.84 CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
635 TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
|
636 jim.wunderlich 1.39 else
|
637 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
638 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"
|
639 jim.wunderlich 1.53 endif
640 else
|
641 sushma.fernandes 1.84 run_SSL_CBA_TS1: FORCE
642 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
|
643 jim.wunderlich 1.39
644 endif
645
|
646 jim.wunderlich 1.61 ############################################################################
647 #
648 # Create_SSL_Certificate
649 #
650 # create a certificate that can be used for certification testing.
651 # It is currently used by the following tests:
652 # -run_INDSSL_TS1
653 #
654 Create_SSL_Certificate_ignore: FORCE
655 -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
656
657 Create_SSL_Certificate: FORCE
658 ifdef PEGASUS_HAS_SSL
659 ifdef PEGASUS_TEST_USER_DEFINED
660 $(ECHO) "Creating SSL certificate for test"
|
661 sushma.fernandes 1.71 cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
|
662 jim.wunderlich 1.61 endif
663 else
664 $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
665 endif
666
|
667 kumpf 1.46 ###############################################################################
668 ## G11N Test Suite 1: Globalization Tests
669 ##
670 ## Configuration Options: forceProviderProcesses=false
671 ##
672 ###############################################################################
673 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
674 G11N_TS1_TEST_CMDS = \
675 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
676 -f Makefile g11ntest
677
678 run_G11N_TS1:
679 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
680 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
681 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
|
682 j.alex 1.66
683 ###############################################################################
684 ## Stress Test Suite 1: Default Stress Tests
685 ##
686 ## Configuration Options: (none)
687 ##
688 ###############################################################################
689 STRESS_TS1_CONFIG_OPTIONS =
690 STRESS_TS1_TEST_CMDS = \
691 TestStressTestController
692
693 run_STRESS_TS1:
694 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
695 CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
696 TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
|
697 kumpf 1.46 ###############################################################################
698
|
699 denise.eckstein 1.73 ###############################################################################
700 ## SDK Test Suite 1: SDK Tests
701 ##
702 ## Configuration Options: (none)
703 ##
704 ###############################################################################
705 SDK_TS1_CONFIG_OPTIONS =
706 SDK_TS1_TEST_CMDS = \
707 $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
708 -f Makefile testSDK
709
710 ifeq ($(PEGASUS_TEST_SDK),true)
711 run_SDK_TS1: FORCE
712 $(MAKE) --directory=$(PEGASUS_ROOT)/mak \
713 -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
714 PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
715 PEGASUS_INCLUDE_DIR=/include
716 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
717 -f Makefile clean
718 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
719 -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
720 denise.eckstein 1.73 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
721 CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
722 TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
723 else
724 run_SDK_TS1: FORCE
725 @ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"
726 endif
727 ###############################################################################
|
728 jim.wunderlich 1.39
|
729 nag.boranna 1.27 ###############################################################################
|
730 carolann.graves 1.75 ## Export Client SSL Test Suite 1:
731 ##
732 ## Configuration Options: enableHttpsConnection=true
733 ##
734 ###############################################################################
735 ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
736 ExportClientSSL_TS1_TEST_CMDS = \
737 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
738
739 ifdef PEGASUS_HAS_SSL
740 run_ExportClientSSL_TS1:
741 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
742 CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
743 TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
744 else
745 run_ExportClientSSL_TS1: FORCE
746 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
747 endif
748
749 ###############################################################################
|
750 nag.boranna 1.27
|
751 jim.wunderlich 1.34
752
|
753 w.otsuka 1.76 ###############################################################################
|
754 dave.sudlik 1.88 ## idleConnectionTimeout Test Suite 1: uses ChunkingStressProvider Tests
755 ##
|
756 dave.sudlik 1.89 ## Configuration Options: idleConnectionTime=55
|
757 dave.sudlik 1.88 ##
758 ###############################################################################
|
759 dave.sudlik 1.89 IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS = idleConnectionTimeout=55
|
760 dave.sudlik 1.88 IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS = \
761 $(MAKE)@@--directory \
762 $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \
763 -f@@Makefile@@poststarttests
764 run_idleConnectionTimeout1: FORCE
765 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
766 CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \
767 TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS)"
768 ###############################################################################
769
770
771 ###############################################################################
772 ## idleConnectionTimeout Test Suite 2: uses IdleConnectionTimeout client test
773 ##
774 ## Configuration Options: idleConnectionTime=6
775 ##
776 ###############################################################################
777 IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS = idleConnectionTimeout=6
778 IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS = \
779 $(MAKE)@@--directory \
780 $(PEGASUS_ROOT)/src/Pegasus/Client/tests/IdleConnectionTimeout/ \
781 dave.sudlik 1.88 -f@@Makefile@@timeoutTest@@IDLETIME=10
782 run_idleConnectionTimeout2: FORCE
783 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
784 CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS)" \
785 TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS)"
786 ###############################################################################
787
788
789 ###############################################################################
|
790 w.otsuka 1.76 ## cimsub CLI Test Suite 1: PG_InterOp Tests
791 ##
792 ## Configuration Options: (none)
793 ##
794 ###############################################################################
795 CIMSUB_INTEROP_CONFIG_OPTIONS =
796 CIMSUB_INTEROP_TEST_CMDS = \
797 $(MAKE) --directory \
798 $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
799 -f Makefile cimsubTest_InterOp
800 run_Cimsub_InterOp: FORCE
801 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
802 CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
803 TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
804 ###############################################################################
805
806 ###############################################################################
|
807 s.kodali 1.85 ## CMPI subscription activation Test Suite 1:
808 ##
809 ## Configuration Options: (none)
810 ##
811 ###############################################################################
812 CMPI_SUB_TEST_CONFIG_OPTIONS=
813 CMPI_SUBa_TEST_CMDS = \
814 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
815 CMPI_SUBb_TEST_CMDS = \
816 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
817 CMPI_SUBc_TEST_CMDS = \
818 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
819 run_Cmpi_Sub: FORCE
820 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
821 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
822 TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
823 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
824 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
825 TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
826 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
827 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
828 s.kodali 1.85 TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
829
830 ##############################################################################
|
831 w.otsuka 1.76
832
|
833 jim.wunderlich 1.34 ##############################################################################
834 ##
835 ## TestXMLRepository rule is used to run the poststarttests suite on
836 ## the XML Repository built using cimmofl
837 ##
838 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
839 ## the XML Repository built using cimmof
840 ##
841 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
842 ## the XML Compressed Repository built using cimmofl
843 ##
844
845 ############################
846 ##
847 ## TestXMLRepository
848 ##
849
850 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
851 @ $(ECHO) TestXMLRepository +++++ passed all test
852
853 ############################
854 jim.wunderlich 1.34 ##
855 ## TestXMLRepositoryServer
856 ##
857 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
858 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
859
860 ############################
861 ##
862 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
863 ##
864 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
865 TestXMLCmpRepository: FORCE
866 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
867 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
868 else
869
870 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
871
872 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
873 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
874 else
875 jim.wunderlich 1.34 TestXMLCmpRepository: FORCE
876 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
877 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
878 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
879 endif
880 endif
881
882 ###########################
883 ##
884 ## TestXMLClean
885 ##
886 TestXMLClean: FORCE
887 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
888 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
889
890
891 ###########################
892 ##
893 ## TestXMLStartServer
894 ##
895 TestXMLStartServer: FORCE
896 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
897 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
898 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
899 $(SLEEP) 5
900
901 ####
902 #### The following caused the cimserver to fail on startup
903 ####
904 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
905
906 ###########################
907 ##
908 ## TestXMLBuildRepo
909 ##
910 TestXMLBuildRepo: FORCE
911 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
912 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
913
914
915 ###########################
916 ##
917 jim.wunderlich 1.34 ## TestXMLBuildRepoServ
918 ##
919 TestXMLBuildRepoServ: TestXMLStartServer
920 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
921 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
922 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
923
924
925 ###########################
926 ##
927 ## TestXMLRepo
928 ##
|
929 jim.wunderlich 1.40 TestXMLRepo: servertestsclean
|
930 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
|
931 jim.wunderlich 1.34 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
932 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
933
934
935
936
937
938
|
939 jim.wunderlich 1.29 ##############################################################################
940 ##
|
941 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
|
942 jim.wunderlich 1.33 ## the Binary Repository built using cimmofl
|
943 jim.wunderlich 1.29 ##
|
944 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
|
945 jim.wunderlich 1.33 ## the Binary Repository built using cimmof
946 ##
947 ## TestBinCmpRepository rule is used to run the poststarttest suite on
948 ## the Binry Compressed Repository built using cimmofl
|
949 jim.wunderlich 1.29 ##
|
950 jim.wunderlich 1.31
951 ############################
|
952 jim.wunderlich 1.29 ##
|
953 jim.wunderlich 1.31 ## TestBinRepository
|
954 jim.wunderlich 1.29 ##
|
955 jim.wunderlich 1.33 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
956 ### the nightly tests to run
957
|
958 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
|
959 jim.wunderlich 1.33 @ $(ECHO) TestBinRepository +++++ passed all test
|
960 jim.wunderlich 1.36
|
961 jim.wunderlich 1.29
|
962 jim.wunderlich 1.31 ############################
963 ##
964 ## TestBinRepositoryServer
965 ##
966 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
|
967 jim.wunderlich 1.33 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
968
969 ############################
970 ##
971 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
972 ##
973 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
|
974 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
975 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
976 @ $(ECHO) TestBinCmpRepository +++++ passed all test
977 else
978
979 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
980
|
981 jim.wunderlich 1.34 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
|
982 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ passed all test
983 else
|
984 jim.wunderlich 1.34 TestBinCmpRepository: FORCE
|
985 jim.wunderlich 1.33 @ $(ECHO) TestBinCmpRepository +++++ Not tested
986 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
987 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
988 endif
989 endif
990
991
|
992 jim.wunderlich 1.31 ###########################
993 ##
994 ## TestBinClean
995 ##
|
996 jim.wunderlich 1.34 TestBinClean: FORCE
|
997 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
998 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
999 jim.wunderlich 1.29
|
1000 jim.wunderlich 1.31
1001 ###########################
|
1002 jim.wunderlich 1.29 ##
|
1003 jim.wunderlich 1.31 ## TestBinStartServer
|
1004 jim.wunderlich 1.29 ##
|
1005 jim.wunderlich 1.34 TestBinStartServer: FORCE
|
1006 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
1007 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
1008 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
1009 jim.wunderlich 1.29 $(SLEEP) 5
|
1010 jim.wunderlich 1.31
1011 ###########################
|
1012 jim.wunderlich 1.29 ##
|
1013 jim.wunderlich 1.31 ## TestBinBuildRepo
|
1014 jim.wunderlich 1.29 ##
|
1015 jim.wunderlich 1.34 TestBinBuildRepo: FORCE
|
1016 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1017 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
1018 jim.wunderlich 1.31
1019
1020 ###########################
1021 ##
1022 ## TestBinBuildRepoServ
1023 ##
1024 TestBinBuildRepoServ: TestBinStartServer
1025 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1026 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1027 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1028
1029
1030 ###########################
1031 ##
1032 ## TestBinRepo
1033 ##
|
1034 jim.wunderlich 1.40 TestBinRepo: servertestsclean
|
1035 jim.wunderlich 1.35 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
|
1036 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
1037 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1038 jim.wunderlich 1.29
1039
1040
|
1041 jim.wunderlich 1.34
1042 ############################
1043 ##
1044 ## TestCmpBuild - used to compile the repository for compression
1045 ##
1046 TestCmpBuild: FORCE
1047 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1048 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1049 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1050
1051
1052 ############################
1053 ##
1054 ## TestRegBuild - used to compile the repository for no compression
1055 ##
1056 TestRegBuild: FORCE
1057 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1058 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
1059 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
1060
1061
|
1062 nag.boranna 1.27 ###############################################################################
|
1063 kumpf 1.1 ##
1064 ## Trace Configuration
1065 ##
|
1066 jim.wunderlich 1.43 ## Options: see usagetrace rule
1067 ##
1068 ###############################################################################
1069
1070 usagetrace: FORCE
1071 $(USAGE)
|
1072 jim.wunderlich 1.60 $(USAGE)"TestMakefile Trace Commands: "
1073 $(USAGE)" The cimserver must be running when using W=c which is the default for W"
|
1074 jim.wunderlich 1.43 $(USAGE)
|
1075 jim.wunderlich 1.60 $(USAGE)" traceon W=[current/planned(c,p): Enables all tracing."
1076 $(USAGE)" traceoff W=[current/planned(c,p): Disables all tracing."
1077 $(USAGE)" tracesettings: Displays all trace settings."
1078 $(USAGE)" tracecomp: Displays a trace componenets list."
1079 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1080 $(USAGE)" Enables tracing on component C at trace level L."
1081 $(USAGE)
1082 $(USAGE)" W defaults to c in the above commands where W can be specified"
|
1083 jim.wunderlich 1.43 $(USAGE)
|
1084 jim.wunderlich 1.60 $(USAGE)" Usage examples:"
1085 $(USAGE)" traceon turns on trace in current server config"
1086 $(USAGE)" traceon W=c turns on trace in current server config"
1087 $(USAGE)" traceon W=p turns on trace in planned server config"
1088 $(USAGE)" traceoff turns on trace in current server config"
1089 $(USAGE)" traceoff W=c turns on trace in current server config"
1090 $(USAGE)" traceoff W=p turns on trace in planned server config"
1091 $(USAGE)
1092 $(USAGE)" traceon-CL C=DiscardedData L=3 W=c"
1093 $(USAGE)" Turns on trace for DiscardedData at level 3 in current server config"
1094 $(USAGE)" traceon-CL C=DiscardedData L=3 W=p"
1095 $(USAGE)" Turns on trace for DiscardedData at level 3 in planned server config"
|
1096 jim.wunderlich 1.43 $(USAGE)
1097 $(USAGE)
1098
1099 traceon: FORCE
|
1100 jim.wunderlich 1.60 @ cimconfig -s traceComponents=ALL -$W
1101 @ cimconfig -s traceLevel=3 -$W
1102 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
1103
|
1104 jim.wunderlich 1.43
1105 traceoff: FORCE
|
1106 jim.wunderlich 1.60 @ cimconfig -s traceComponents= -$W
1107 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
1108 jim.wunderlich 1.43
1109
1110 tracesettings: FORCE
1111 @ $(ECHO) " "
|
1112 jim.wunderlich 1.60 cimconfig -g traceComponents -c -p
|
1113 jim.wunderlich 1.43 @ $(ECHO) " "
|
1114 jim.wunderlich 1.60 cimconfig -g traceLevel -c -p
|
1115 jim.wunderlich 1.43 @ $(ECHO) " "
|
1116 jim.wunderlich 1.60 cimconfig -g traceFilePath -c -p
|
1117 jim.wunderlich 1.43 @ $(ECHO) " "
1118
1119 traceon-CL: FORCE
|
1120 jim.wunderlich 1.60 @ cimconfig -s traceComponents=$C -$W
1121 @ cimconfig -s traceLevel=$L -$W
1122 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
|
1123 jim.wunderlich 1.43
1124 tracecomp: FORCE
1125 $(USAGE)
1126 $(USAGE)"Trace component list:"
1127 $(USAGE)
1128 $(USAGE)"Channel"
1129 $(USAGE)"XmlParser"
1130 $(USAGE)"XmlWriter"
1131 $(USAGE)"XmlReader"
1132 $(USAGE)"XmlIO"
1133 $(USAGE)"Http"
1134 $(USAGE)"CimData"
1135 $(USAGE)"ProvManager"
1136 $(USAGE)"Repository"
1137 $(USAGE)"Dispatcher"
1138 $(USAGE)"OsAbstraction"
1139 $(USAGE)"Config"
1140 $(USAGE)"IndDelivery"
1141 $(USAGE)"IndHandler"
1142 $(USAGE)"Authentication"
1143 $(USAGE)"Authorization"
1144 jim.wunderlich 1.43 $(USAGE)"UserManager"
1145 $(USAGE)"SubscriptionService"
1146 $(USAGE)"Registration"
1147 $(USAGE)"Shutdown"
1148 $(USAGE)"Server"
1149 $(USAGE)"IndicationService"
1150 $(USAGE)"IndicationServiceInternal"
1151 $(USAGE)"ConfigurationManager"
1152 $(USAGE)"MessageQueueService"
1153 $(USAGE)"ProviderManager"
1154 $(USAGE)"ObjectResolution"
1155 $(USAGE)"WQL"
1156 $(USAGE)"CQL"
1157 $(USAGE)"Thread"
1158 $(USAGE)"MetaDispatcher"
1159 $(USAGE)"IPC"
1160 $(USAGE)"IndicationHandlerService"
1161 $(USAGE)"CIMExportRequestDispatcher"
1162 $(USAGE)"Memory"
1163 $(USAGE)"SSL"
1164 $(USAGE)"ControlProvider"
1165 jim.wunderlich 1.43 $(USAGE)"AsyncOpNode"
1166 $(USAGE)"CIMOMHandle"
1167 $(USAGE)"L10N"
1168 $(USAGE)"ExportClient"
1169 $(USAGE)"Listener"
1170 $(USAGE)"DiscardedData"
1171 $(USAGE)"ProviderAgent"
1172 $(USAGE)
1173
1174 ###############################################################################
1175 ##
1176 ## Trace Configuration - Old rules being deprecated
1177 ##
|
1178 kumpf 1.1 ## Options:
1179 ## XMLTraceOn: Enables XML request and response tracing.
1180 ## ProviderLoadTraceOn: Enables Provider load tracing.
1181 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1182 ## load tracing.
1183 ## AllTraceOn: Enables all tracing.
1184 ## AllTraceOff: Disables all tracing.
1185 ## list: Lists trace settings.
1186 ##
1187 ###############################################################################
1188
1189 XMLTraceOn:
1190 cimconfig -s traceComponents=XmlIO -c
1191 cimconfig -s traceLevel=3 -c
1192 cimconfig -g traceComponents
1193 cimconfig -g traceLevel
1194
1195 ProviderLoadTraceOn:
1196 cimconfig -s traceComponents=ProvManager,OsAbstraction
1197 cimconfig -s traceLevel=3 -c
1198 cimconfig -g traceComponents
1199 kumpf 1.1 cimconfig -g traceLevel
1200
1201 XML+ProviderLoadTraceOn:
1202 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1203 cimconfig -s traceLevel=3 -c
1204 cimconfig -g traceComponents
1205 cimconfig -g traceLevel
1206
|
1207 jim.wunderlich 1.43 AllTraceOn: traceon
1208
1209 AllTraceOff: traceoff
|
1210 kumpf 1.1
|
1211 jim.wunderlich 1.43 list: tracesettings
|
1212 kumpf 1.1
|
1213 jim.wunderlich 1.55 #########################################################################
1214 # standardtests
1215 #
1216 # More testing options...
1217 #
1218 # The standard test seem to contain additional test that may not be able
1219 # to run on all platforms so they have been grouped here for now rather than
1220 # being included in the serversuite rule.
1221 #
1222 # The test are:
1223 # TestCimmof
1224 # TestNoSecurity
1225 # TestLocalSecurity
1226 # TestRemoteSecurity
1227 # TestAuthorization
1228 #
1229 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1230 # TestNoSecurity.
1231 #
1232 # NOTE: The TestNoSecurity step runs the servertests which builds the
1233 # the repository that is then left in place for the remaining tests.
1234 jim.wunderlich 1.55 # The cimof test must be before the TestNosecurity step as it removes
1235 # the repository builds a new one with cimmofl and another one with
1236 # cimmof and then compares them.
1237 #
1238 # NOTE: The Authentication test is comprised of EnableAuthentication,
1239 # TestLocalSecurity and TestRemoteSecurity.
1240 #
1241 # NOTE: The Authorization test is comprised of EnableAuthorization and
1242 # TestAuthorization.
1243 #
1244 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1245 # root access. Pegasus doesn't currently have the infrastructure
1246 # in place to run the server as root and run the test as non-root.
1247 # Rather than run everything, server, tests, providers, clients etc.
1248 # as root many testers prefer to run the tests as non-root. Setting
1249 # PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1250 # facilitate that.
1251 #
|
1252 kumpf 1.1
|
1253 jim.wunderlich 1.40 standardtests: FORCE
|
1254 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1255 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
|
1256 kumpf 1.94 # $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1257 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository testrepository
|
1258 jim.wunderlich 1.55 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
|
1259 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1260 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1261 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1262 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1263 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
1264 jim.wunderlich 1.53 else
|
1265 jim.wunderlich 1.55 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
|
1266 jim.wunderlich 1.53 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "
1267 endif
|
1268 kumpf 1.94 # Reset the security options to the defaults
1269 cimconfig -u enableNamespaceAuthorization -p
1270 cimconfig -u enableAuthentication -p
|
1271 kumpf 1.93 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1272 jim.wunderlich 1.40 @ $(ECHO) "+++++ TestMakefile standardtests complete"
|
1273 kumpf 1.1
1274 TestNoSecurity:
|
1275 jim.wunderlich 1.56 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
|
1276 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1277 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1278 kumpf 1.1
1279 TestLocalSecurity:
|
1280 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1281 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1282
1283 TestRemoteSecurity:
|
1284 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1285 $(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
|
1286 kumpf 1.1
1287 TestAuthorization:
|
1288 jim.wunderlich 1.59 TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
|
1289 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
1290 jim.wunderlich 1.59 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1291 $(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
|
1292 kumpf 1.1
1293 TestSubscriptions:
|
1294 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
1295 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1296 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
1297 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
1298 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
1299 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
1300 kumpf 1.1
1301 TestCimmof:
|
1302 kumpf 1.95 # Build the repository with cimmofl and cimmof and compare them.
1303 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1304 -@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-save
1305 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1306 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1307 @$(ECHO) $(CIM_SCHEMA_DIR)
1308 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1309 @$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmofl
1310 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
1311 @$(ECHO) $(CIM_SCHEMA_DIR)
1312 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
1313 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1314 @$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmof
1315 -@$(MOVE) $(REPOSITORY_DIR)/repository-save $(REPOSITORY_DIR)/repository
1316 TestCompareRepositories $(REPOSITORY_DIR)/repository-cimmofl $(REPOSITORY_DIR)/repository-cimmof
1317 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1318 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
|
1319 kumpf 1.1
1320 RunTestClientLocal:
1321 TestClient -local
1322
1323 DisableSecurity:
|
1324 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1325 kumpf 1.1 cimconfig -s enableAuthentication=false -p
1326 cimconfig -s enableNamespaceAuthorization=false -p
1327
|
1328 jim.wunderlich 1.61 EnableUsers:
1329 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1330 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1331 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1332
|
1333 kumpf 1.1 EnableAuthentication:
|
1334 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1335 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
1336 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1337 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
1338 kumpf 1.1
1339 EnableAuthorization:
|
1340 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
1341 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
1342 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1343 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
1344 kumpf 1.1
1345 EnableSSL:
|
1346 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1347 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
1348 kumpf 1.1
|
1349 jim.wunderlich 1.61 #
1350 # ConfigureUsers
1351 #
1352 # The server must be running prior to invoking this rule
1353 #
|
1354 kumpf 1.1 ConfigureUsers:
1355 ifndef PEGASUS_PAM_AUTHENTICATION
|
1356 jim.wunderlich 1.62 -cimuser -l
|
1357 jim.wunderlich 1.61 -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
|
1358 kumpf 1.1 endif
1359
|
1360 jim.wunderlich 1.61 #
1361 # ConfigureAuthorizations rule
1362 #
1363 # The server must be running prior to invoking this rule
1364 #
|
1365 kumpf 1.1 ConfigureAuthorizations:
|
1366 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1367 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1368 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1369 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1370 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1371 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1372 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1373 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1374 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
|
1375 sushma.fernandes 1.80 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1376 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
|
1377 kumpf 1.65 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
|
1378 jim.wunderlich 1.59 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1379 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1380 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1381 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1382 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1383 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1384 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1385 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1386 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1387 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1388 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
|
1389 kumpf 1.82 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
|
1390 kumpf 1.83 cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
|
1391 kumpf 1.82 endif
|
1392 kumpf 1.1
|
1393 jim.wunderlich 1.41 startcimWithoutSSL: FORCE
1394 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
|
1395 kumpf 1.19 $(SLEEP) 5
|
1396 kumpf 1.1
|
1397 jim.wunderlich 1.41 startcimWithSSL: FORCE
1398 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
|
1399 kumpf 1.19 $(SLEEP) 5
|
1400 j.alex 1.66
|