1 martin 1.32 #//%2005////////////////////////////////////////////////////////////////////////
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 #//
12 #// Permission is hereby granted, free of charge, to any person obtaining a copy
13 #// of this software and associated documentation files (the "Software"), to
14 #// deal in the Software without restriction, including without limitation the
15 #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 #// sell copies of the Software, and to permit persons to whom the Software is
17 #// furnished to do so, subject to the following conditions:
18 #//
19 #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 martin 1.32 #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #//
28 #//==============================================================================
|
29 kumpf 1.1 ###############################################################################
30 ##
31 ## Test Makefile for Pegasus CIMOM
32 ##
33 ## Options:
34 ## rebuild - Rebuild
|
35 david.dillard 1.15 ## build - Build
|
36 kumpf 1.1 ## prestarttests - Execute functional tests
37 ## poststarttests - Execute poststarttests (No security, No SSL)
38 ## tests - Execute prestarttests and poststarttests
39 ## standardtests - Execute poststartests and a series of
40 ## posstarttests using multiple options.
|
41 david.dillard 1.15 ##
|
42 kumpf 1.1 ###############################################################################
43
|
44 david.dillard 1.15 error:
45 @ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)"
|
46 kumpf 1.1
|
47 kumpf 1.23 include $(PEGASUS_ROOT)/mak/config.mak
48 include $(PEGASUS_ROOT)/mak/test.mak
49 include $(PEGASUS_ROOT)/mak/commands.mak
50
51 system = localhost
52
53 TESTS = prestarttests poststarttests
54
|
55 kumpf 1.25 rebuild: clean all tests
|
56 kumpf 1.21
|
57 kumpf 1.25 build: all tests
|
58 kumpf 1.21
59 clean:
60 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
61
|
62 kumpf 1.1 buildmu:
|
63 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
|
64 kumpf 1.19 $(MKDIRHIER) $(BIN_DIR)
|
65 kumpf 1.1
66 all: buildmu
|
67 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
68 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all
|
69 kumpf 1.1
70 doc:
|
71 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
72 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
73 kumpf 1.1
|
74 david.dillard 1.15 repositoryServer:
|
75 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
76 kumpf 1.19 $(SLEEP) 5
|
77 kumpf 1.1 $(RMDIRHIER) $(REPOSITORY_ROOT)
78 $(CIMSERVER_START_SERVICE)
|
79 kumpf 1.19 $(SLEEP) 5
|
80 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
81 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
82 mday 1.6
|
83 david.dillard 1.15 prestarttests:
|
84 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
85 kumpf 1.19 $(SLEEP) 5
|
86 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
87 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
88 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
89 kumpf 1.14 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
90 nag.boranna 1.27 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests -f Makefile test_setup
|
91 kumpf 1.1
|
92 jim.wunderlich 1.31 poststarttestsclean:
|
93 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
94 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
95 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
96 jim.wunderlich 1.31
97 poststarttests: poststarttestsclean
|
98 kumpf 1.1 $(CIMSERVER_START_SERVICE)
|
99 kumpf 1.19 $(SLEEP) 5
|
100 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
101 denise.eckstein 1.26 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
102 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
103 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
104 kumpf 1.1
105 tests: $(TESTS)
|
106 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
107 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
108 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
109 tony 1.5 endif
|
110 david.dillard 1.15 @ $(ECHO) Finished Tests
|
111 kumpf 1.1
112 ###############################################################################
|
113 denise.eckstein 1.18 ## Test Suite Definitions
114 ###############################################################################
115
116 ###############################################################################
117 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
118 ##
119 ## Configuration Options: forceProviderProcesses=true
120 ##
121 ###############################################################################
122 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
123 OOP_TS1_TEST_CMDS = \
124 TestClient
125
126 run_OOP_TS1:
|
127 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
128 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
129 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
130 ###############################################################################
131
132 ###############################################################################
|
133 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
134 ##
135 ## Configuration Options: (none)
136 ##
137 ###############################################################################
138 IndInit_TS1_CONFIG_OPTIONS =
139 IndInit_TS1a_TEST_CMDS = \
140 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
141 IndInit_TS1b_TEST_CMDS = \
142 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
143
144 run_IndInit_TS1:
145 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
146 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
147 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
148 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
149 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
150 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
151
152 ###############################################################################
|
153 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
154 ##
155 ## Configuration Options: enableAuthentication=true
156 ## enableHttpsConnection=true
157 ## sslClientVerificationMode=optional
158 ## sslTrustStoreUserName=$(CURRENT_USER)
159 ##
160 ###############################################################################
161 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
162 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
163 SSL_TS1_TEST_CMDS = \
164 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
165
166 run_SSL_TS1:
167 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
168 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
169 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
170 ###############################################################################
171
|
172 jim.wunderlich 1.29 ##############################################################################
173 ##
|
174 jim.wunderlich 1.31 ## TestBinRepository rule is used to run the poststarttests suite on
175 ## the Binary Reposiory built using cimmofl
|
176 jim.wunderlich 1.29 ##
|
177 jim.wunderlich 1.31 ## TestBinRepositoryServer rule is used to run the poststarttests suite on
178 ## the Binary Reposiory built using cimmof
|
179 jim.wunderlich 1.29 ##
|
180 jim.wunderlich 1.31
181 ############################
|
182 jim.wunderlich 1.29 ##
|
183 jim.wunderlich 1.31 ## TestBinRepository
|
184 jim.wunderlich 1.29 ##
|
185 jim.wunderlich 1.31 TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo
186 $(ECHO) TestBinRepository +++++ passed all test
|
187 jim.wunderlich 1.29
|
188 jim.wunderlich 1.31 ############################
189 ##
190 ## TestBinRepositoryServer
191 ##
192 TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo
193 $(ECHO) TestBinRepositoryServer +++++ passed all test
|
194 jim.wunderlich 1.29
|
195 jim.wunderlich 1.31 ###########################
196 ##
197 ## TestBinClean
198 ##
199 TestBinClean:
200 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
201 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
|
202 jim.wunderlich 1.29
|
203 jim.wunderlich 1.31
204 ###########################
|
205 jim.wunderlich 1.29 ##
|
206 jim.wunderlich 1.31 ## TestBinStartServer
|
207 jim.wunderlich 1.29 ##
|
208 jim.wunderlich 1.31 TestBinStartServer:
|
209 jim.wunderlich 1.30 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
210 jim.wunderlich 1.31 - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin
211 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
|
212 jim.wunderlich 1.29 $(SLEEP) 5
|
213 jim.wunderlich 1.31
214 ###########################
|
215 jim.wunderlich 1.29 ##
|
216 jim.wunderlich 1.31 ## TestBinBuildRepo
|
217 jim.wunderlich 1.29 ##
|
218 jim.wunderlich 1.31 TestBinBuildRepo:
|
219 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
220 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
221 jim.wunderlich 1.31
222
223 ###########################
224 ##
225 ## TestBinBuildRepoServ
226 ##
227 TestBinBuildRepoServ: TestBinStartServer
228 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
229 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
230 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
231
232
233 ###########################
234 ##
235 ## TestBinRepo
236 ##
237 TestBinRepo: poststarttestsclean TestBinStartServer
|
238 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
|
239 jim.wunderlich 1.31 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
240 jim.wunderlich 1.29
241
242
|
243 nag.boranna 1.27 ###############################################################################
|
244 kumpf 1.1 ##
245 ## Trace Configuration
246 ##
247 ## Options:
248 ## XMLTraceOn: Enables XML request and response tracing.
249 ## ProviderLoadTraceOn: Enables Provider load tracing.
250 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
251 ## load tracing.
252 ## AllTraceOn: Enables all tracing.
253 ## AllTraceOff: Disables all tracing.
254 ## list: Lists trace settings.
255 ##
256 ###############################################################################
257
258 XMLTraceOn:
259 cimconfig -s traceComponents=XmlIO -c
260 cimconfig -s traceLevel=3 -c
261 cimconfig -g traceComponents
262 cimconfig -g traceLevel
263
264 ProviderLoadTraceOn:
265 kumpf 1.1 cimconfig -s traceComponents=ProvManager,OsAbstraction
266 cimconfig -s traceLevel=3 -c
267 cimconfig -g traceComponents
268 cimconfig -g traceLevel
269
270 XML+ProviderLoadTraceOn:
271 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
272 cimconfig -s traceLevel=3 -c
273 cimconfig -g traceComponents
274 cimconfig -g traceLevel
275
276 AllTraceOn:
277 cimconfig -s traceComponents=ALL
278 cimconfig -s traceLevel=3 -c
279 cimconfig -g traceComponents
280 cimconfig -g traceLevel
281
282 AllTraceOff:
283 cimconfig -s traceComponents=
284 cimconfig -g traceComponents
285 cimconfig -g traceLevel
286 kumpf 1.1
287 list:
288 cimconfig -g traceComponents
289 cimconfig -g traceLevel
290 cimconfig -g traceFilePath
291
|
292 kumpf 1.21 # More options...
|
293 kumpf 1.1
|
294 david.dillard 1.15 standardtests:
|
295 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
296 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
297 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
298 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
299 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
300 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
301 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
302 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
303 kumpf 1.1
304 TestNoSecurity:
305 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
306 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
307 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
308 kumpf 1.1
309 TestLocalSecurity:
|
310 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
311 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
312
313 TestRemoteSecurity:
314 TestClient -user guest -password guest $(system):5988
315 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
316
317 TestAuthorization:
|
318 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
319 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
320 kumpf 1.4 TestClient -user guest -password guest $(system):5988
321 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
322 kumpf 1.1
323 TestSubscriptions:
|
324 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
325 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
326 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
327 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
328 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
329 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
330 kumpf 1.1
331 TestCimmof:
|
332 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
333 kumpf 1.1
334 RunTestClientLocal:
335 TestClient -local
336
337 DisableSecurity:
|
338 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
339 kumpf 1.1 cimconfig -s enableAuthentication=false -p
340 cimconfig -s enableNamespaceAuthorization=false -p
341
342 EnableAuthentication:
|
343 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
344 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
345 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
346 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
347 kumpf 1.1
348 EnableAuthorization:
|
349 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
350 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
351 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
352 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
353 kumpf 1.1
354 EnableSSL:
|
355 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
356 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
357 kumpf 1.1
358 ConfigureUsers:
359 ifndef PEGASUS_PAM_AUTHENTICATION
360 cimuser -a -u guest -w guest
361 endif
362
363 ConfigureAuthorizations:
364 cimauth -a -u guest -n test/cimv2 -R -W
365 cimauth -a -u guest -n root/cimv2 -R -W
|
366 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
367 cimauth -a -u guest -n root/PG_InterOp -R -W
368 cimauth -a -u guest -n root/benchmark -R -W
369 cimauth -a -u guest -n root/sampleprovider -R -W
|
370 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
371 cimauth -a -u guest -n root/SampleProvider -R -W
372 cimauth -a -u guest -n root -R -W
373 cimauth -a -u guest -n test1 -R -W
374 cimauth -a -u guest -n test2 -R -W
375 cimauth -a -u guest -n test3 -R -W
376 cimauth -a -u guest -n test4 -R -W
377 cimauth -a -u guest -n test5 -R -W
378 cimauth -a -u guest -n test6 -R -W
379 cimauth -a -u guest -n test1/test2 -R -W
380 cimauth -a -u guest -n test1/test2/test3 -R -W
381 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
382 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
383 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
384
385 startcimWithoutSSL:
|
386 david.dillard 1.15 $(CIMSERVER_START_SERVICE)
|
387 kumpf 1.19 $(SLEEP) 5
|
388 kumpf 1.1
389 startcimWithSSL:
|
390 david.dillard 1.15 $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
|
391 kumpf 1.19 $(SLEEP) 5
|