BUG#: 5094
[tpot/pegasus/.git] / TestMakefile
1 #//%2006////////////////////////////////////////////////////////////////////////
2 #//
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.
13 #//
14 #// Permission is hereby granted, free of charge, to any person obtaining a copy
15 #// of this software and associated documentation files (the "Software"), to
16 #// deal in the Software without restriction, including without limitation the
17 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18 #// sell copies of the Software, and to permit persons to whom the Software is
19 #// furnished to do so, subject to the following conditions:
20 #// 
21 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #//
30 #//==============================================================================
31 ###############################################################################
32 ##
33 ## Test Makefile for Pegasus CIMOM
34 ##
35 ## see the usage rule for documentation of rules etc.
36 ##
37 ##
38 ###############################################################################
39
40 error:
41         @ $(ECHO) "Specify desired makefile option (i.e., unittests, usage )"
42
43 include $(PEGASUS_ROOT)/mak/config.mak
44 include $(PEGASUS_ROOT)/mak/test.mak
45 include $(PEGASUS_ROOT)/mak/commands.mak
46
47 system = localhost
48
49 .PHONY: FORCE
50
51 FORCE:
52
53 usage: FORCE
54         $(USAGE)
55         $(USAGE)"TestMakefile Primary Targets:"
56         $(USAGE)
57         $(USAGE)"The following are all standalone tests. They stop and start the server,"
58         $(USAGE)"and build repositories as needed."
59         $(USAGE)
60         $(USAGE)"alltests           - Execute unittests and servertests"
61         $(USAGE)"unittests          - Execute the unit functional tests - no repository"
62         $(USAGE)"                     or active server is required"
63         $(USAGE)"servertests        - Execute a basic server test suites (No security, No SSL)"
64         $(USAGE)"standardtests      - Execute an extended server test suites "
65         $(USAGE)"                     using multiple options."
66         $(USAGE)"serverquicktests   - Executes a brief server test"
67         $(USAGE)"perftests          - Executes a brief server performance test"
68         $(USAGE)
69         $(USAGE)"usage2             - usage on secondary test targets"
70         $(USAGE)"usagetrace         - usage on trace targets"
71         $(USAGE)"stresstests        - Execute the default stress test suite"
72         $(USAGE)
73
74 usage2: FORCE
75         $(USAGE)
76         $(USAGE)"TestMakefile Secondary Targets:"
77         $(USAGE)
78         $(USAGE)"The following are run as part of the Primary target test suites and may"
79         $(USAGE)"also be invoked as standalone tests."
80         $(USAGE)
81         $(USAGE)"TestXMLRepository       - Executes poststarttests on XML repository"
82         $(USAGE)"                          built with cimmofl."
83         $(USAGE)"TestXMLRepositoryServer - Executes poststarttests on XML repository" 
84         $(USAGE)"                          built with cimmof."
85         $(USAGE)"TestXMLCmpRepository    - Executes poststarttests on XML compressed"
86         $(USAGE)"                          repository built with cimmofl."
87         $(USAGE)"TestBinRepository       - Executes poststarttests on binary repository "
88         $(USAGE)"                          built with cimmofl."
89         $(USAGE)"TestBinRepositoryServer - Executes poststarttests on binary repository"
90         $(USAGE)"                          built with cimmof."
91         $(USAGE)"TestBinCmpRepository    - Executes poststarttests on binary compressed"
92         $(USAGE)"                          repository built with cimmofl."
93         $(USAGE)
94         $(USAGE)"The following require the repository to be pre-built."
95         $(USAGE)
96         $(USAGE)"run_SSL_TS1             - Executes the SSL tests"
97         $(USAGE)"run_OOP_TS1             - Executes the Out Of Process Provider tests"
98         $(USAGE)"run_G11N_TS1            - Executes the Globalization tests"
99         $(USAGE)
100         $(USAGE)"The following require the repository to be pre-built and the server to be started."
101         $(USAGE)
102         $(USAGE)"serversuite             - the collection of test run by the servertests rule"
103         $(USAGE)"serverquicksuite        - The collection of test run by the serverquicktests rule"
104         $(USAGE)"run_STRESS_TS1          - Executes the stresstests"
105         $(USAGE)
106
107
108 ##########################################################
109 #
110 # rules that are defined in Makefile
111 #
112 ##########################################################
113
114 build: FORCE
115         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile build
116
117 world: FORCE
118         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile world
119
120 new: FORCE
121         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile new
122
123 clean: FORCE
124         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
125
126 depend: FORCE
127         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
128
129
130 ############################################################
131 #
132 # rules defined here
133 #
134 ############################################################
135
136 ##
137 ## Although the macros CIMSERVER_STOP_SERVICE and CIMSERVER_START_SERVICE
138 ## are available and could be invoked directly, their direct usage is
139 ## discouraged in favor of invoking the cimstop and the cimstart rules
140 ## as this allows one place where additional checks, delays etc may be 
141 ## added in the future to control or further test the servers performance
142 ## in executing these commands.
143 ##
144
145 #######################
146 #
147 # doc
148 #
149 doc:
150         $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
151         $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
152
153
154 #######################
155 #
156 # repositoryServer
157 #
158 repositoryServer: FORCE
159         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
160         $(SLEEP) 5
161         $(RMDIRHIER) $(REPOSITORY_ROOT)
162         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
163         $(SLEEP) 5
164         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
165         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
166
167 ######################
168 #
169 # prestarttests is being deprecated since poststarttest is being deprecated
170 # in favor of name more related to its intended functionality. 
171 #
172 prestarttests: prestarttests_msg shortsleep unittests
173
174 prestarttests_msg: FORCE
175         @$(ECHO) "=============================================================================="
176         @$(ECHO) "TestMakefile: The \"prestarttests\" rule is being deprecated."
177         @$(ECHO) "              Use \"make testusage\" for a description of the usage model."   
178         @$(ECHO) "              The equivalent new rule is \"unittests\"."  
179         @$(ECHO) "              Invoking the \"unittests\" rule now."
180         @$(ECHO) "=============================================================================="
181
182 ####################
183 #
184 # poststarttests is being deprecated since it multiply defines a 
185 # recursive make rule leading to ambuguity and confusion.
186 #
187 poststarttests: poststarttests_msg shortsleep servertests 
188
189 poststarttests_msg: FORCE
190         @$(ECHO) "==============================================================================="
191         @$(ECHO) "TestMakefile: The \"posstarttests\" rule is being deprecated.."  
192         @$(ECHO) "              Use \"make testusage\" for a description of the usage model."   
193         @$(ECHO) "              The equivalent new rule is \"servertests\"."  
194         @$(ECHO) "              Invoking the \"servertests\" rule now."
195         @$(ECHO) "==============================================================================="
196
197 #####################
198 #
199 # tests is being deprecated since it multiply defines a 
200 # recursive make rule leading to ambuguity and confusion.
201 #
202 tests: tests_msg shortsleep alltests
203
204 tests_msg: FORCE
205         @$(ECHO) "==================================================================="
206         @$(ECHO) "TestMakefile: The \"tests\" rule is being deprecated."
207         @$(ECHO) "              Use \"make testusage\" for a description of the usage model."   
208         @$(ECHO) "              The equivalent new rule is \"alltests\"."  
209         @$(ECHO) "              Invoking the \"alltests\" rule now."
210         @$(ECHO) "==================================================================="
211
212
213 shortsleep: FORCE
214         @$(SLEEP) 5
215
216 ####################
217 #
218 # unittests
219 #
220 unittests: FORCE
221         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
222         @ $(ECHO) "+++++ TestMakefile unittests complete"
223
224 #####################
225 #
226 # servertests
227 #
228
229 servertestsclean: FORCE
230         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
231         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
232         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
233         $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
234
235 servertestssetup: FORCE
236 ifdef PEGASUS_HAS_SSL
237 #
238 # The association between user names and certificates is stored in the 
239 # repository.  If the repository is recreated, we also need to re-initialize
240 # the trust store directories. Otherwise, the truststore content will be 
241 # out-of-sync with the mapping stored in the repository.
242 #
243         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile removeSSLTrustDirectories
244         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile createSSLTrustDirectories
245 endif
246         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
247         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
248         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart
249         $(SLEEP) 5
250         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
251         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
252
253
254 servertests: servertestsclean servertestssetup serversuite
255         @ $(ECHO) "+++++ TestMakefile servertests suites complete"
256
257 serversuite: FORCE
258         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
259         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository
260         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
261         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
262         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS1
263         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOPProvFail_TS2
264         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_INDSSL_TS1
265         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1
266         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_G11N_TS1
267
268 #####################
269 #
270 # stresstests
271 #
272 stresstests:
273         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_STRESS_TS1
274
275 ####################
276 #
277 # serverquicktests
278 #
279 serverquicktests: servertestsclean servertestssetup serverquicksuite
280         @ $(ECHO) "+++++ TestMakefile serverquicktests complete"
281
282 serverquicksuite: FORCE
283         $(PEGASUS_HOME)/bin/Client
284         $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
285         $(PEGASUS_HOME)/bin/TestClient
286
287 ####################
288 #
289 # perftests - simple performance test until we have better
290 #
291 # - Turns statistics on (uses TestInterop until we have better)
292 # - runs and times serverquicktests suite 
293 # - runs cimperf to displat the statistics
294 # - turns statistics off 
295 #
296 perftests: servertestsclean servertestssetup perfsuite
297
298 perfsuite: FORCE
299         $(PEGASUS_HOME)/bin/TestInterop on
300         $(TIME_CMD) $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests
301         @ $(ECHO) " "
302         $(TIME_CMD) $(PEGASUS_HOME)/bin/TestClient
303         @ $(ECHO) " "
304         $(TIME_CMD) $(PEGASUS_HOME)/bin/benchmarkTest
305         @ $(ECHO) " "
306         @ $(ECHO) " "
307         $(TIME_CMD) $(PEGASUS_HOME)/bin/cimperf
308         @ $(ECHO) " "
309         $(PEGASUS_HOME)/bin/TestInterop off
310
311
312 ####################
313 #
314 # alltests
315 #
316 alltests: unittests servertests
317 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
318         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
319         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
320 endif
321         @ $(ECHO) "+++++ TestMakefile alltests Complete"
322
323 ###############################################################################
324 ##  Test Suite Definitions
325 ###############################################################################
326
327 ###############################################################################
328 ##  OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests 
329 ##
330 ##  Configuration Options: forceProviderProcesses=true
331 ##
332 ##  If PEGASUS_DEFAULT_ENABLE_OOP is set, then tests are run with OOP disabled
333 ##  since tests have already been run with OOP enabled.
334 ##
335 ##
336 ###############################################################################
337 ifeq ($(PEGASUS_DEFAULT_ENABLE_OOP),true)
338 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
339 else
340 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
341 endif
342
343 OOP_TS1_TEST_CMDS = \
344         $(MAKE)@@--directory=$(PEGASUS_ROOT)@@Makefile@@-s@@poststarttests
345
346 run_OOP_TS1:
347         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
348             CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
349             TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
350
351 ###############################################################################
352
353 ###############################################################################
354 ##  IndInit Test Suite 1: IndicationService Initialization Tests 
355 ##
356 ##  Configuration Options: (none)
357 ##
358 ###############################################################################
359 IndInit_TS1_CONFIG_OPTIONS = 
360 IndInit_TS1a_TEST_CMDS = \
361         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
362 IndInit_TS1b_TEST_CMDS = \
363         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
364
365 run_IndInit_TS1:
366         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
367             CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
368             TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
369         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
370             CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
371             TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
372
373 ###############################################################################
374 ##  OOPProvFail Test Suite 1: OOP Provider Module Failure Tests
375 ##
376 ##  Configuration Options: forceProviderProcesses=true
377 ##  enableAuthentication=true, enableAuthentication=false
378 ##
379 ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
380 ##  suite is always run with OOP enabled.  This test suite causes a provider to
381 ##  exit.  Running this test suite with OOP disabled would cause the cimserver
382 ##  to exit and the test suite to fail.
383 ##
384 ##  NOTE: The test is run once with authentication enabled, and once without
385 ##  authentication enabled.
386 ##
387 ###############################################################################
388 OOPProvFail_TS1a_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
389 OOPProvFail_TS1b_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=false
390 OOPProvFail_TS1_TEST_CMDS = \
391         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS1
392
393 run_OOPProvFail_TS1:
394         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
395             CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1a_CONFIG_OPTIONS)" \
396             TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
397         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
398             CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS1b_CONFIG_OPTIONS)" \
399             TESTSUITE_CMDS="$(OOPProvFail_TS1_TEST_CMDS)"
400
401 ###############################################################################
402 ##  OOPProvFail Test Suite 2: OOP Provider Module Failure on IndicationService 
403 ##                            Initialization Tests
404 ##
405 ##  Configuration Options: forceProviderProcesses=true
406 ##                         enableAuthentication=true
407 ##
408 ##  NOTE: Regardless of the setting of PEGASUS_DEFAULT_ENABLE_OOP, this test
409 ##  suite is always run with OOP enabled.  This test suite causes a provider to
410 ##  exit.  Running this test suite with OOP disabled would cause the cimserver
411 ##  to exit and the test suite to fail.
412 ##
413 ###############################################################################
414 OOPProvFail_TS2_CONFIG_OPTIONS = forceProviderProcesses=true enableAuthentication=true
415 OOPProvFail_TS2a_TEST_CMDS = \
416         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2a
417 OOPProvFail_TS2b_TEST_CMDS = \
418         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/OOPModuleFailureProvider/testclient@@OOPProvFail_TS2b
419
420 run_OOPProvFail_TS2:
421         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
422             CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
423             TESTSUITE_CMDS="$(OOPProvFail_TS2a_TEST_CMDS)"
424         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
425             CIMSERVER_CONFIG_OPTIONS="$(OOPProvFail_TS2_CONFIG_OPTIONS)" \
426             TESTSUITE_CMDS="$(OOPProvFail_TS2b_TEST_CMDS)"
427
428 ###############################################################################
429 ##  Indication SSL Test Suite 1: Indication Testing over HTTPS
430 ##
431 ##  Configuration Options: (none)
432 ##
433 ###############################################################################
434 INDSSL_TS1a_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false
435 INDSSL_TS1a_TEST_CMDS = \
436         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationDisabled
437
438 INDSSL_TS1b_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true sslClientVerificationMode=required
439 INDSSL_TS1b_TEST_CMDS = \
440         $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient@@-f@@Makefile@@run_TS1_AuthenticationEnabled
441
442
443 ifdef PEGASUS_HAS_SSL
444 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
445 run_INDSSL_TS1: EnableUsers Create_SSL_Certificate_ignore
446         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
447             CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1a_CONFIG_OPTIONS)" \
448             TESTSUITE_CMDS="$(INDSSL_TS1a_TEST_CMDS)"
449         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
450             CIMSERVER_CONFIG_OPTIONS="$(INDSSL_TS1b_CONFIG_OPTIONS)" \
451             TESTSUITE_CMDS="$(INDSSL_TS1b_TEST_CMDS)"
452 else
453 run_INDSSL_TS1: FORCE
454         @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_INDSSL_TS1"     
455 endif
456 else
457 run_INDSSL_TS1: FORCE
458         @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_INDSSL_TS1"
459 endif
460
461
462 ###############################################################################
463  
464 ###############################################################################
465 ##  SSL Test Suite 1: SSL Tests
466 ##
467 ##  Configuration Options: enableAuthentication=true
468 ##                         enableHttpsConnection=true
469 ##                         sslClientVerificationMode=optional
470 ##                         sslTrustStoreUserName=$(CURRENT_USER)
471 ##
472 ###############################################################################
473 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
474        sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
475 SSL_TS1_TEST_CMDS = \
476        $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
477
478 ifdef PEGASUS_HAS_SSL
479 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
480 run_SSL_TS1: FORCE
481         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
482             CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
483             TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
484 else
485 run_SSL_TS1: FORCE
486         @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping run_SSL_TS1"        
487 endif
488 else
489 run_SSL_TS1: FORCE
490         @ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping run_SSL_TS1 poststarttest"
491
492 endif
493
494 ############################################################################
495
496 # Create_SSL_Certificate
497 #
498 # create a certificate that can be used for certification testing.
499 # It is currently used by the following tests:
500 #            -run_INDSSL_TS1
501 #
502 Create_SSL_Certificate_ignore: FORCE
503         -$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile Create_SSL_Certificate
504
505 Create_SSL_Certificate: FORCE
506 ifdef PEGASUS_HAS_SSL
507 ifdef PEGASUS_TEST_USER_DEFINED
508         $(ECHO) "Creating SSL certificate for test"
509         ssltrustmgr -a -c $(PEGASUS_TEST_USER_ID) -f $(PEGASUS_HOME)/server.pem
510 endif
511 else
512         $(ECHO) "PEGASUS_HAS_SSL not defined - Not Creating SSL certificate for test"
513 endif
514
515 ###############################################################################
516 ##  G11N Test Suite 1: Globalization Tests 
517 ##
518 ##  Configuration Options: forceProviderProcesses=false
519 ##
520 ###############################################################################
521 G11N_TS1_CONFIG_OPTIONS = forceProviderProcesses=false
522 G11N_TS1_TEST_CMDS = \
523         $(MAKE) --directory $(PEGASUS_ROOT)/src/Clients/g11ntest \
524             -f Makefile g11ntest
525
526 run_G11N_TS1:
527         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
528             CIMSERVER_CONFIG_OPTIONS="$(G11N_TS1_CONFIG_OPTIONS)" \
529             TESTSUITE_CMDS="$(G11N_TS1_TEST_CMDS)"
530
531 ###############################################################################
532 ##  Stress Test Suite 1:  Default Stress Tests
533 ##
534 ##  Configuration Options: (none)
535 ##
536 ###############################################################################
537 STRESS_TS1_CONFIG_OPTIONS =
538 STRESS_TS1_TEST_CMDS = \
539         TestStressTestController
540
541 run_STRESS_TS1:
542         $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
543             CIMSERVER_CONFIG_OPTIONS="$(STRESS_TS1_CONFIG_OPTIONS)" \
544             TESTSUITE_CMDS="$(STRESS_TS1_TEST_CMDS)"
545 ###############################################################################
546
547
548 ###############################################################################
549
550
551
552 ##############################################################################
553 ##
554 ## TestXMLRepository rule is used to run the poststarttests suite on
555 ## the XML Repository built using cimmofl
556 ##
557 ## TestXMLRepositoryServer rule is used to run the poststarttests suite on
558 ## the XML Repository built using cimmof
559 ##
560 ## TestXMLCmpRepository rule is used to run the poststarttest suite on 
561 ## the XML Compressed Repository built using cimmofl
562 ##
563
564 ############################
565 ##
566 ## TestXMLRepository
567 ##
568
569 TestXMLRepository: TestXMLClean TestXMLBuildRepo  TestXMLRepo
570         @ $(ECHO) TestXMLRepository +++++ passed all test
571
572 ############################
573 ##
574 ## TestXMLRepositoryServer
575 ##
576 TestXMLRepositoryServer: TestXMLClean  TestXMLBuildRepoServ TestXMLRepo
577         @ $(ECHO) TestXMLRepositoryServer +++++ passed all test
578
579 ############################
580 ##
581 ## TestXMLCmpRepository -  run poststarttest on Compressed BIN Repository
582 ##
583 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
584 TestXMLCmpRepository: FORCE
585         @ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test.
586         @ $(ECHO) TestXMLCmpRepository +++++ passed all test
587 else
588
589 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
590
591 TestXMLCmpRepository: TestXMLClean  TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild
592         @ $(ECHO) TestXMLCmpRepository +++++ passed all test
593 else
594 TestXMLCmpRepository: FORCE
595         @ $(ECHO) TestXMLCmpRepository +++++ Not tested 
596         @ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository
597         @ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
598 endif
599 endif
600
601 ###########################
602 ##
603 ## TestXMLClean
604 ##
605 TestXMLClean: FORCE
606         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
607         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml
608
609
610 ###########################
611 ##
612 ## TestXMLStartServer
613 ##
614 TestXMLStartServer: FORCE
615         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
616         - $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml
617         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml"
618         $(SLEEP) 5
619
620 ####
621 #### The following caused the cimserver to fail on startup
622 ####
623 ####    $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml"
624
625 ###########################
626 ##
627 ## TestXMLBuildRepo
628 ##
629 TestXMLBuildRepo: FORCE
630         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
631         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
632
633
634 ###########################
635 ##
636 ## TestXMLBuildRepoServ
637 ##
638 TestXMLBuildRepoServ: TestXMLStartServer
639         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
640         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
641         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
642
643
644 ###########################
645 ##
646 ## TestXMLRepo
647 ##
648 TestXMLRepo: servertestsclean
649         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer
650         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML
651         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
652
653
654
655
656
657
658 ##############################################################################
659 ##
660 ## TestBinRepository rule is used to run the poststarttests suite on
661 ## the Binary Repository built using cimmofl
662 ##
663 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
664 ## the Binary Repository built using cimmof
665 ##
666 ## TestBinCmpRepository rule is used to run the poststarttest suite on 
667 ## the Binry Compressed Repository built using cimmofl
668 ##
669
670 ############################
671 ##
672 ## TestBinRepository
673 ##
674 ### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow
675 ### the nightly tests to run
676
677 TestBinRepository: TestBinClean TestBinBuildRepo  TestBinRepo
678         @ $(ECHO) TestBinRepository +++++ passed all test
679
680
681 ############################
682 ##
683 ## TestBinRepositoryServer
684 ##
685 TestBinRepositoryServer: TestBinClean  TestBinBuildRepoServ TestBinRepo
686         @ $(ECHO) TestBinRepositoryServer +++++ passed all test
687
688 ############################
689 ##
690 ## TestBinCmpRepository -  run poststarttest on Compressed BIN Repository
691 ##
692 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY
693 TestBinCmpRepository: FORCE
694         @ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test.
695         @ $(ECHO) TestBinCmpRepository +++++ passed all test
696 else
697
698 ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST
699
700 TestBinCmpRepository: TestBinClean  TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild
701         @ $(ECHO) TestBinCmpRepository +++++ passed all test
702 else
703 TestBinCmpRepository: FORCE
704         @ $(ECHO) TestBinCmpRepository +++++ Not tested 
705         @ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository
706         @ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true 
707 endif
708 endif
709
710
711 ###########################
712 ##
713 ## TestBinClean
714 ##
715 TestBinClean: FORCE
716         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
717         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
718
719
720 ###########################
721 ##
722 ## TestBinStartServer
723 ##
724 TestBinStartServer: FORCE
725         $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
726         - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
727         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
728         $(SLEEP) 5
729
730 ###########################
731 ##
732 ## TestBinBuildRepo
733 ##
734 TestBinBuildRepo: FORCE
735         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
736         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
737
738
739 ###########################
740 ##
741 ## TestBinBuildRepoServ
742 ##
743 TestBinBuildRepoServ: TestBinStartServer
744         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
745         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
746         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
747
748
749 ###########################
750 ##
751 ## TestBinRepo
752 ##
753 TestBinRepo: servertestsclean 
754         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer
755         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
756         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop 
757
758
759
760
761 ############################
762 ##
763 ## TestCmpBuild - used to compile the repository for compression
764 ##
765 TestCmpBuild: FORCE
766         @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
767         @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
768         @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1
769
770
771 ############################
772 ##
773 ## TestRegBuild - used to compile the repository for no compression
774 ##
775 TestRegBuild: FORCE
776         @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean
777         @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend 
778         @ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository 
779
780
781 ###############################################################################
782 ##
783 ## Trace Configuration
784 ##
785 ## Options: see usagetrace rule
786 ##
787 ###############################################################################
788
789 usagetrace: FORCE
790         $(USAGE)
791         $(USAGE)"TestMakefile Trace Commands: "
792         $(USAGE)"  The cimserver must be running when using W=c which is the default for W"
793         $(USAGE)
794         $(USAGE)" traceon  W=[current/planned(c,p):   Enables all tracing."
795         $(USAGE)" traceoff W=[current/planned(c,p):   Disables all tracing."
796         $(USAGE)" tracesettings:                      Displays all trace settings."
797         $(USAGE)" tracecomp:                          Displays a trace componenets list."
798         $(USAGE)" traceon-CL C=[comp] L=[level(1,2,3,4)] W=[current/planned(c,p): "
799         $(USAGE)"                           Enables tracing on component C at trace level L."
800         $(USAGE)
801         $(USAGE)" W defaults to c in the above commands where W can be specified" 
802         $(USAGE)
803         $(USAGE)"  Usage examples:"
804         $(USAGE)"   traceon       turns on trace in current server config"
805         $(USAGE)"   traceon W=c   turns on trace in current server config"
806         $(USAGE)"   traceon W=p   turns on trace in planned server config"
807         $(USAGE)"   traceoff      turns on trace in current server config"
808         $(USAGE)"   traceoff W=c  turns on trace in current server config"
809         $(USAGE)"   traceoff W=p  turns on trace in planned server config"
810         $(USAGE)
811         $(USAGE)"   traceon-CL C=DiscardedData L=3 W=c"
812         $(USAGE)"     Turns on trace for DiscardedData at level 3 in current server config"
813         $(USAGE)"   traceon-CL C=DiscardedData L=3 W=p"
814         $(USAGE)"     Turns on trace for DiscardedData at level 3 in planned server config"
815         $(USAGE)
816         $(USAGE)
817
818 traceon: FORCE
819         @ cimconfig -s traceComponents=ALL -$W 
820         @ cimconfig -s traceLevel=3 -$W
821         $(MAKE) -f $(ROOT)/TestMakefile tracesettings
822
823
824 traceoff: FORCE
825         @ cimconfig -s traceComponents=  -$W
826         $(MAKE) -f $(ROOT)/TestMakefile tracesettings
827
828
829 tracesettings: FORCE
830         @ $(ECHO) " "
831         cimconfig -g traceComponents -c -p
832         @ $(ECHO) " "
833         cimconfig -g traceLevel -c -p
834         @ $(ECHO) " "
835         cimconfig -g traceFilePath -c -p
836         @ $(ECHO) " "
837
838 traceon-CL: FORCE
839         @ cimconfig -s traceComponents=$C -$W
840         @ cimconfig -s traceLevel=$L -$W
841         $(MAKE) -f $(ROOT)/TestMakefile tracesettings
842
843 tracecomp: FORCE
844         $(USAGE)
845         $(USAGE)"Trace component list:"
846         $(USAGE)
847         $(USAGE)"Channel"
848         $(USAGE)"XmlParser"
849         $(USAGE)"XmlWriter"
850         $(USAGE)"XmlReader"
851         $(USAGE)"XmlIO"
852         $(USAGE)"Http"
853         $(USAGE)"CimData"
854         $(USAGE)"ProvManager"
855         $(USAGE)"Repository"
856         $(USAGE)"Dispatcher"
857         $(USAGE)"OsAbstraction"
858         $(USAGE)"Config"
859         $(USAGE)"IndDelivery"
860         $(USAGE)"IndHandler"
861         $(USAGE)"Authentication"
862         $(USAGE)"Authorization"
863         $(USAGE)"UserManager"
864         $(USAGE)"SubscriptionService"
865         $(USAGE)"Registration"
866         $(USAGE)"Shutdown"
867         $(USAGE)"Server"
868         $(USAGE)"IndicationService"
869         $(USAGE)"IndicationServiceInternal"
870         $(USAGE)"ConfigurationManager"
871         $(USAGE)"MessageQueueService"
872         $(USAGE)"ProviderManager"
873         $(USAGE)"ObjectResolution"
874         $(USAGE)"WQL"
875         $(USAGE)"CQL"
876         $(USAGE)"Thread"
877         $(USAGE)"MetaDispatcher"
878         $(USAGE)"IPC"
879         $(USAGE)"IndicationHandlerService"
880         $(USAGE)"CIMExportRequestDispatcher"
881         $(USAGE)"Memory"
882         $(USAGE)"SSL"
883         $(USAGE)"ControlProvider"
884         $(USAGE)"AsyncOpNode"
885         $(USAGE)"CIMOMHandle"
886         $(USAGE)"BinaryMessageHandler"
887         $(USAGE)"L10N"
888         $(USAGE)"ExportClient"
889         $(USAGE)"Listener"
890         $(USAGE)"DiscardedData"
891         $(USAGE)"ProviderAgent"
892         $(USAGE)
893
894 ###############################################################################
895 ##
896 ## Trace Configuration - Old rules being deprecated
897 ##
898 ## Options:
899 ##      XMLTraceOn: Enables XML request and response tracing.
900 ##      ProviderLoadTraceOn: Enables Provider load tracing.
901 ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
902 ##                                 load tracing.
903 ##      AllTraceOn: Enables all tracing.
904 ##      AllTraceOff: Disables all tracing.
905 ##      list: Lists trace settings.
906 ##
907 ###############################################################################
908
909 XMLTraceOn:
910         cimconfig -s traceComponents=XmlIO -c
911         cimconfig -s traceLevel=3 -c
912         cimconfig -g traceComponents
913         cimconfig -g traceLevel
914
915 ProviderLoadTraceOn:
916         cimconfig -s traceComponents=ProvManager,OsAbstraction
917         cimconfig -s traceLevel=3 -c
918         cimconfig -g traceComponents
919         cimconfig -g traceLevel
920
921 XML+ProviderLoadTraceOn:
922         cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
923         cimconfig -s traceLevel=3 -c
924         cimconfig -g traceComponents
925         cimconfig -g traceLevel
926
927 AllTraceOn: traceon
928
929 AllTraceOff: traceoff
930
931 list: tracesettings
932
933 #########################################################################
934 # standardtests
935 #
936 # More testing options...
937 #
938 # The standard test seem to contain additional test that may not be able 
939 # to run on all platforms so they have been grouped here for now rather than
940 # being included in the serversuite rule.
941 #
942 # The test are:
943 #      TestCimmof
944 #      TestNoSecurity
945 #      TestLocalSecurity
946 #      TestRemoteSecurity
947 #      TestAuthorization
948 #
949 # NOTE: The TestsNoSecurity test is comprised of DisableSecurity and
950 #       TestNoSecurity.
951 #
952 # NOTE: The TestNoSecurity step runs the servertests which builds the
953 #       the repository that is then left in place for the remaining tests.
954 #       The cimof test must be before the TestNosecurity step as it removes
955 #       the repository builds a new one with cimmofl and another one with
956 #       cimmof and then compares them. 
957 #
958 # NOTE: The Authentication test is comprised of EnableAuthentication, 
959 #       TestLocalSecurity and TestRemoteSecurity. 
960 #
961 # NOTE: The Authorization test is comprised of EnableAuthorization and
962 #       TestAuthorization. 
963 #
964 # NOTE: The EnableAuthentication and EnableAuthorization steps require 
965 #       root access. Pegasus doesn't currently have the infrastructure
966 #       in place to run the server as root and run the test as non-root.
967 #       Rather than run everything, server, tests, providers, clients etc.
968 #       as root many testers prefer to run the tests as non-root. Setting
969 #       PEGASUS_DISABLE_PRIVILEGED_TESTS in the environment helps to 
970 #       facilitate that.
971 #
972
973 standardtests: FORCE
974         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
975         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
976         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
977 ifndef PEGASUS_DISABLE_PRIVILEGED_TESTS
978         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
979         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
980         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
981         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
982         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
983 else
984         @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthentication, TestLocalSecurity, and TestRemoteSecurity "
985         @ $(ECHO) "+++++ PEGASUS_DISABLE_PRIVILEGED_TESTS defined: Skipping EnableAuthorization and TestAuthorization " 
986 endif
987         @ $(ECHO) "+++++ TestMakefile standardtests complete"
988
989 TestNoSecurity:
990         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile servertests
991         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
992         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
993
994 TestLocalSecurity:
995         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
996         $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
997
998 TestRemoteSecurity:
999         TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1000         $(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
1001
1002 TestAuthorization:
1003         TestPegClientDeleteNamespace -a -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS)
1004         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
1005         TestClient -user $(PEGASUS_TEST_USER_ID) -password $(PEGASUS_TEST_USER_PASS) $(system):5988
1006         $(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
1007
1008 TestSubscriptions:
1009         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
1010         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
1011         $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
1012         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1013         $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
1014         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
1015
1016 TestCimmof:
1017         $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
1018
1019 RunTestClientLocal:
1020         TestClient -local
1021
1022 DisableSecurity:
1023         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1024         cimconfig -s enableAuthentication=false -p
1025         cimconfig -s enableNamespaceAuthorization=false -p
1026
1027 EnableUsers:
1028         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1029         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1030         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1031
1032 EnableAuthentication:
1033         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1034         cimconfig -s enableAuthentication=true -p
1035         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1036         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
1037
1038 EnableAuthorization:
1039         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1040         cimconfig -s enableNamespaceAuthorization=true -p
1041         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
1042         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
1043
1044 EnableSSL:
1045         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
1046         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
1047
1048 #
1049 # ConfigureUsers
1050 #
1051 # The server must be running prior to invoking this rule
1052 #
1053 ConfigureUsers:
1054 ifndef PEGASUS_PAM_AUTHENTICATION
1055         -cimuser -l
1056         -cimuser -a -u $(PEGASUS_TEST_USER_ID) -w $(PEGASUS_TEST_USER_PASS)
1057 endif
1058
1059 #
1060 # ConfigureAuthorizations rule
1061 #
1062 # The server must be running prior to invoking this rule
1063 #
1064 ConfigureAuthorizations:
1065         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W
1066         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W
1067         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W
1068         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W
1069         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W
1070         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W
1071         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W
1072         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/SampleProvider -R -W
1073         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root -R -W
1074         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/A -R -W
1075         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/test/B -R -W
1076         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/TestProvider -R -W
1077         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1 -R -W
1078         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test2 -R -W
1079         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test3 -R -W
1080         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test4 -R -W
1081         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test5 -R -W
1082         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test6 -R -W
1083         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2 -R -W
1084         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3 -R -W
1085         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4 -R -W
1086         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5 -R -W
1087         cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test1/test2/test3/test4/test5/test6 -R -W
1088
1089 startcimWithoutSSL: FORCE
1090         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart
1091         $(SLEEP) 5
1092
1093 startcimWithSSL: FORCE
1094         $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=false enableHttpsConnection=true"
1095         $(SLEEP) 5
1096