1 kumpf 1.1 ###############################################################################
2 ##
3 ## Test Makefile for Pegasus CIMOM
4 ##
5 ## Options:
6 ## rebuild - Rebuild
|
7 david.dillard 1.15 ## build - Build
|
8 kumpf 1.1 ## prestarttests - Execute functional tests
9 ## poststarttests - Execute poststarttests (No security, No SSL)
10 ## tests - Execute prestarttests and poststarttests
11 ## standardtests - Execute poststartests and a series of
12 ## posstarttests using multiple options.
|
13 david.dillard 1.15 ##
|
14 kumpf 1.1 ###############################################################################
15
|
16 david.dillard 1.15 error:
17 @ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)"
|
18 kumpf 1.1
|
19 kumpf 1.23 include $(PEGASUS_ROOT)/mak/config.mak
20 include $(PEGASUS_ROOT)/mak/test.mak
21 include $(PEGASUS_ROOT)/mak/commands.mak
22
23 system = localhost
24
25 TESTS = prestarttests poststarttests
26
|
27 kumpf 1.25 rebuild: clean all tests
|
28 kumpf 1.21
|
29 kumpf 1.25 build: all tests
|
30 kumpf 1.21
31 clean:
32 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean
33
|
34 kumpf 1.1 buildmu:
|
35 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
|
36 kumpf 1.19 $(MKDIRHIER) $(BIN_DIR)
|
37 kumpf 1.1
38 all: buildmu
|
39 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile depend
40 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile all
|
41 kumpf 1.1
42 doc:
|
43 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
44 $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
|
45 kumpf 1.1
|
46 david.dillard 1.15 repositoryServer:
|
47 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
48 kumpf 1.19 $(SLEEP) 5
|
49 kumpf 1.1 $(RMDIRHIER) $(REPOSITORY_ROOT)
50 $(CIMSERVER_START_SERVICE)
|
51 kumpf 1.19 $(SLEEP) 5
|
52 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer
53 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer
|
54 mday 1.6
|
55 david.dillard 1.15 prestarttests:
|
56 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
57 kumpf 1.19 $(SLEEP) 5
|
58 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
59 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
60 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests
|
61 kumpf 1.14 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
|
62 nag.boranna 1.27 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests -f Makefile test_setup
|
63 kumpf 1.1
64 poststarttests:
|
65 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
66 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
67 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
68 kumpf 1.1 $(CIMSERVER_START_SERVICE)
|
69 kumpf 1.19 $(SLEEP) 5
|
70 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
71 denise.eckstein 1.26 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
72 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
73 carolann.graves 1.28 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1
|
74 kumpf 1.1
75 tests: $(TESTS)
|
76 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
77 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
78 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
79 tony 1.5 endif
|
80 david.dillard 1.15 @ $(ECHO) Finished Tests
|
81 kumpf 1.1
82 ###############################################################################
|
83 denise.eckstein 1.18 ## Test Suite Definitions
84 ###############################################################################
85
86 ###############################################################################
87 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
88 ##
89 ## Configuration Options: forceProviderProcesses=true
90 ##
91 ###############################################################################
92 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
93 OOP_TS1_TEST_CMDS = \
94 TestClient
95
96 run_OOP_TS1:
|
97 denise.eckstein 1.26 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
|
98 denise.eckstein 1.18 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
99 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
100 ###############################################################################
101
102 ###############################################################################
|
103 carolann.graves 1.28 ## IndInit Test Suite 1: IndicationService Initialization Tests
104 ##
105 ## Configuration Options: (none)
106 ##
107 ###############################################################################
108 IndInit_TS1_CONFIG_OPTIONS =
109 IndInit_TS1a_TEST_CMDS = \
110 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1a
111 IndInit_TS1b_TEST_CMDS = \
112 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/IndicationService/tests/ProcessIndication@@IndInit_TS1b
113
114 run_IndInit_TS1:
115 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
116 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
117 TESTSUITE_CMDS="$(IndInit_TS1a_TEST_CMDS)"
118 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
119 CIMSERVER_CONFIG_OPTIONS="$(IndInit_TS1_CONFIG_OPTIONS)" \
120 TESTSUITE_CMDS="$(IndInit_TS1b_TEST_CMDS)"
121
122 ###############################################################################
|
123 nag.boranna 1.27 ## SSL Test Suite 1: SSL Tests
124 ##
125 ## Configuration Options: enableAuthentication=true
126 ## enableHttpsConnection=true
127 ## sslClientVerificationMode=optional
128 ## sslTrustStoreUserName=$(CURRENT_USER)
129 ##
130 ###############################################################################
131 SSL_TS1_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=true \
132 sslClientVerificationMode=optional sslTrustStoreUserName=$(CURRENT_USER)
133 SSL_TS1_TEST_CMDS = \
134 $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests@@SSLCertificateTest1
135
136 run_SSL_TS1:
137 $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \
138 CIMSERVER_CONFIG_OPTIONS="$(SSL_TS1_CONFIG_OPTIONS)" \
139 TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)"
140 ###############################################################################
141
|
142 jim.wunderlich 1.29 ##############################################################################
143 ##
144 ## TestBinReposiory rule is used to run the poststarttests suite on
145 ## the Binary Reposiory.
146 ##
147 ## Running the poststarttests as part of the nightly's I have three choices.
148 ## 1. a)remove repository,
149 ## b)build bin repository as repository,
150 ## c)run test,
151 ## d)remove repository,
152 ## e)build xml repository.
153 ##
154 ## 2. a)build bin repository as repository_bin,
155 ## b)run test on repository_bin
156 ##
157 ## Currently scenaerio 1 works but it is slow.
158 ## Scenaerio 2 is close to working. There may be a few test remaining that
159 ## don't honor the REPOSITORY_NAME build config variable.
160 ##
161
162
163 jim.wunderlich 1.29
164 TestBinRepository: TestBinRepository2
165 $(ECHO) TestBinRepository +++++ passed all test
166 ##
167 ## 1. a)remove repository,
168 ## b)build bin repository as repository,
169 ## c)run test,
170 ## d)remove repository,
171 ## e)build xml repository.
172 ##
173 TestBinRepository1:
174 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
175 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean
176 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_MODE=BIN
177 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_MODE=BIN
178 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true"
179 $(SLEEP) 5
180 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_MODE=BIN
181 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
182 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean
183 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
184 jim.wunderlich 1.29 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
185 ##
186 ## 2. a)build bin repository as repository_bin,
187 ## b)run test on repository_bin
188 ##
189 TestBinRepository2:
190 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
191 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin
192 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
193 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
194 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin"
195 $(SLEEP) 5
196 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN
197 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
198
199
200
201
|
202 nag.boranna 1.27 ###############################################################################
|
203 kumpf 1.1 ##
204 ## Trace Configuration
205 ##
206 ## Options:
207 ## XMLTraceOn: Enables XML request and response tracing.
208 ## ProviderLoadTraceOn: Enables Provider load tracing.
209 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
210 ## load tracing.
211 ## AllTraceOn: Enables all tracing.
212 ## AllTraceOff: Disables all tracing.
213 ## list: Lists trace settings.
214 ##
215 ###############################################################################
216
217 XMLTraceOn:
218 cimconfig -s traceComponents=XmlIO -c
219 cimconfig -s traceLevel=3 -c
220 cimconfig -g traceComponents
221 cimconfig -g traceLevel
222
223 ProviderLoadTraceOn:
224 kumpf 1.1 cimconfig -s traceComponents=ProvManager,OsAbstraction
225 cimconfig -s traceLevel=3 -c
226 cimconfig -g traceComponents
227 cimconfig -g traceLevel
228
229 XML+ProviderLoadTraceOn:
230 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
231 cimconfig -s traceLevel=3 -c
232 cimconfig -g traceComponents
233 cimconfig -g traceLevel
234
235 AllTraceOn:
236 cimconfig -s traceComponents=ALL
237 cimconfig -s traceLevel=3 -c
238 cimconfig -g traceComponents
239 cimconfig -g traceLevel
240
241 AllTraceOff:
242 cimconfig -s traceComponents=
243 cimconfig -g traceComponents
244 cimconfig -g traceLevel
245 kumpf 1.1
246 list:
247 cimconfig -g traceComponents
248 cimconfig -g traceLevel
249 cimconfig -g traceFilePath
250
|
251 kumpf 1.21 # More options...
|
252 kumpf 1.1
|
253 david.dillard 1.15 standardtests:
|
254 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
255 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
256 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
257 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
258 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
259 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
260 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
261 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
262 kumpf 1.1
263 TestNoSecurity:
264 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
265 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
266 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
267 kumpf 1.1
268 TestLocalSecurity:
|
269 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
270 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
271
272 TestRemoteSecurity:
273 TestClient -user guest -password guest $(system):5988
274 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
275
276 TestAuthorization:
|
277 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
278 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
279 kumpf 1.4 TestClient -user guest -password guest $(system):5988
280 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
281 kumpf 1.1
282 TestSubscriptions:
|
283 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
284 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
285 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
286 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
287 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
288 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
289 kumpf 1.1
290 TestCimmof:
|
291 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
292 kumpf 1.1
293 RunTestClientLocal:
294 TestClient -local
295
296 DisableSecurity:
|
297 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
298 kumpf 1.1 cimconfig -s enableAuthentication=false -p
299 cimconfig -s enableNamespaceAuthorization=false -p
300
301 EnableAuthentication:
|
302 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
303 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
304 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
305 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
306 kumpf 1.1
307 EnableAuthorization:
|
308 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
309 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
310 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
311 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
312 kumpf 1.1
313 EnableSSL:
|
314 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
315 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
316 kumpf 1.1
317 ConfigureUsers:
318 ifndef PEGASUS_PAM_AUTHENTICATION
319 cimuser -a -u guest -w guest
320 endif
321
322 ConfigureAuthorizations:
323 cimauth -a -u guest -n test/cimv2 -R -W
324 cimauth -a -u guest -n root/cimv2 -R -W
|
325 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
326 cimauth -a -u guest -n root/PG_InterOp -R -W
327 cimauth -a -u guest -n root/benchmark -R -W
328 cimauth -a -u guest -n root/sampleprovider -R -W
|
329 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
330 cimauth -a -u guest -n root/SampleProvider -R -W
331 cimauth -a -u guest -n root -R -W
332 cimauth -a -u guest -n test1 -R -W
333 cimauth -a -u guest -n test2 -R -W
334 cimauth -a -u guest -n test3 -R -W
335 cimauth -a -u guest -n test4 -R -W
336 cimauth -a -u guest -n test5 -R -W
337 cimauth -a -u guest -n test6 -R -W
338 cimauth -a -u guest -n test1/test2 -R -W
339 cimauth -a -u guest -n test1/test2/test3 -R -W
340 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
341 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
342 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
343
344 startcimWithoutSSL:
|
345 david.dillard 1.15 $(CIMSERVER_START_SERVICE)
|
346 kumpf 1.19 $(SLEEP) 5
|
347 kumpf 1.1
348 startcimWithSSL:
|
349 david.dillard 1.15 $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
|
350 kumpf 1.19 $(SLEEP) 5
|