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