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