1 #//%LICENSE////////////////////////////////////////////////////////////////
3 #// Licensed to The Open Group (TOG) under one or more contributor license
4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 #// this work for additional information regarding copyright ownership.
6 #// Each contributor licenses this file to you under the OpenPegasus Open
7 #// Source License; you may not use this file except in compliance with the
10 #// Permission is hereby granted, free of charge, to any person obtaining a
11 #// copy of this software and associated documentation files (the "Software"),
12 #// to deal in the Software without restriction, including without limitation
13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 #// and/or sell copies of the Software, and to permit persons to whom the
15 #// Software is furnished to do so, subject to the following conditions:
17 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
20 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 #//////////////////////////////////////////////////////////////////////////
29 ###############################################################################
31 ## Test Makefile for Pegasus CIMOM
33 ## see the usage rule for documentation of rules etc.
36 ###############################################################################
39 @ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
41 include $(PEGASUS_ROOT)/mak/config.mak
42 include $(PEGASUS_ROOT)/mak/test.mak
43 include $(PEGASUS_ROOT)/mak/commands.mak
53 $(USAGE)"TestMakefile Primary Targets:"
55 $(USAGE)"The following are all standalone tests. They stop and start the server,"
56 $(USAGE)"and build repositories as needed."
58 $(USAGE)"alltests - Execute unittests and servertests"
59 $(USAGE)"unittests - Execute the unit functional tests - no repository"
60 $(USAGE)" or active server is required"
61 $(USAGE)"servertests - Execute a basic server test suites (No security, No SSL)"
62 $(USAGE)"standardtests - Execute an extended server test suites "
63 $(USAGE)" using multiple options."
64 $(USAGE)"perftests - Executes a brief server performance test"
66 $(USAGE)"usage2 - usage on secondary test targets"
67 $(USAGE)"usagetrace - usage on trace targets"
68 $(USAGE)"stresstests - Execute the default stress test suite"
73 $(USAGE)"TestMakefile Secondary Targets:"
75 $(USAGE)"The following are run as part of the Primary target test suites and may"
76 $(USAGE)"also be invoked as standalone tests."
78 $(USAGE)"TestXMLRepository - Executes poststarttests on XML repository"
79 $(USAGE)" built with cimmofl."
80 $(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository"
81 $(USAGE)" built with cimmof."
82 $(USAGE)"TestXMLCmpRepository - Executes poststarttests on XML compressed"
83 $(USAGE)" repository built with cimmofl."
84 $(USAGE)"TestBinRepository - Executes poststarttests on binary repository "
85 $(USAGE)" built with cimmofl."
86 $(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
87 $(USAGE)" built with cimmof."
88 $(USAGE)"TestBinCmpRepository - Executes poststarttests on binary compressed"
89 $(USAGE)" repository built with cimmofl."
91 $(USAGE)"The following require the repository to be pre-built."
93 $(USAGE)"run_SSL_CBA_TS1 - Executes the Certificate based authentication test suite."
94 $(USAGE)"run_SSL_IPV4_TS1 - Executes the IPv4 SSL connection test suite."
95 $(USAGE)"run_SSL_IPV6_TS1 - Executes the IPv6 SSL connection test suite."
96 $(USAGE)"run_OOP_TS1 - Executes the Out Of Process Provider tests"
97 $(USAGE)"run_G11N_TS1 - Executes the Globalization tests"
99 $(USAGE)"The following require the repository to be pre-built and the server to be started."
101 $(USAGE)"serversuite - the collection of test run by the servertests rule"
102 $(USAGE)"run_STRESS_TS1 - Executes the stresstests"
103 $(USAGE)"slptests - Executes the slptests"
104 $(USAGE)"run_Cmpi_Sub - Executes the CMPI subscription tests"
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 $(RMREPOSITORY) $(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
277 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
279 # slptests are run under separate target because these testcases require that
280 # both the cimserver and SLP are running. There is no need for special options
281 # while starting cimserver.
283 $(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/slptests -f Makefile slptests
284 @ $(ECHO) "+++++ TestMakefile slp test suite completed"
286 servertests: servertestsclean servertestssetup serversuite
287 @ $(ECHO) "+++++ TestMakefile servertests suites complete"
290 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests -f Makefile commandtests
291 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
292 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
293 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
294 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimsub_InterOp
295 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
296 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
297 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
298 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
299 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS3
300 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
301 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV4_TS1
302 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_IPV6_TS1
303 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_CBA_TS1
304 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
305 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile runCBATestSuites
306 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SDK_TS1
307 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1
308 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
309 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub
311 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout1
312 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout2
314 #####################
319 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
323 # perftests - simple performance test until we have better
325 # - Turns statistics on (uses TestInterop until we have better)
326 # - runs poststarttests suite and TestBenchmark
327 # - runs cimperf to displat the statistics
328 # - turns statistics off
330 perftests: servertestsclean servertestssetup perfsuite
333 $(PEGASUS_HOME)/bin/TestInterop on
334 $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
336 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
338 $(TIME_CMD) $(PEGASUS_HOME)/bin/TestBenchmark
341 $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
343 $(PEGASUS_HOME)/bin/TestInterop off
350 alltests: unittests servertests
351 ifeq ($(OS_TYPE),windows)
352 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
353 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
355 @ $(ECHO) "+++++ TestMakefile alltests Complete"
357 ###############################################################################
358 ## Test Suite Definitions
359 ###############################################################################
361 ###############################################################################
362 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
364 ## Configuration Options: forceProviderProcesses=true
366 ## If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
367 ## since tests have already been run with OOP enabled.
370 ###############################################################################
371 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
372 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
374 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
377 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
378 # When privilege separation is enabled, most providers run out of process
379 # regardless of the forceProviderProcesses setting. The exception is
380 # providers that register with UserContext = 5 (CIM Server). The only
381 # case of this in the automated tests is the UserContextTestProvider.
382 OOP_TS1_TEST_CMDS = \
383 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/UserContextTestProvider/testclient@@poststarttests
385 OOP_TS1_TEST_CMDS = \
386 $(MAKE)@@--directory=$(PEGASUS_ROOT)@@-f@@Makefile@@poststarttests
390 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
391 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
392 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
394 ###############################################################################
396 ###############################################################################
397 ## IndInit Test Suite 1: IndicationService Initialization Tests
399 ## Configuration Options: (none)
401 ###############################################################################
402 IndInit_TS1_CONFIG_OPTIONS =
403 IndInit_TS1a_TEST_CMDS = \
404 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
405 IndInit_TS1b_TEST_CMDS = \
406 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
409 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
410 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
411 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
412 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
413 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
414 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
416 ###############################################################################
417 ## OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
419 ## Configuration Options: forceProviderProcesses=true
420 ## enableAuthentication=true, enableAuthentication=false
422 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
423 ## suite is always run with OOP enabled. This test suite causes a provider to
424 ## exit. Running this test suite with OOP disabled would cause the cimserver
425 ## to exit and the test suite to fail.
427 ## NOTE: The test is run once with authentication enabled, and once without
428 ## authentication enabled.
430 ###############################################################################
431 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
432 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
433 OOPProvFail_TS1_TEST_CMDS = \
434 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
436 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
438 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
439 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
440 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
441 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
442 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
443 TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
445 run_OOPProvFail_TS1: FORCE
446 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS1"
449 ###############################################################################
450 ## OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService
451 ## Initialization Tests
453 ## Configuration Options: forceProviderProcesses=true
454 ## enableAuthentication=true
456 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
457 ## suite is always run with OOP enabled. This test suite causes a provider to
458 ## exit. Running this test suite with OOP disabled would cause the cimserver
459 ## to exit and the test suite to fail.
461 ###############################################################################
462 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
463 OOPProvFail_TS2a_TEST_CMDS = \
464 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
465 OOPProvFail_TS2b_TEST_CMDS = \
466 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
468 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
470 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
471 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
472 TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
473 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
474 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
475 TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
477 run_OOPProvFail_TS2: FORCE
478 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS2"
481 ###############################################################################
482 ## OOPProvFail Test Suite 3: OOP Provider Module Failure CIM Server restart
485 ## Configuration Options: forceProviderProcesses=true
486 ## enableAuthentication=true
488 ## NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
489 ## suite is always run with OOP enabled. This test suite causes a provider to
490 ## exit. Running this test suite with OOP disabled would cause the cimserver
491 ## to exit and the test suite to fail.
493 ###############################################################################
494 OOPProvFail_TS3_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
495 OOPProvFail_TS3a_TEST_CMDS = \
496 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3a
497 OOPProvFail_TS3b_TEST_CMDS = \
498 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS3b
500 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
502 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
503 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
504 TESTSUITE_CMDS="$(OOPProvFail_TS3a_TEST_CMDS)"
505 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
506 CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS3_CONFIG_OPTIONS)" \
507 TESTSUITE_CMDS="$(OOPProvFail_TS3b_TEST_CMDS)"
509 run_OOPProvFail_TS3: FORCE
510 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_OOPProvFail_TS3"
513 ###############################################################################
514 ## Indication SSL Test Suite 1: Indication Testing over HTTPS
516 ## Configuration Options: (none)
518 ###############################################################################
519 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
520 INDSSL_TS1a_TEST_CMDS = \
521 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
523 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
524 INDSSL_TS1b_TEST_CMDS = \
525 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
528 ifdef PEGASUS_HAS_SSL
529 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
530 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
531 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
532 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
533 TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
534 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
535 CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
536 TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
538 run_INDSSL_TS1: FORCE
539 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"
542 run_INDSSL_TS1: FORCE
543 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
547 ###############################################################################
549 ###############################################################################
550 ## SSL IPv4 Test Suite : Tests SSL connections for IPv4
552 ## Configuration Options: enableHttpsConnection=true
553 ## NOTE : Authentication is not enabled as we are only verifying
554 ## if SSL based IPv6 connections are working correctly. The osinfo
555 ## client requires a password to be passed for a remote connection
556 ## otherwise it will prompt for one. As a work around,
557 ## we are providing a dummy password.
559 ###############################################################################
560 SSL_IPV4_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
561 enableAuthentication=false
562 SSL_IPV4_TS1_CMD_1 = \
563 osinfo -s -w notapassword -h 127.0.0.1 -p 5989
564 SSL_IPV4_TS1_CMD_2 = \
565 osinfo -s -w notapassword -h localhost -p 5989
567 ifdef PEGASUS_HAS_SSL
568 run_SSL_IPV4_TS1: FORCE
569 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
570 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
571 TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_1)"
572 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
573 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV4_TS1_CONFIG_OPTIONS)" \
574 TESTSUITE_CMDS="$(SSL_IPV4_TS1_CMD_2)"
576 run_SSL_IPV4_TS1: FORCE
577 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV4_TS1"
580 ###############################################################################
581 ## SSL IPv6 Test Suite : Tests SSL connections for IPv6
583 ## Configuration Options: enableHttpsConnection=true
584 ## NOTE : Authentication is not enabled as we are only verifying
585 ## if SSL based IPv6 connections are working correctly. The osinfo
586 ## client requires a password to be passed for a remote connection
587 ## otherwise it will prompt for one. As a work around,
588 ## we are providing a dummy password.
590 ## The IPv4-mapped IPv6 address test is only enabled for unix
591 ## platforms as Windows does not support IPv4-mapped IPv6 addresses
592 ## on certain versions.
594 ###############################################################################
595 SSL_IPV6_TS1_CONFIG_OPTIONS = enableHttpsConnection=true \
596 enableAuthentication=false
597 SSL_IPV6_TS1_CMD_1 = \
598 osinfo -s -w notapassword -h ::1 -p 5989
599 SSL_IPV6_TS1_CMD_2 = \
600 osinfo -s -w notapassword -h ::ffff:127.0.0.1 -p 5989
602 ifdef PEGASUS_HAS_SSL
603 run_SSL_IPV6_TS1: FORCE
604 ifeq ($(PEGASUS_TEST_IPV6), true)
605 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
606 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
607 TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_1)"
608 ifeq ($(OS_TYPE), unix)
609 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
610 CIMSERVER_CONFIG_OPTIONS="$(SSL_IPV6_TS1_CONFIG_OPTIONS)" \
611 TESTSUITE_CMDS="$(SSL_IPV6_TS1_CMD_2)"
614 @ $(ECHO) "+++++ PEGASUS_TEST_IPV6 not defined: Skipping run_SSL_IPV6_TS1"
617 run_SSL_IPV6_TS1: FORCE
618 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_IPV6_TS1"
621 ###############################################################################
622 ## CBA SSL Test Suite 1: Certificate based authentication Tests
624 ## Configuration Options: enableAuthentication=true
625 ## enableHttpsConnection=true
626 ## sslClientVerificationMode=optional
627 ## sslTrustStoreUserName=$(CURRENT_USER)
629 ###############################################################################
630 SSL_CBA_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
631 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
632 SSL_CBA_TS1_TEST_CMD_1 = \
633 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimtrust/tests@@SSLCertificateTest1
634 SSL_CBA_TS1_TEST_CMD_2 = \
635 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/cimcrl/tests@@SSLCRLTest1
637 ifdef PEGASUS_HAS_SSL
638 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
639 run_SSL_CBA_TS1: FORCE
640 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
641 CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
642 TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_1)"
643 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
644 CIMSERVER_CONFIG_OPTIONS="$(SSL_CBA_TS1_CONFIG_OPTIONS)" \
645 TESTSUITE_CMDS="$(SSL_CBA_TS1_TEST_CMD_2)"
647 run_SSL_CBA_TS1: FORCE
648 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_CBA_TS1"
651 run_SSL_CBA_TS1: FORCE
652 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_CBA_TS1"
656 ############################################################################
658 # Create_SSL_Certificate
660 # create a certificate that can be used for certification testing.
661 # It is currently used by the following tests:
664 Create_SSL_Certificate_ignore: FORCE
665 -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
667 Create_SSL_Certificate: FORCE
668 ifdef PEGASUS_HAS_SSL
669 ifdef PEGASUS_TEST_USER_DEFINED
670 $(ECHO) "Creating SSL certificate for test"
671 cimtrust -a -U $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem -Ts
674 $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
677 ###############################################################################
678 ## G11N Test Suite 1: Globalization Tests
680 ## Configuration Options: forceProviderProcesses=false
682 ###############################################################################
683 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
684 G11N_TS1_TEST_CMDS = \
685 $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
689 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
690 CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
691 TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
693 ###############################################################################
694 ## Stress Test Suite 1: Default Stress Tests
696 ## Configuration Options: (none)
698 ###############################################################################
699 STRESS_TS1_CONFIG_OPTIONS =
700 STRESS_TS1_TEST_CMDS = \
701 TestStressTestController
704 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
705 CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
706 TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
707 ###############################################################################
709 ###############################################################################
710 ## SDK Test Suite 1: SDK Tests
712 ## Configuration Options: (none)
714 ###############################################################################
715 SDK_TS1_CONFIG_OPTIONS =
716 SDK_TS1_TEST_CMDS = \
717 $(MAKE) --directory $(PEGASUS_ROOT)/src/SDK/samples \
720 ifeq ($(PEGASUS_TEST_SDK),true)
722 $(MAKE) --directory=$(PEGASUS_ROOT)/mak \
723 -f $(PEGASUS_ROOT)/mak/SDKMakefile stageINCLUDE \
724 PEGASUS_STAGING_DIR=$(PEGASUS_HOME) \
725 PEGASUS_INCLUDE_DIR=/include
726 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
728 $(MAKE) --directory=$(PEGASUS_ROOT)/src/SDK/samples \
729 -f Makefile PEGASUS_INCLUDE_DIR=$(PEGASUS_HOME)/include
730 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
731 CIMSERVER_CONFIG_OPTIONS="$(SDK_TS1_CONFIG_OPTIONS)" \
732 TESTSUITE_CMDS="$(SDK_TS1_TEST_CMDS)"
735 @ $(ECHO) "+++++ PEGASUS_TEST_SDK is not true: Skipping run_SDK_TS1"
737 ###############################################################################
739 ###############################################################################
740 ## Export Client SSL Test Suite 1:
742 ## Configuration Options: enableHttpsConnection=true
744 ###############################################################################
745 ExportClientSSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true
746 ExportClientSSL_TS1_TEST_CMDS = \
747 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/ExportClient/tests/ExportClient@@-f@@Makefile@@runExportClientSSL_TS1
749 ifdef PEGASUS_HAS_SSL
750 run_ExportClientSSL_TS1:
751 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
752 CIMSERVER_CONFIG_OPTIONS="$(ExportClientSSL_TS1_CONFIG_OPTIONS)" \
753 TESTSUITE_CMDS="$(ExportClientSSL_TS1_TEST_CMDS)"
755 run_ExportClientSSL_TS1: FORCE
756 @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_ExportClientSSL_TS1"
759 ###############################################################################
763 ###############################################################################
764 ## idleConnectionTimeout Test Suite 1: uses ChunkingStressProvider Tests
766 ## Configuration Options: idleConnectionTime=55
768 ###############################################################################
769 IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS = idleConnectionTimeout=55
770 IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS = \
771 $(MAKE)@@--directory \
772 $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \
773 -f@@Makefile@@poststarttests
774 run_idleConnectionTimeout1: FORCE
775 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
776 CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \
777 TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_1_TEST_CMDS)"
778 ###############################################################################
781 ###############################################################################
782 ## idleConnectionTimeout Test Suite 2: uses IdleConnectionTimeout client test
784 ## Configuration Options: idleConnectionTime=6
786 ###############################################################################
787 IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS = idleConnectionTimeout=6
788 IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS = \
789 $(MAKE)@@--directory \
790 $(PEGASUS_ROOT)/src/Pegasus/Client/tests/IdleConnectionTimeout/ \
791 -f@@Makefile@@timeoutTest@@IDLETIME=10
792 run_idleConnectionTimeout2: FORCE
793 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
794 CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_2_CONFIG_OPTIONS)" \
795 TESTSUITE_CMDS="$(IDLE_CONNECTION_TIMEOUT_2_TEST_CMDS)"
796 ###############################################################################
799 ###############################################################################
800 ## cimsub CLI Test Suite 1: PG_InterOp Tests
802 ## Configuration Options: (none)
804 ###############################################################################
805 CIMSUB_INTEROP_CONFIG_OPTIONS =
806 CIMSUB_INTEROP_TEST_CMDS = \
807 $(MAKE) --directory \
808 $(PEGASUS_ROOT)/src/Clients/cimsub/tests/testscriptInterOp \
809 -f Makefile cimsubTest_InterOp
810 run_Cimsub_InterOp: FORCE
811 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
812 CIMSERVER_CONFIG_OPTIONS="$(CIMSUB_INTEROP_CONFIG_OPTIONS)" \
813 TESTSUITE_CMDS="$(CIMSUB_INTEROP_TEST_CMDS)"
814 ###############################################################################
816 ###############################################################################
817 ## CMPI subscription activation Test Suite 1:
819 ## Configuration Options: (none)
821 ###############################################################################
822 CMPI_SUB_TEST_CONFIG_OPTIONS=
823 CMPI_SUBa_TEST_CMDS = \
824 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider setup WQL
825 CMPI_SUBb_TEST_CMDS = \
826 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider getSubscriptionCount
827 CMPI_SUBc_TEST_CMDS = \
828 TestIndicationStressTest TestCMPI_IndicationStressTestClass test/TestProvider cleanup
830 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
831 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
832 TESTSUITE_CMDS="$(CMPI_SUBa_TEST_CMDS)"
833 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
834 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
835 TESTSUITE_CMDS="$(CMPI_SUBb_TEST_CMDS)"
836 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
837 CIMSERVER_CONFIG_OPTIONS="$(CMPI_SUB_TEST_CONFIG_OPTIONS)" \
838 TESTSUITE_CMDS="$(CMPI_SUBc_TEST_CMDS)"
840 ##############################################################################
843 ##############################################################################
845 ## TestXMLRepository rule is used to run the poststarttests suite on
846 ## the XML Repository built using cimmofl
848 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
849 ## the XML Repository built using cimmof
851 ## TestXMLCmpRepository rule is used to run the poststarttest suite on
852 ## the XML Compressed Repository built using cimmofl
855 ############################
860 TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo
861 @ $(ECHO) TestXMLRepository +++++ passed all test
863 ############################
865 ## TestXMLRepositoryServer
867 TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo
868 @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
870 ############################
872 ## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository
874 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
875 TestXMLCmpRepository: FORCE
876 @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
877 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
880 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
882 TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
883 @ $(ECHO) TestXMLCmpRepository +++++ passed all test
885 TestXMLCmpRepository: FORCE
886 @ $(ECHO) TestXMLCmpRepository +++++ Not tested
887 @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
888 @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
892 ###########################
897 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
898 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
901 ###########################
903 ## TestXMLStartServer
905 TestXMLStartServer: FORCE
906 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
907 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
908 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
912 #### The following caused the cimserver to fail on startup
914 #### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
916 ###########################
920 TestXMLBuildRepo: FORCE
921 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
922 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
925 ###########################
927 ## TestXMLBuildRepoServ
929 TestXMLBuildRepoServ: TestXMLStartServer
930 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
931 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
932 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
935 ###########################
939 TestXMLRepo: servertestsclean
940 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
941 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
942 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
949 ##############################################################################
951 ## TestBinRepository rule is used to run the poststarttests suite on
952 ## the Binary Repository built using cimmofl
954 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
955 ## the Binary Repository built using cimmof
957 ## TestBinCmpRepository rule is used to run the poststarttest suite on
958 ## the Binry Compressed Repository built using cimmofl
961 ############################
965 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
966 ### the nightly tests to run
968 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
969 @ $(ECHO) TestBinRepository +++++ passed all test
972 ############################
974 ## TestBinRepositoryServer
976 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
977 @ $(ECHO) TestBinRepositoryServer +++++ passed all test
979 ############################
981 ## TestBinCmpRepository - run poststarttest on Compressed BIN Repository
983 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
984 TestBinCmpRepository: FORCE
985 @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
986 @ $(ECHO) TestBinCmpRepository +++++ passed all test
989 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
991 TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
992 @ $(ECHO) TestBinCmpRepository +++++ passed all test
994 TestBinCmpRepository: FORCE
995 @ $(ECHO) TestBinCmpRepository +++++ Not tested
996 @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
997 @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true
1002 ###########################
1007 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1008 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
1011 ###########################
1013 ## TestBinStartServer
1015 TestBinStartServer: FORCE
1016 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
1017 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
1018 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
1021 ###########################
1025 TestBinBuildRepo: FORCE
1026 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1027 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1030 ###########################
1032 ## TestBinBuildRepoServ
1034 TestBinBuildRepoServ: TestBinStartServer
1035 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1036 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1037 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1040 ###########################
1044 TestBinRepo: servertestsclean
1045 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
1046 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
1047 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1052 ############################
1054 ## TestCmpBuild - used to compile the repository for compression
1057 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1058 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1059 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
1062 ############################
1064 ## TestRegBuild - used to compile the repository for no compression
1067 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
1068 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend
1069 @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository
1072 ###############################################################################
1074 ## Trace Configuration
1076 ## Options: see usagetrace rule
1078 ###############################################################################
1082 $(USAGE)"TestMakefile Trace Commands: "
1083 $(USAGE)" The cimserver must be running when using W=c which is the default for W"
1085 $(USAGE)" traceon W=[current/planned(c,p): Enables all tracing."
1086 $(USAGE)" traceoff W=[current/planned(c,p): Disables all tracing."
1087 $(USAGE)" tracesettings: Displays all trace settings."
1088 $(USAGE)" tracecomp: Displays a trace componenets list."
1089 $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
1090 $(USAGE)" Enables tracing on component C at trace level L."
1092 $(USAGE)" W defaults to c in the above commands where W can be specified"
1094 $(USAGE)" Usage examples:"
1095 $(USAGE)" traceon turns on trace in current server config"
1096 $(USAGE)" traceon W=c turns on trace in current server config"
1097 $(USAGE)" traceon W=p turns on trace in planned server config"
1098 $(USAGE)" traceoff turns on trace in current server config"
1099 $(USAGE)" traceoff W=c turns on trace in current server config"
1100 $(USAGE)" traceoff W=p turns on trace in planned server config"
1102 $(USAGE)" traceon-CL C=DiscardedData L=3 W=c"
1103 $(USAGE)" Turns on trace for DiscardedData at level 3 in current server config"
1104 $(USAGE)" traceon-CL C=DiscardedData L=3 W=p"
1105 $(USAGE)" Turns on trace for DiscardedData at level 3 in planned server config"
1110 @ cimconfig -s traceComponents=ALL -$W
1111 @ cimconfig -s traceLevel=3 -$W
1112 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
1116 @ cimconfig -s traceComponents= -$W
1117 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
1120 tracesettings: FORCE
1122 cimconfig -g traceComponents -c -p
1124 cimconfig -g traceLevel -c -p
1126 cimconfig -g traceFilePath -c -p
1130 @ cimconfig -s traceComponents=$C -$W
1131 @ cimconfig -s traceLevel=$L -$W
1132 $(MAKE) -f $(ROOT)/TestMakefile tracesettings
1136 $(USAGE)"Trace component list:"
1145 $(USAGE)"ProvManager"
1146 $(USAGE)"Repository"
1147 $(USAGE)"Dispatcher"
1148 $(USAGE)"OsAbstraction"
1150 $(USAGE)"IndDelivery"
1151 $(USAGE)"IndHandler"
1152 $(USAGE)"Authentication"
1153 $(USAGE)"Authorization"
1154 $(USAGE)"UserManager"
1155 $(USAGE)"SubscriptionService"
1156 $(USAGE)"Registration"
1159 $(USAGE)"IndicationService"
1160 $(USAGE)"IndicationServiceInternal"
1161 $(USAGE)"ConfigurationManager"
1162 $(USAGE)"MessageQueueService"
1163 $(USAGE)"ProviderManager"
1164 $(USAGE)"ObjectResolution"
1168 $(USAGE)"MetaDispatcher"
1170 $(USAGE)"IndicationHandlerService"
1171 $(USAGE)"CIMExportRequestDispatcher"
1174 $(USAGE)"ControlProvider"
1175 $(USAGE)"AsyncOpNode"
1176 $(USAGE)"CIMOMHandle"
1178 $(USAGE)"ExportClient"
1180 $(USAGE)"DiscardedData"
1181 $(USAGE)"ProviderAgent"
1184 ###############################################################################
1186 ## Trace Configuration - Old rules being deprecated
1189 ## XMLTraceOn: Enables XML request and response tracing.
1190 ## ProviderLoadTraceOn: Enables Provider load tracing.
1191 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
1193 ## AllTraceOn: Enables all tracing.
1194 ## AllTraceOff: Disables all tracing.
1195 ## list: Lists trace settings.
1197 ###############################################################################
1200 cimconfig -s traceComponents=XmlIO -c
1201 cimconfig -s traceLevel=3 -c
1202 cimconfig -g traceComponents
1203 cimconfig -g traceLevel
1205 ProviderLoadTraceOn:
1206 cimconfig -s traceComponents=ProvManager,OsAbstraction
1207 cimconfig -s traceLevel=3 -c
1208 cimconfig -g traceComponents
1209 cimconfig -g traceLevel
1211 XML+ProviderLoadTraceOn:
1212 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
1213 cimconfig -s traceLevel=3 -c
1214 cimconfig -g traceComponents
1215 cimconfig -g traceLevel
1219 AllTraceOff: traceoff
1223 #########################################################################
1226 # More testing options...
1228 # The standard test seem to contain additional test that may not be able
1229 # to run on all platforms so they have been grouped here for now rather than
1230 # being included in the serversuite rule.
1236 # TestRemoteSecurity
1239 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
1242 # NOTE: The TestNoSecurity step runs the servertests which builds the
1243 # the repository that is then left in place for the remaining tests.
1244 # The cimof test must be before the TestNosecurity step as it removes
1245 # the repository builds a new one with cimmofl and another one with
1246 # cimmof and then compares them.
1248 # NOTE: The Authentication test is comprised of EnableAuthentication,
1249 # TestLocalSecurity and TestRemoteSecurity.
1251 # NOTE: The Authorization test is comprised of EnableAuthorization and
1252 # TestAuthorization.
1254 # NOTE: The EnableAuthentication and EnableAuthorization steps require
1255 # root access. Pegasus doesn't currently have the infrastructure
1256 # in place to run the server as root and run the test as non-root.
1257 # Rather than run everything, server, tests, providers, clients etc.
1258 # as root many testers prefer to run the tests as non-root. Setting
1259 # PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to
1263 standardtests: FORCE
1264 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
1265 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
1266 # $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
1267 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository testrepository
1268 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
1269 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
1270 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
1271 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
1272 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
1273 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
1275 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
1276 @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization "
1278 # Reset the security options to the defaults
1279 cimconfig -u enableNamespaceAuthorization -p
1280 cimconfig -u enableAuthentication -p
1281 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1282 @ $(ECHO) "+++++ TestMakefile standardtests complete"
1285 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
1286 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1287 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1290 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1291 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
1294 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1295 $(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
1298 TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1299 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1300 TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1301 $(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
1304 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1305 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1306 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1307 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1308 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1309 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1312 # Build the repository with cimmofl and cimmof and compare them.
1313 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1314 -@$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-save
1315 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1316 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1317 @$(ECHO) $(CIM_SCHEMA_DIR)
1318 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1319 @$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmofl
1320 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
1321 @$(ECHO) $(CIM_SCHEMA_DIR)
1322 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
1323 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1324 @$(MOVE) $(REPOSITORY_DIR)/repository $(REPOSITORY_DIR)/repository-cimmof
1325 -@$(MOVE) $(REPOSITORY_DIR)/repository-save $(REPOSITORY_DIR)/repository
1326 TestCompareRepositories $(REPOSITORY_DIR)/repository-cimmofl $(REPOSITORY_DIR)/repository-cimmof
1327 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmofl
1328 @$(RMREPOSITORY) $(REPOSITORY_DIR)/repository-cimmof
1334 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1335 cimconfig -s enableAuthentication=false -p
1336 cimconfig -s enableNamespaceAuthorization=false -p
1339 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1340 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1341 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1343 EnableAuthentication:
1344 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1345 cimconfig -s enableAuthentication=true -p
1346 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1347 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1349 EnableAuthorization:
1350 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1351 cimconfig -s enableNamespaceAuthorization=true -p
1352 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1353 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1356 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1357 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1362 # The server must be running prior to invoking this rule
1365 ifndef PEGASUS_PAM_AUTHENTICATION
1367 -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1371 # ConfigureAuthorizations rule
1373 # The server must be running prior to invoking this rule
1375 ConfigureAuthorizations:
1376 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1377 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1378 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1379 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1380 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1381 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1382 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1383 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1384 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1385 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/A -R -W
1386 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/MCCAtest/B -R -W
1387 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1388 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1389 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1390 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1391 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1392 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1393 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1394 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1395 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1396 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1397 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1398 cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1399 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1400 cimauth -a -u $(PEGASUS_CIMSERVERMAIN_USER) -n root/cimv2 -R -W
1403 startcimWithoutSSL: FORCE
1404 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1407 startcimWithSSL: FORCE
1408 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1411 ###############################################################################
1413 ## check_for_cores - used to search for core files in the build environment.
1415 ## This option will search (1) each source directory, (2) the PEGASUS_CORE_DIR
1416 ## if it is defined and (3) the PEGASUS_TMP directory.
1418 ###############################################################################
1419 CORE_FILE_LIST = $(PEGASUS_HOME)/CoreFileList
1421 check_core_search_results:
1422 ifneq ($(wildcard $(CORE_FILE_LIST)), )
1423 @$(ECHO) "*** One or more core files found. ***"
1424 @$(CAT) $(CORE_FILE_LIST)
1428 ifdef PEGASUS_CORE_DIR
1429 CORE_FILES_IN_CORE_DIR = \
1430 $(wildcard $(PEGASUS_CORE_DIR)/$(PLATFORM_CORE_PATTERN))
1433 CORE_FILES_IN_TMP_DIR = \
1434 $(wildcard $(PEGASUS_TMP)/$(PLATFORM_CORE_PATTERN))
1437 generate_core_file_list:
1438 @$(RM) $(CORE_FILE_LIST)
1439 @$(MAKE) -s directory=$(PEGASUS_ROOT) general OPTION=CORE_SEARCH \
1440 CORE_FILE_LIST=$(CORE_FILE_LIST)
1441 ifdef PEGASUS_CORE_DIR
1442 ifneq ($(CORE_FILES_IN_CORE_DIR), )
1443 @$(ECHO) $(CORE_FILES_IN_CORE_DIR) >> $(CORE_FILE_LIST)
1447 ifneq ($(CORE_FILES_IN_TMP_DIR), )
1448 @$(ECHO) $(CORE_FILES_IN_TMP_DIR) >> $(CORE_FILE_LIST)
1453 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1454 generate_core_file_list
1455 @$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile \
1456 check_core_search_results
1458 ###############################################################################
1460 ## option_summary - used to generate a concise list of build options for use in
1461 ## a nightly build status report. This is not intended to be a complete list,
1462 ## so it is likely that some options are omitted. New options may be added
1463 ## here as needs dictate.
1465 ###############################################################################
1468 ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true)
1469 OPTION_SUMMARY += "+CMPI"
1471 ifeq ($(PEGASUS_ENABLE_CQL),true)
1472 OPTION_SUMMARY += "+CQL"
1474 ifeq ($(PEGASUS_HAS_ICU),true)
1475 OPTION_SUMMARY += "+ICU"
1477 ifeq ($(PEGASUS_ENABLE_IPV6),true)
1478 OPTION_SUMMARY += "+IPv6"
1480 ifeq ($(PEGASUS_ENABLE_JMPI_PROVIDER_MANAGER),true)
1481 OPTION_SUMMARY += "+JMPI"
1483 ifeq ($(PEGASUS_ENABLE_PRIVILEGE_SEPARATION),true)
1484 OPTION_SUMMARY += "+PrivSep"
1486 ifdef PEGASUS_ENABLE_EXECQUERY
1487 OPTION_SUMMARY += "+Query"
1489 ifdef PEGASUS_ENABLE_REMOTE_CMPI
1490 OPTION_SUMMARY += "+RCMPI"
1492 ifeq ($(PEGASUS_ENABLE_SLP),true)
1493 OPTION_SUMMARY += "+SLP"
1495 ifeq ($(PEGASUS_USE_SQLITE_REPOSITORY),true)
1496 OPTION_SUMMARY += "+SQLite"
1498 ifdef PEGASUS_HAS_SSL
1499 OPTION_SUMMARY += "+SSL"
1501 ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true)
1502 OPTION_SUMMARY += "+WSMan"
1506 @$(ECHO) "$(OPTION_SUMMARY)"