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 rebuild: clean all
|
28 kumpf 1.21
29 build: all
30
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 kumpf 1.1
63 poststarttests:
|
64 lucier 1.17 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
65 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
|
66 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
|
67 kumpf 1.1 $(CIMSERVER_START_SERVICE)
|
68 kumpf 1.19 $(SLEEP) 5
|
69 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests
|
70 kumpf 1.20 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1
|
71 kumpf 1.1
72 tests: $(TESTS)
|
73 tony 1.5 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
|
74 kumpf 1.22 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
75 mday 1.6 $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
|
76 tony 1.5 endif
|
77 david.dillard 1.15 @ $(ECHO) Finished Tests
|
78 kumpf 1.1
79 ###############################################################################
|
80 denise.eckstein 1.18 ## Test Suite Definitions
81 ###############################################################################
82
83 ###############################################################################
84 ## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests
85 ##
86 ## Configuration Options: forceProviderProcesses=true
87 ##
88 ###############################################################################
89 OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true
90 OOP_TS1_TEST_CMDS = \
91 TestClient
92
93 run_OOP_TS1:
94 $(MAKE) -f $(PEGASUS_ROOT)/mak/commands.mak runTestSuite \
95 CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \
96 TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)"
97 ###############################################################################
98
99 ###############################################################################
|
100 kumpf 1.1 ##
101 ## Trace Configuration
102 ##
103 ## Options:
104 ## XMLTraceOn: Enables XML request and response tracing.
105 ## ProviderLoadTraceOn: Enables Provider load tracing.
106 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
107 ## load tracing.
108 ## AllTraceOn: Enables all tracing.
109 ## AllTraceOff: Disables all tracing.
110 ## list: Lists trace settings.
111 ##
112 ###############################################################################
113
114 XMLTraceOn:
115 cimconfig -s traceComponents=XmlIO -c
116 cimconfig -s traceLevel=3 -c
117 cimconfig -g traceComponents
118 cimconfig -g traceLevel
119
120 ProviderLoadTraceOn:
121 kumpf 1.1 cimconfig -s traceComponents=ProvManager,OsAbstraction
122 cimconfig -s traceLevel=3 -c
123 cimconfig -g traceComponents
124 cimconfig -g traceLevel
125
126 XML+ProviderLoadTraceOn:
127 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
128 cimconfig -s traceLevel=3 -c
129 cimconfig -g traceComponents
130 cimconfig -g traceLevel
131
132 AllTraceOn:
133 cimconfig -s traceComponents=ALL
134 cimconfig -s traceLevel=3 -c
135 cimconfig -g traceComponents
136 cimconfig -g traceLevel
137
138 AllTraceOff:
139 cimconfig -s traceComponents=
140 cimconfig -g traceComponents
141 cimconfig -g traceLevel
142 kumpf 1.1
143 list:
144 cimconfig -g traceComponents
145 cimconfig -g traceLevel
146 cimconfig -g traceFilePath
147
|
148 kumpf 1.21 # More options...
|
149 kumpf 1.1
|
150 david.dillard 1.15 standardtests:
|
151 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i DisableSecurity
152 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestCimmof
153 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestNoSecurity
154 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthentication
155 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestLocalSecurity
156 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestRemoteSecurity
157 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile EnableAuthorization
158 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestAuthorization
|
159 kumpf 1.1
160 TestNoSecurity:
161 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
|
162 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
163 kumpf 1.1
164 TestLocalSecurity:
|
165 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
166 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
167
168 TestRemoteSecurity:
169 TestClient -user guest -password guest $(system):5988
170 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
171
172 TestAuthorization:
|
173 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
174 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
175 kumpf 1.4 TestClient -user guest -password guest $(system):5988
176 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
177 kumpf 1.1
178 TestSubscriptions:
|
179 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
180 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
181 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
182 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
183 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
184 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
185 kumpf 1.1
186 TestCimmof:
|
187 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
188 kumpf 1.1
189 RunTestClientLocal:
190 TestClient -local
191
192 DisableSecurity:
|
193 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
194 kumpf 1.1 cimconfig -s enableAuthentication=false -p
195 cimconfig -s enableNamespaceAuthorization=false -p
196
197 EnableAuthentication:
|
198 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
199 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
200 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
201 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
202 kumpf 1.1
203 EnableAuthorization:
|
204 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
205 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
206 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
207 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
208 kumpf 1.1
209 EnableSSL:
|
210 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
211 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
212 kumpf 1.1
213 ConfigureUsers:
214 ifndef PEGASUS_PAM_AUTHENTICATION
215 cimuser -a -u guest -w guest
216 endif
217
218 ConfigureAuthorizations:
219 cimauth -a -u guest -n test/cimv2 -R -W
220 cimauth -a -u guest -n root/cimv2 -R -W
|
221 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
222 cimauth -a -u guest -n root/PG_InterOp -R -W
223 cimauth -a -u guest -n root/benchmark -R -W
224 cimauth -a -u guest -n root/sampleprovider -R -W
|
225 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
226 cimauth -a -u guest -n root/SampleProvider -R -W
227 cimauth -a -u guest -n root -R -W
228 cimauth -a -u guest -n test1 -R -W
229 cimauth -a -u guest -n test2 -R -W
230 cimauth -a -u guest -n test3 -R -W
231 cimauth -a -u guest -n test4 -R -W
232 cimauth -a -u guest -n test5 -R -W
233 cimauth -a -u guest -n test6 -R -W
234 cimauth -a -u guest -n test1/test2 -R -W
235 cimauth -a -u guest -n test1/test2/test3 -R -W
236 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
237 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
238 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
239
240 startcimWithoutSSL:
|
241 david.dillard 1.15 $(CIMSERVER_START_SERVICE)
|
242 kumpf 1.19 $(SLEEP) 5
|
243 kumpf 1.1
244 startcimWithSSL:
|
245 david.dillard 1.15 $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
|
246 kumpf 1.19 $(SLEEP) 5
|
247 kumpf 1.1
248 pegasus:
|
249 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile rebuild
|