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 ###############################################################################
|
143 kumpf 1.1 ##
144 ## Trace Configuration
145 ##
146 ## Options:
147 ## XMLTraceOn: Enables XML request and response tracing.
148 ## ProviderLoadTraceOn: Enables Provider load tracing.
149 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
150 ## load tracing.
151 ## AllTraceOn: Enables all tracing.
152 ## AllTraceOff: Disables all tracing.
153 ## list: Lists trace settings.
154 ##
155 ###############################################################################
156
157 XMLTraceOn:
158 cimconfig -s traceComponents=XmlIO -c
159 cimconfig -s traceLevel=3 -c
160 cimconfig -g traceComponents
161 cimconfig -g traceLevel
162
163 ProviderLoadTraceOn:
164 kumpf 1.1 cimconfig -s traceComponents=ProvManager,OsAbstraction
165 cimconfig -s traceLevel=3 -c
166 cimconfig -g traceComponents
167 cimconfig -g traceLevel
168
169 XML+ProviderLoadTraceOn:
170 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
171 cimconfig -s traceLevel=3 -c
172 cimconfig -g traceComponents
173 cimconfig -g traceLevel
174
175 AllTraceOn:
176 cimconfig -s traceComponents=ALL
177 cimconfig -s traceLevel=3 -c
178 cimconfig -g traceComponents
179 cimconfig -g traceLevel
180
181 AllTraceOff:
182 cimconfig -s traceComponents=
183 cimconfig -g traceComponents
184 cimconfig -g traceLevel
185 kumpf 1.1
186 list:
187 cimconfig -g traceComponents
188 cimconfig -g traceLevel
189 cimconfig -g traceFilePath
190
|
191 kumpf 1.21 # More options...
|
192 kumpf 1.1
|
193 david.dillard 1.15 standardtests:
|
194 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
195 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
196 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
197 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
198 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
199 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
200 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
201 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
202 kumpf 1.1
203 TestNoSecurity:
204 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
205 kumpf 1.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
206 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
207 kumpf 1.1
208 TestLocalSecurity:
|
209 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
210 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
211
212 TestRemoteSecurity:
213 TestClient -user guest -password guest $(system):5988
214 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
215
216 TestAuthorization:
|
217 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
218 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
219 kumpf 1.4 TestClient -user guest -password guest $(system):5988
220 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
221 kumpf 1.1
222 TestSubscriptions:
|
223 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
224 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
225 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
226 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
227 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
228 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
229 kumpf 1.1
230 TestCimmof:
|
231 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
232 kumpf 1.1
233 RunTestClientLocal:
234 TestClient -local
235
236 DisableSecurity:
|
237 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
238 kumpf 1.1 cimconfig -s enableAuthentication=false -p
239 cimconfig -s enableNamespaceAuthorization=false -p
240
241 EnableAuthentication:
|
242 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
243 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
244 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
245 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
246 kumpf 1.1
247 EnableAuthorization:
|
248 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
249 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
250 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
251 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
252 kumpf 1.1
253 EnableSSL:
|
254 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
255 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
256 kumpf 1.1
257 ConfigureUsers:
258 ifndef PEGASUS_PAM_AUTHENTICATION
259 cimuser -a -u guest -w guest
260 endif
261
262 ConfigureAuthorizations:
263 cimauth -a -u guest -n test/cimv2 -R -W
264 cimauth -a -u guest -n root/cimv2 -R -W
|
265 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
266 cimauth -a -u guest -n root/PG_InterOp -R -W
267 cimauth -a -u guest -n root/benchmark -R -W
268 cimauth -a -u guest -n root/sampleprovider -R -W
|
269 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
270 cimauth -a -u guest -n root/SampleProvider -R -W
271 cimauth -a -u guest -n root -R -W
272 cimauth -a -u guest -n test1 -R -W
273 cimauth -a -u guest -n test2 -R -W
274 cimauth -a -u guest -n test3 -R -W
275 cimauth -a -u guest -n test4 -R -W
276 cimauth -a -u guest -n test5 -R -W
277 cimauth -a -u guest -n test6 -R -W
278 cimauth -a -u guest -n test1/test2 -R -W
279 cimauth -a -u guest -n test1/test2/test3 -R -W
280 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
281 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
282 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
283
284 startcimWithoutSSL:
|
285 david.dillard 1.15 $(CIMSERVER_START_SERVICE)
|
286 kumpf 1.19 $(SLEEP) 5
|
287 kumpf 1.1
288 startcimWithSSL:
|
289 david.dillard 1.15 $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
|
290 kumpf 1.19 $(SLEEP) 5
|