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