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

  1 kumpf 1.1 include $(PEGASUS_ROOT)/mak/config.mak
  2           include $(PEGASUS_ROOT)/mak/test.mak
  3 kumpf 1.19 include $(PEGASUS_ROOT)/mak/commands.mak
  4 kumpf 1.1  
  5            system = localhost
  6            
  7            ###############################################################################
  8            ##
  9            ## Test Makefile for Pegasus CIMOM
 10            ##
 11            ## Options:
 12            ##      rebuild            - Rebuild
 13 david.dillard 1.15 ##      build              - Build
 14 kumpf         1.1  ##      prestarttests      - Execute functional tests
 15                    ##      poststarttests     - Execute poststarttests (No security, No SSL)
 16                    ##      tests              - Execute prestarttests and poststarttests
 17                    ##      standardtests      - Execute poststartests and a series of
 18                    ##                           posstarttests using multiple options.
 19 david.dillard 1.15 ##
 20 kumpf         1.1  ###############################################################################
 21                    
 22 kumpf         1.19 TESTS = prestarttests poststarttests
 23 kumpf         1.1  
 24 david.dillard 1.15 error:
 25                    	@ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)"
 26 kumpf         1.1  
 27                    buildmu:
 28 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
 29 kumpf         1.19 	$(MKDIRHIER) $(BIN_DIR)
 30 kumpf         1.1  
 31                    rebuild: clean buildmu all
 32                    
 33                    build: all
 34                    
 35                    all: buildmu
 36                    	$(MAKE)  -f Makefile depend
 37                    	$(MAKE)  -f Makefile all
 38                    
 39                    doc:
 40 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 41                    	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 42 kumpf         1.1  
 43                    clean:
 44                    	$(MAKE) -f Makefile clean
 45                    
 46 david.dillard 1.15 repositoryServer:
 47 kumpf         1.1  	$(CIMSERVER_STOP_SERVICE)
 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.1  	$(MAKE) -f Makefile repositoryServer
 53                    	$(MAKE) -f Makefile testrepositoryServer
 54 mday          1.6  
 55 david.dillard 1.15 prestarttests:
 56 kumpf         1.1  	$(CIMSERVER_STOP_SERVICE)
 57 kumpf         1.19 	$(SLEEP) 5
 58 kumpf         1.1  	$(MAKE) -f Makefile repository
 59                    	$(MAKE) -f Makefile testrepository
 60                    	$(MAKE) -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.1  	$(MAKE) -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                    	$(CIMSERVER_STOP_SERVICE)
 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                      # DO NOT DELETE
149                      
150 david.dillard   1.15 standardtests:
151 kumpf           1.1  	$(MAKE) -f TestMakefile -i DisableSecurity
152                      	$(MAKE) -f TestMakefile TestCimmof
153                      	$(MAKE) -f TestMakefile TestNoSecurity
154 david.dillard   1.15 	$(MAKE) -f TestMakefile EnableAuthentication
155 kumpf           1.1  	$(MAKE) -f TestMakefile TestLocalSecurity
156 kumpf           1.3  	$(MAKE) -f TestMakefile TestRemoteSecurity
157 kumpf           1.4  	$(MAKE) -f TestMakefile EnableAuthorization
158 david.dillard   1.15 	$(MAKE) -f TestMakefile TestAuthorization
159 kumpf           1.1  
160                      TestNoSecurity:
161                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
162                      	$(MAKE) -f TestMakefile RunTestClientLocal
163                      
164                      TestLocalSecurity:
165                      	$(MAKE) -f TestMakefile RunTestClientLocal
166                      	$(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.1  	$(MAKE) -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                      	$(MAKE) -f TestMakefile DisableSecurity
180                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
181                      	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
182                      	$(MAKE) -f TestMakefile startcimWithoutSSL
183 david.dillard   1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
184 kumpf           1.1  	$(MAKE) -f TestMakefile stopcim
185                      
186                      TestCimmof:
187                      	$(MAKE) -f Testcimmof poststarttests
188                      
189                      RunTestClientLocal:
190                      	TestClient -local
191                      
192                      DisableSecurity:
193 david.dillard   1.15 	$(MAKE) -f TestMakefile -i stopcim
194 kumpf           1.1  	cimconfig -s enableAuthentication=false -p
195                      	cimconfig -s enableNamespaceAuthorization=false -p
196                      
197                      EnableAuthentication:
198 david.dillard   1.15 	$(MAKE) -f TestMakefile -i stopcim
199 kumpf           1.1  	cimconfig -s enableAuthentication=true -p
200                      	$(MAKE) -f TestMakefile startcimWithoutSSL
201                      	$(MAKE) -f TestMakefile ConfigureUsers
202                      
203                      EnableAuthorization:
204                      	$(MAKE) -f TestMakefile -i stopcim
205 kumpf           1.10 	cimconfig -s enableNamespaceAuthorization=true -p
206 kumpf           1.1  	$(MAKE) -f TestMakefile startcimWithoutSSL
207                      	$(MAKE) -f TestMakefile -i ConfigureAuthorizations
208                      
209                      EnableSSL:
210                      	$(MAKE) -f TestMakefile -i stopcim
211                      	$(MAKE) -f TestMakefile startcimWithSSL
212                      
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                      stopcim:
249                      	$(CIMSERVER_STOP_SERVICE)
250 kumpf           1.19 	$(SLEEP) 5
251 kumpf           1.1  
252                      rebuild:
253 david.dillard   1.15 	$(MAKE) -f TestMakefile -i stopcim
254 kumpf           1.1  	rm -f rebuild.txt
255                      	$(MAKE) -f TestMakefile pegasus >> rebuild.txt  2>&1
256                      
257                      pegasus:
258 david.dillard   1.15 	$(MAKE) -f Makefile rebuild

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2