1 #//%2006////////////////////////////////////////////////////////////////////////
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 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 #// EMC Corporation; Symantec Corporation; The Open Group.
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:
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.
30 #//==============================================================================
31 ###############################################################################
33 ## Test Makefile for Pegasus CIMOM
35 ## see the usage rule for documentation of rules etc.
38 ###############################################################################
41 @ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
43 include $(PEGASUS_ROOT)/mak/config.mak
44 include $(PEGASUS_ROOT)/mak/test.mak
45 include $(PEGASUS_ROOT)/mak/commands.mak
55 $(USAGE)"TestMakefile Primary Targets:"
57 $(USAGE)"The following are all standalone tests. They stop and start the server,"
58 $(USAGE)"and build repositories as needed."
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 $(USAGE)"perftests - Executes a brief server performance test"
69 $(USAGE)"usage2 - usage on secondary test targets"
70 $(USAGE)"usagetrace - usage on trace targets"
71 $(USAGE)"stresstests - Execute the default stress test suite"
76 $(USAGE)"TestMakefile Secondary Targets:"
78 $(USAGE)"The following are run as part of the Primary target test suites and may"
79 $(USAGE)"also be invoked as standalone tests."
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."
94 $(USAGE)"The following require the repository to be pre-built."
96 $(USAGE)"run_SSL_TS1 - Executes the SSL tests"
97 $(USAGE)"run_OOP_TS1 - Executes the Out Of Process Provider tests"
98 $(USAGE)"run_G11N_TS1 - Executes the Globalization tests"
100 $(USAGE)"The following require the repository to be pre-built and the server to be started."
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 $(USAGE)"run_STRESS_TS1 - Executes the stresstests"
108 ##########################################################
110 # rules that are defined in Makefile
112 ##########################################################
115 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
118 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
121 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
124 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
127 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
129 ###############################################################################
130 # mak/certificate_test.mak implements three key functions for
131 # testing Certificate-Based Authentication (CBA).
133 # setupCBATestCertificates is used to create a set of test certificates
134 # make -f TestMakefile setupCBATestCertificates
136 # runCBATestSuites is used to run a set of CBA tests
137 # make -f TestMakefile runCBATestSuites
139 # cleanupCBATestCertificates can be used to remove the test certificates
140 # make -f TestMakefile cleanupCBATestCertificates
141 ###############################################################################
142 include $(PEGASUS_ROOT)/mak/certificate_test.mak
144 ############################################################
148 ############################################################
151 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
152 ## are available and could be invoked directly, their direct usage is
153 ## discouraged in favor of invoking the cimstop and the cimstart rules
154 ## as this allows one place where additional checks, delays etc may be
155 ## added in the future to control or further test the servers performance
156 ## in executing these commands.
159 #######################
164 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
165 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
168 #######################
172 repositoryServer: FORCE
173 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
175 $(RMDIRHIER) $(REPOSITORY_ROOT)
176 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
178 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
179 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
181 ######################
183 # prestarttests is being deprecated since poststarttest is being deprecated
184 # in favor of name more related to its intended functionality.
186 prestarttests: prestarttests_msg shortsleep unittests
188 prestarttests_msg: FORCE
189 @$(ECHO) "=============================================================================="
190 @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
191 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
192 @$(ECHO) " The equivalent new rule is \"unittests\"."
193 @$(ECHO) " Invoking the \"unittests\" rule now."
194 @$(ECHO) "=============================================================================="
198 # poststarttests is being deprecated since it multiply defines a
199 # recursive make rule leading to ambuguity and confusion.
201 poststarttests: poststarttests_msg shortsleep servertests
203 poststarttests_msg: FORCE
204 @$(ECHO) "==============================================================================="
205 @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."
206 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
207 @$(ECHO) " The equivalent new rule is \"servertests\"."
208 @$(ECHO) " Invoking the \"servertests\" rule now."
209 @$(ECHO) "==============================================================================="
211 #####################
213 # tests is being deprecated since it multiply defines a
214 # recursive make rule leading to ambuguity and confusion.
216 tests: tests_msg shortsleep alltests
219 @$(ECHO) "==================================================================="
220 @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
221 @$(ECHO) " Use \"make testusage\" for a description of the usage model."
222 @$(ECHO) " The equivalent new rule is \"alltests\"."
223 @$(ECHO) " Invoking the \"alltests\" rule now."
224 @$(ECHO) "==================================================================="
235 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
236 @ $(ECHO) "+++++ TestMakefile unittests complete"
238 #####################
243 servertestsclean: FORCE
244 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
245 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
246 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
247 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
249 servertestssetup: FORCE
250 ifdef PEGASUS_HAS_SSL
252 # The association between user names and certificates is stored in the
253 # repository. If the repository is recreated, we also need to re-initialize
254 # the trust store directories. Otherwise, the truststore content will be
255 # out-of-sync with the mapping stored in the repository.
257 # NOTE: Tests that require their own test namespaces to run poststarttests
258 # should add their namespace creation make commands to pegasus/Makefile
259 # under the testrepository tag.
261 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
262 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
264 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
265 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
266 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
267 cleanupCBATestCertificates
268 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
269 setupCBATestCertificates
270 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
272 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
273 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
274 ifeq ($(PEGASUS_TEST_SDK),true)
275 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples -f Makefile setupSDK
280 servertests: servertestsclean servertestssetup serversuite
281 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
284 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
285 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
286 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimsub_InterOp
287 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
288 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
289 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
290 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
291 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS3
292 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
293 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
294 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
295 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
296 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
297 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1
299 #####################
304 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
310 serverquicktests: servertestsclean servertestssetup serverquicksuite
311 @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
313 serverquicksuite: FORCE
314 $(PEGASUS_HOME)/bin/Client
315 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
316 $(PEGASUS_HOME)/bin/TestClient
320 # perftests - simple performance test until we have better
322 # - Turns statistics on (uses TestInterop until we have better)
323 # - runs and times serverquicktests suite
324 # - runs cimperf to displat the statistics
325 # - turns statistics off
327 perftests: servertestsclean servertestssetup perfsuite
330 $(PEGASUS_HOME)/bin/TestInterop on
331 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
333 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
335 $(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
338 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
340 $(PEGASUS_HOME)/bin/TestInterop off
347 alltests: unittests servertests
348 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
349 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
350 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
352 @ $(ECHO) "+++++ TestMakefile alltests Complete"
354 ###############################################################################
355 ## Test Suite Definitions
356 ###############################################################################
358 ###############################################################################
359 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
361 ## Configuration Options: forceProviderProcesses=true
363 ## If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
364 ## since tests have already been run with OOP enabled.
367 ###############################################################################
368 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
369 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
371 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
374 OOP_TS1_TEST_CMDS = \
375 $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
378 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
379 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
380 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
382 ###############################################################################
384 ###############################################################################
385 ## IndInit Test Suite 1: IndicationService Initialization Tests
387 ## Configuration Options: (none)
389 ###############################################################################
390 IndInit_TS1_CONFIG_OPTIONS =
391 IndInit_TS1a_TEST_CMDS = \
392 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
393 IndInit_TS1b_TEST_CMDS = \
394 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
397 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
398 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
399 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
400 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
401 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
402 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
404 ###############################################################################
405 ## OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
407 ## Configuration Options: forceProviderProcesses=true
408 ## enableAuthentication=true, enableAuthentication=false
410 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
411 ## suite is always run with OOP enabled. This test suite causes a provider to
412 ## exit. Running this test suite with OOP disabled would cause the cimserver
413 ## to exit and the test suite to fail.
415 ## NOTE: The test is run once with authentication enabled, and once without
416 ## authentication enabled.
418 ###############################################################################
419 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
420 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
421 OOPProvFail_TS1_TEST_CMDS = \
422 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
424 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
426 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
427 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
428 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
429 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
430 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
431 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
433 run_OOPProvFail_TS1: FORCE
434 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
437 ###############################################################################
438 ## OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
439 ## Initialization Tests
441 ## Configuration Options: forceProviderProcesses=true
442 ## enableAuthentication=true
444 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
445 ## suite is always run with OOP enabled. This test suite causes a provider to
446 ## exit. Running this test suite with OOP disabled would cause the cimserver
447 ## to exit and the test suite to fail.
449 ###############################################################################
450 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
451 OOPProvFail_TS2a_TEST_CMDS = \
452 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
453 OOPProvFail_TS2b_TEST_CMDS = \
454 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
456 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
458 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
459 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
460 TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
461 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
462 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
463 TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
465 run_OOPProvFail_TS2: FORCE
466 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
469 ###############################################################################
470 ## OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
473 ## Configuration Options: forceProviderProcesses=true
474 ## enableAuthentication=true
476 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
477 ## suite is always run with OOP enabled. This test suite causes a provider to
478 ## exit. Running this test suite with OOP disabled would cause the cimserver
479 ## to exit and the test suite to fail.
481 ###############################################################################
482 OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
483 OOPProvFail_TS3a_TEST_CMDS = \
484 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
485 OOPProvFail_TS3b_TEST_CMDS = \
486 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
488 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
490 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
491 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
492 TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
493 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
494 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
495 TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
497 run_OOPProvFail_TS3: FORCE
498 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
501 ###############################################################################
502 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
504 ## Configuration Options: (none)
506 ###############################################################################
507 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
508 INDSSL_TS1a_TEST_CMDS = \
509 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
511 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
512 INDSSL_TS1b_TEST_CMDS = \
513 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
516 ifdef PEGASUS_HAS_SSL
517 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
518 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
519 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
520 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
521 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
522 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
523 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
524 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
526 run_INDSSL_TS1: FORCE
527 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"
530 run_INDSSL_TS1: FORCE
531 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
535 ###############################################################################
537 ###############################################################################
538 ## SSL Test Suite 1: SSL Tests
540 ## Configuration Options: enableAuthentication=true
541 ## enableHttpsConnection=true
542 ## sslClientVerificationMode=optional
543 ## sslTrustStoreUserName=$(CURRENT_USER)
545 ###############################################################################
546 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
547 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
548 SSL_TS1_TEST_CMDS = \
549 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
550 SSL_TS2_TEST_CMDS = \
551 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
553 ifdef PEGASUS_HAS_SSL
554 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
556 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
557 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
558 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
559 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
560 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
561 TESTSUITE_CMDS="$(SSL_TS2_TEST_CMDS)"
564 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_TS1"
568 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
572 ############################################################################
574 # Create_SSL_Certificate
576 # create a certificate that can be used for certification testing.
577 # It is currently used by the following tests:
580 Create_SSL_Certificate_ignore: FORCE
581 -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
583 Create_SSL_Certificate: FORCE
584 ifdef PEGASUS_HAS_SSL
585 ifdef PEGASUS_TEST_USER_DEFINED
586 $(ECHO) "Creating SSL certificate for test"
587 cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
590 $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
593 ###############################################################################
594 ## G11N Test Suite 1: Globalization Tests
596 ## Configuration Options: forceProviderProcesses=false
598 ###############################################################################
599 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
600 G11N_TS1_TEST_CMDS = \
601 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
605 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
606 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
607 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
609 ###############################################################################
610 ## Stress Test Suite 1: Default Stress Tests
612 ## Configuration Options: (none)
614 ###############################################################################
615 STRESS_TS1_CONFIG_OPTIONS =
616 STRESS_TS1_TEST_CMDS = \
617 TestStressTestController
620 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
621 CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
622 TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
623 ###############################################################################
625 ###############################################################################
626 ## SDK Test Suite 1: SDK Tests
628 ## Configuration Options: (none)
630 ###############################################################################
631 SDK_TS1_CONFIG_OPTIONS =
632 SDK_TS1_TEST_CMDS = \
633 $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
636 ifeq ($(PEGASUS_TEST_SDK),true)
638 $(MAKE) --directory=$(PEGASUS_ROOT)/mak \
639 -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
640 PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
641 PEGASUS_INCLUDE_DIR=/include
642 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
644 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
645 -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
646 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
647 CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
648 TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
651 @ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"
653 ###############################################################################
655 ###############################################################################
656 ## Export Client SSL Test Suite 1:
658 ## Configuration Options: enableHttpsConnection=true
660 ###############################################################################
661 ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
662 ExportClientSSL_TS1_TEST_CMDS = \
663 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
665 ifdef PEGASUS_HAS_SSL
666 run_ExportClientSSL_TS1:
667 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
668 CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
669 TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
671 run_ExportClientSSL_TS1: FORCE
672 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
675 ###############################################################################
679 ###############################################################################
680 ## cimsub CLI Test Suite 1: PG_InterOp Tests
682 ## Configuration Options: (none)
684 ###############################################################################
685 CIMSUB_INTEROP_CONFIG_OPTIONS =
686 CIMSUB_INTEROP_TEST_CMDS = \
687 $(MAKE) --directory \
688 $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
689 -f Makefile cimsubTest_InterOp
690 run_Cimsub_InterOp: FORCE
691 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
692 CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
693 TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
694 ###############################################################################
696 ###############################################################################
700 ##############################################################################
702 ## TestXMLRepository rule is used to run the poststarttests suite on
703 ## the XML Repository built using cimmofl
705 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
706 ## the XML Repository built using cimmof
708 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
709 ## the XML Compressed Repository built using cimmofl
712 ############################
717 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
718 @ $(ECHO) TestXMLRepository +++++ passed all test
720 ############################
722 ## TestXMLRepositoryServer
724 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
725 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
727 ############################
729 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
731 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
732 TestXMLCmpRepository: FORCE
733 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
734 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
737 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
739 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
740 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
742 TestXMLCmpRepository: FORCE
743 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
744 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
745 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
749 ###########################
754 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
755 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
758 ###########################
760 ## TestXMLStartServer
762 TestXMLStartServer: FORCE
763 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
764 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
765 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
769 #### The following caused the cimserver to fail on startup
771 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
773 ###########################
777 TestXMLBuildRepo: FORCE
778 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
779 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
782 ###########################
784 ## TestXMLBuildRepoServ
786 TestXMLBuildRepoServ: TestXMLStartServer
787 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
788 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
789 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
792 ###########################
796 TestXMLRepo: servertestsclean
797 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
798 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
799 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
806 ##############################################################################
808 ## TestBinRepository rule is used to run the poststarttests suite on
809 ## the Binary Repository built using cimmofl
811 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
812 ## the Binary Repository built using cimmof
814 ## TestBinCmpRepository rule is used to run the poststarttest suite on
815 ## the Binry Compressed Repository built using cimmofl
818 ############################
822 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
823 ### the nightly tests to run
825 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
826 @ $(ECHO) TestBinRepository +++++ passed all test
829 ############################
831 ## TestBinRepositoryServer
833 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
834 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
836 ############################
838 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
840 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
841 TestBinCmpRepository: FORCE
842 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
843 @ $(ECHO) TestBinCmpRepository +++++ passed all test
846 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
848 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
849 @ $(ECHO) TestBinCmpRepository +++++ passed all test
851 TestBinCmpRepository: FORCE
852 @ $(ECHO) TestBinCmpRepository +++++ Not tested
853 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
854 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
859 ###########################
864 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
865 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
868 ###########################
870 ## TestBinStartServer
872 TestBinStartServer: FORCE
873 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
874 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
875 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
878 ###########################
882 TestBinBuildRepo: FORCE
883 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
884 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
887 ###########################
889 ## TestBinBuildRepoServ
891 TestBinBuildRepoServ: TestBinStartServer
892 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
893 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
894 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
897 ###########################
901 TestBinRepo: servertestsclean
902 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
903 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
904 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
909 ############################
911 ## TestCmpBuild - used to compile the repository for compression
914 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
915 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
916 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
919 ############################
921 ## TestRegBuild - used to compile the repository for no compression
924 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
925 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
926 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
929 ###############################################################################
931 ## Trace Configuration
933 ## Options: see usagetrace rule
935 ###############################################################################
939 $(USAGE)"TestMakefile Trace Commands: "
940 $(USAGE)" The cimserver must be running when using W=c which is the default for W"
942 $(USAGE)" traceon W=[current/planned(c,p): Enables all tracing."
943 $(USAGE)" traceoff W=[current/planned(c,p): Disables all tracing."
944 $(USAGE)" tracesettings: Displays all trace settings."
945 $(USAGE)" tracecomp: Displays a trace componenets list."
946 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
947 $(USAGE)" Enables tracing on component C at trace level L."
949 $(USAGE)" W defaults to c in the above commands where W can be specified"
951 $(USAGE)" Usage examples:"
952 $(USAGE)" traceon turns on trace in current server config"
953 $(USAGE)" traceon W=c turns on trace in current server config"
954 $(USAGE)" traceon W=p turns on trace in planned server config"
955 $(USAGE)" traceoff turns on trace in current server config"
956 $(USAGE)" traceoff W=c turns on trace in current server config"
957 $(USAGE)" traceoff W=p turns on trace in planned server config"
959 $(USAGE)" traceon-CL C=DiscardedData L=3 W=c"
960 $(USAGE)" Turns on trace for DiscardedData at level 3 in current server config"
961 $(USAGE)" traceon-CL C=DiscardedData L=3 W=p"
962 $(USAGE)" Turns on trace for DiscardedData at level 3 in planned server config"
967 @ cimconfig -s traceComponents=ALL -$W
968 @ cimconfig -s traceLevel=3 -$W
969 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
973 @ cimconfig -s traceComponents= -$W
974 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
979 cimconfig -g traceComponents -c -p
981 cimconfig -g traceLevel -c -p
983 cimconfig -g traceFilePath -c -p
987 @ cimconfig -s traceComponents=$C -$W
988 @ cimconfig -s traceLevel=$L -$W
989 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
993 $(USAGE)"Trace component list:"
1002 $(USAGE)"ProvManager"
1003 $(USAGE)"Repository"
1004 $(USAGE)"Dispatcher"
1005 $(USAGE)"OsAbstraction"
1007 $(USAGE)"IndDelivery"
1008 $(USAGE)"IndHandler"
1009 $(USAGE)"Authentication"
1010 $(USAGE)"Authorization"
1011 $(USAGE)"UserManager"
1012 $(USAGE)"SubscriptionService"
1013 $(USAGE)"Registration"
1016 $(USAGE)"IndicationService"
1017 $(USAGE)"IndicationServiceInternal"
1018 $(USAGE)"ConfigurationManager"
1019 $(USAGE)"MessageQueueService"
1020 $(USAGE)"ProviderManager"
1021 $(USAGE)"ObjectResolution"
1025 $(USAGE)"MetaDispatcher"
1027 $(USAGE)"IndicationHandlerService"
1028 $(USAGE)"CIMExportRequestDispatcher"
1031 $(USAGE)"ControlProvider"
1032 $(USAGE)"AsyncOpNode"
1033 $(USAGE)"CIMOMHandle"
1034 $(USAGE)"BinaryMessageHandler"
1036 $(USAGE)"ExportClient"
1038 $(USAGE)"DiscardedData"
1039 $(USAGE)"ProviderAgent"
1042 ###############################################################################
1044 ## Trace Configuration - Old rules being deprecated
1047 ## XMLTraceOn: Enables XML request and response tracing.
1048 ## ProviderLoadTraceOn: Enables Provider load tracing.
1049 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1051 ## AllTraceOn: Enables all tracing.
1052 ## AllTraceOff: Disables all tracing.
1053 ## list: Lists trace settings.
1055 ###############################################################################
1058 cimconfig -s traceComponents=XmlIO -c
1059 cimconfig -s traceLevel=3 -c
1060 cimconfig -g traceComponents
1061 cimconfig -g traceLevel
1063 ProviderLoadTraceOn:
1064 cimconfig -s traceComponents=ProvManager,OsAbstraction
1065 cimconfig -s traceLevel=3 -c
1066 cimconfig -g traceComponents
1067 cimconfig -g traceLevel
1069 XML+ProviderLoadTraceOn:
1070 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1071 cimconfig -s traceLevel=3 -c
1072 cimconfig -g traceComponents
1073 cimconfig -g traceLevel
1077 AllTraceOff: traceoff
1081 #########################################################################
1084 # More testing options...
1086 # The standard test seem to contain additional test that may not be able
1087 # to run on all platforms so they have been grouped here for now rather than
1088 # being included in the serversuite rule.
1094 # TestRemoteSecurity
1097 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1100 # NOTE: The TestNoSecurity step runs the servertests which builds the
1101 # the repository that is then left in place for the remaining tests.
1102 # The cimof test must be before the TestNosecurity step as it removes
1103 # the repository builds a new one with cimmofl and another one with
1104 # cimmof and then compares them.
1106 # NOTE: The Authentication test is comprised of EnableAuthentication,
1107 # TestLocalSecurity and TestRemoteSecurity.
1109 # NOTE: The Authorization test is comprised of EnableAuthorization and
1110 # TestAuthorization.
1112 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1113 # root access. Pegasus doesn't currently have the infrastructure
1114 # in place to run the server as root and run the test as non-root.
1115 # Rather than run everything, server, tests, providers, clients etc.
1116 # as root many testers prefer to run the tests as non-root. Setting
1117 # PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1121 standardtests: FORCE
1122 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1123 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1124 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1125 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
1126 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1127 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1128 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1129 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1130 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
1132 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
1133 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "
1135 @ $(ECHO) "+++++ TestMakefile standardtests complete"
1138 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
1139 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1140 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1143 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1144 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1147 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1148 $(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
1151 TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1152 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1153 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1154 $(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
1157 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1158 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1159 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1160 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1161 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1162 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1165 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
1171 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1172 cimconfig -s enableAuthentication=false -p
1173 cimconfig -s enableNamespaceAuthorization=false -p
1176 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1177 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1178 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1180 EnableAuthentication:
1181 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1182 cimconfig -s enableAuthentication=true -p
1183 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1184 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1186 EnableAuthorization:
1187 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1188 cimconfig -s enableNamespaceAuthorization=true -p
1189 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1190 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1193 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1194 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1199 # The server must be running prior to invoking this rule
1202 ifndef PEGASUS_PAM_AUTHENTICATION
1204 -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1208 # ConfigureAuthorizations rule
1210 # The server must be running prior to invoking this rule
1212 ConfigureAuthorizations:
1213 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1214 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1215 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1216 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1217 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1218 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1219 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1220 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1221 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1222 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/A -R -W
1223 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/B -R -W
1224 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1225 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1226 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1227 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1228 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1229 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1230 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1231 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1232 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1233 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1234 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1235 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1237 startcimWithoutSSL: FORCE
1238 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1241 startcimWithSSL: FORCE
1242 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"