(file) Return to TestMakefile CVS log (file) (dir) Up to [Pegasus] / pegasus

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2