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