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