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