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