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 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.24 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
163 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
164 kumpf 1.1
165 TestLocalSecurity:
|
166 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
167 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
168
169 TestRemoteSecurity:
170 TestClient -user guest -password guest $(system):5988
171 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
172
173 TestAuthorization:
|
174 kumpf 1.4 DeleteNamespace -a -user guest -password guest
|
175 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal
|
176 kumpf 1.4 TestClient -user guest -password guest $(system):5988
177 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
|
178 kumpf 1.1
179 TestSubscriptions:
|
180 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile DisableSecurity
|
181 kumpf 1.1 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
182 $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
|
183 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
|
184 david.dillard 1.15 $(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
|
185 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstop
|
186 kumpf 1.1
187 TestCimmof:
|
188 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f Testcimmof poststarttests
|
189 kumpf 1.1
190 RunTestClientLocal:
191 TestClient -local
192
193 DisableSecurity:
|
194 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
195 kumpf 1.1 cimconfig -s enableAuthentication=false -p
196 cimconfig -s enableNamespaceAuthorization=false -p
197
198 EnableAuthentication:
|
199 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
200 kumpf 1.1 cimconfig -s enableAuthentication=true -p
|
201 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
202 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile ConfigureUsers
|
203 kumpf 1.1
204 EnableAuthorization:
|
205 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
|
206 kumpf 1.10 cimconfig -s enableNamespaceAuthorization=true -p
|
207 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL
208 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i ConfigureAuthorizations
|
209 kumpf 1.1
210 EnableSSL:
|
211 kumpf 1.21 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop
212 $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithSSL
|
213 kumpf 1.1
214 ConfigureUsers:
215 ifndef PEGASUS_PAM_AUTHENTICATION
216 cimuser -a -u guest -w guest
217 endif
218
219 ConfigureAuthorizations:
220 cimauth -a -u guest -n test/cimv2 -R -W
221 cimauth -a -u guest -n root/cimv2 -R -W
|
222 kumpf 1.10 cimauth -a -u guest -n root/PG_Internal -R -W
223 cimauth -a -u guest -n root/PG_InterOp -R -W
224 cimauth -a -u guest -n root/benchmark -R -W
225 cimauth -a -u guest -n root/sampleprovider -R -W
|
226 kumpf 1.1 cimauth -a -u guest -n test/static -R -W
227 cimauth -a -u guest -n root/SampleProvider -R -W
228 cimauth -a -u guest -n root -R -W
229 cimauth -a -u guest -n test1 -R -W
230 cimauth -a -u guest -n test2 -R -W
231 cimauth -a -u guest -n test3 -R -W
232 cimauth -a -u guest -n test4 -R -W
233 cimauth -a -u guest -n test5 -R -W
234 cimauth -a -u guest -n test6 -R -W
235 cimauth -a -u guest -n test1/test2 -R -W
236 cimauth -a -u guest -n test1/test2/test3 -R -W
237 cimauth -a -u guest -n test1/test2/test3/test4 -R -W
238 cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
239 cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
240
241 startcimWithoutSSL:
|
242 david.dillard 1.15 $(CIMSERVER_START_SERVICE)
|
243 kumpf 1.19 $(SLEEP) 5
|
244 kumpf 1.1
245 startcimWithSSL:
|
246 david.dillard 1.15 $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
|
247 kumpf 1.19 $(SLEEP) 5
|