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