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