(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           
  4           system = localhost
  5           
  6           ###############################################################################
  7           ##
  8           ## Test Makefile for Pegasus CIMOM
  9           ##
 10           ## Options:
 11           ##      rebuild            - Rebuild
 12 david.dillard 1.15 ##      build              - Build
 13 kumpf         1.1  ##      prestarttests      - Execute functional tests
 14                    ##      poststarttests     - Execute poststarttests (No security, No SSL)
 15                    ##      tests              - Execute prestarttests and poststarttests
 16                    ##      standardtests      - Execute poststartests and a series of
 17                    ##                           posstarttests using multiple options.
 18 david.dillard 1.15 ##
 19 kumpf         1.1  ###############################################################################
 20                    
 21                    ###############################################################################
 22                    ##
 23                    ## Platform specific settings for several platforms.
 24                    ##
 25 david.dillard 1.15 ## NOTE: Please add platform specific environment variables as appropriate.
 26 kumpf         1.1  ##
 27                    ###############################################################################
 28                    
 29                    ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
 30 david.dillard 1.15     CIMSERVER_START_SERVICE = cimserver -start
 31                        CIMSERVER_STOP_SERVICE = cimserver -stop
 32 david.dillard 1.16     SLEEP = mu sleep 5
 33 david.dillard 1.15     REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
 34                        MUEXE = mu.exe
 35                        MKDIR = $(MUEXE) mkdirhier
 36                        TESTS = prestarttests poststarttests
 37 kumpf         1.1  endif
 38                    
 39 dudhe.girish  1.13 ifeq ($(PEGASUS_PLATFORM),DARWIN_PPC_GNU)
 40 david.dillard 1.15     CIMSERVER_START_SERVICE = cimserver
 41                        CIMSERVER_STOP_SERVICE = cimserver -s; true
 42                        SLEEP = sleep 5
 43                        MUEXE = mu
 44                        MKDIR = $(MUEXE) mkdirhier
 45                        TESTS = prestarttests poststarttests
 46 dudhe.girish  1.13 endif
 47                    
 48 kumpf         1.2  ifeq ($(OS),HPUX)
 49 david.dillard 1.15     CIMSERVER_START_SERVICE = cimserver
 50                        CIMSERVER_STOP_SERVICE = cimserver -s; true
 51                        SLEEP = sleep 5
 52                        MUEXE = mu
 53                        MKDIR = $(MUEXE) mkdirhier
 54                        TESTS = prestarttests poststarttests
 55 kumpf         1.1  endif
 56                    
 57 david.eger    1.7  ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
 58 david.dillard 1.15     CIMSERVER_START_SERVICE = cimserver
 59                        CIMSERVER_STOP_SERVICE = cimserver -s; true
 60                        SLEEP = sleep 5
 61                        MUEXE = mu
 62                        MKDIR = $(MUEXE) mkdirhier
 63                        TESTS = prestarttests poststarttests
 64 kumpf         1.1  endif
 65                    
 66 david.dillard 1.15 error:
 67                    	@ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)"
 68 kumpf         1.1  
 69                    buildmu:
 70 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
 71 kumpf         1.1  	$(MKDIR) $(BIN_DIR)
 72                    
 73                    rebuild: clean buildmu all
 74                    
 75                    build: all
 76                    
 77                    all: buildmu
 78                    	$(MAKE)  -f Makefile depend
 79                    	$(MAKE)  -f Makefile all
 80                    
 81                    doc:
 82 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 83                    	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 84 kumpf         1.1  
 85                    clean:
 86                    	$(MAKE) -f Makefile clean
 87                    
 88 david.dillard 1.15 repositoryServer:
 89 kumpf         1.1  	$(CIMSERVER_STOP_SERVICE)
 90                    	$(SLEEP)
 91                    	$(RMDIRHIER) $(REPOSITORY_ROOT)
 92                    	$(CIMSERVER_START_SERVICE)
 93                    	$(SLEEP)
 94                    	$(MAKE) -f Makefile repositoryServer
 95                    	$(MAKE) -f Makefile testrepositoryServer
 96 mday          1.6  
 97 david.dillard 1.15 prestarttests:
 98 kumpf         1.1  	$(CIMSERVER_STOP_SERVICE)
 99                    	$(SLEEP)
100                    	$(MAKE) -f Makefile repository
101                    	$(MAKE) -f Makefile testrepository
102                    	$(MAKE) -f Makefile tests
103 kumpf         1.14 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run
104 kumpf         1.1  
105                    poststarttests:
106 lucier        1.17 	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean
107                    	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean
108 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
109 kumpf         1.1  	$(CIMSERVER_START_SERVICE)
110                    	$(SLEEP)
111                    	$(MAKE) -f Makefile poststarttests
112                    
113                    tests: $(TESTS)
114 tony          1.5  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
115                    	$(CIMSERVER_STOP_SERVICE)
116 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
117 tony          1.5  endif
118 david.dillard 1.15 	@ $(ECHO) Finished Tests
119 kumpf         1.1  
120                    ###############################################################################
121                    ##
122                    ## Trace Configuration
123                    ##
124                    ## Options:
125                    ##      XMLTraceOn: Enables XML request and response tracing.
126                    ##      ProviderLoadTraceOn: Enables Provider load tracing.
127                    ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
128                    ##                                 load tracing.
129                    ##      AllTraceOn: Enables all tracing.
130                    ##      AllTraceOff: Disables all tracing.
131                    ##      list: Lists trace settings.
132                    ##
133                    ###############################################################################
134                    
135                    XMLTraceOn:
136                    	cimconfig -s traceComponents=XmlIO -c
137                    	cimconfig -s traceLevel=3 -c
138                    	cimconfig -g traceComponents
139                    	cimconfig -g traceLevel
140 kumpf         1.1  
141                    ProviderLoadTraceOn:
142                    	cimconfig -s traceComponents=ProvManager,OsAbstraction
143                    	cimconfig -s traceLevel=3 -c
144                    	cimconfig -g traceComponents
145                    	cimconfig -g traceLevel
146                    
147                    XML+ProviderLoadTraceOn:
148                    	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
149                    	cimconfig -s traceLevel=3 -c
150                    	cimconfig -g traceComponents
151                    	cimconfig -g traceLevel
152                    
153                    AllTraceOn:
154                    	cimconfig -s traceComponents=ALL
155                    	cimconfig -s traceLevel=3 -c
156                    	cimconfig -g traceComponents
157                    	cimconfig -g traceLevel
158                    
159                    AllTraceOff:
160                    	cimconfig -s traceComponents=
161 kumpf         1.1  	cimconfig -g traceComponents
162                    	cimconfig -g traceLevel
163                    
164                    list:
165                    	cimconfig -g traceComponents
166                    	cimconfig -g traceLevel
167                    	cimconfig -g traceFilePath
168                    
169                    # DO NOT DELETE
170                    
171 david.dillard 1.15 standardtests:
172 kumpf         1.1  	$(MAKE) -f TestMakefile -i DisableSecurity
173                    	$(MAKE) -f TestMakefile TestCimmof
174                    	$(MAKE) -f TestMakefile TestNoSecurity
175 david.dillard 1.15 	$(MAKE) -f TestMakefile EnableAuthentication
176 kumpf         1.1  	$(MAKE) -f TestMakefile TestLocalSecurity
177 kumpf         1.3  	$(MAKE) -f TestMakefile TestRemoteSecurity
178 kumpf         1.4  	$(MAKE) -f TestMakefile EnableAuthorization
179 david.dillard 1.15 	$(MAKE) -f TestMakefile TestAuthorization
180 kumpf         1.1  
181                    TestNoSecurity:
182                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
183                    	$(MAKE) -f TestMakefile RunTestClientLocal
184                    
185                    TestLocalSecurity:
186                    	$(MAKE) -f TestMakefile RunTestClientLocal
187                    	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
188                    
189                    TestRemoteSecurity:
190                    	TestClient -user guest -password guest $(system):5988
191                    	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
192                    
193                    TestAuthorization:
194 kumpf         1.4  	DeleteNamespace -a -user guest -password guest
195 kumpf         1.1  	$(MAKE) -f TestMakefile RunTestClientLocal
196 kumpf         1.4  	TestClient -user guest -password guest $(system):5988
197                    	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
198 kumpf         1.1  
199                    TestSubscriptions:
200                    	$(MAKE) -f TestMakefile DisableSecurity
201                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
202                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
203                    	$(MAKE) -f TestMakefile startcimWithoutSSL
204 david.dillard 1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
205 kumpf         1.1  	$(MAKE) -f TestMakefile stopcim
206                    
207                    TestCimmof:
208                    	$(MAKE) -f Testcimmof poststarttests
209                    
210                    RunTestClientLocal:
211                    	TestClient -local
212                    
213                    DisableSecurity:
214 david.dillard 1.15 	$(MAKE) -f TestMakefile -i stopcim
215 kumpf         1.1  	cimconfig -s enableAuthentication=false -p
216                    	cimconfig -s enableNamespaceAuthorization=false -p
217                    
218                    EnableAuthentication:
219 david.dillard 1.15 	$(MAKE) -f TestMakefile -i stopcim
220 kumpf         1.1  	cimconfig -s enableAuthentication=true -p
221                    	$(MAKE) -f TestMakefile startcimWithoutSSL
222                    	$(MAKE) -f TestMakefile ConfigureUsers
223                    
224                    EnableAuthorization:
225                    	$(MAKE) -f TestMakefile -i stopcim
226 kumpf         1.10 	cimconfig -s enableNamespaceAuthorization=true -p
227 kumpf         1.1  	$(MAKE) -f TestMakefile startcimWithoutSSL
228                    	$(MAKE) -f TestMakefile -i ConfigureAuthorizations
229                    
230                    EnableSSL:
231                    	$(MAKE) -f TestMakefile -i stopcim
232                    	$(MAKE) -f TestMakefile startcimWithSSL
233                    
234                    ConfigureUsers:
235                    ifndef PEGASUS_PAM_AUTHENTICATION
236                    	cimuser -a -u guest -w guest
237                    endif
238                    
239                    ConfigureAuthorizations:
240                    	cimauth -a -u guest -n test/cimv2 -R -W
241                    	cimauth -a -u guest -n root/cimv2 -R -W
242 kumpf         1.10 	cimauth -a -u guest -n root/PG_Internal -R -W
243                    	cimauth -a -u guest -n root/PG_InterOp -R -W
244                    	cimauth -a -u guest -n root/benchmark -R -W
245                    	cimauth -a -u guest -n root/sampleprovider -R -W
246 kumpf         1.1  	cimauth -a -u guest -n test/static -R -W
247                    	cimauth -a -u guest -n root/SampleProvider -R -W
248                    	cimauth -a -u guest -n root -R -W
249                    	cimauth -a -u guest -n test1 -R -W
250                    	cimauth -a -u guest -n test2 -R -W
251                    	cimauth -a -u guest -n test3 -R -W
252                    	cimauth -a -u guest -n test4 -R -W
253                    	cimauth -a -u guest -n test5 -R -W
254                    	cimauth -a -u guest -n test6 -R -W
255                    	cimauth -a -u guest -n test1/test2 -R -W
256                    	cimauth -a -u guest -n test1/test2/test3 -R -W
257                    	cimauth -a -u guest -n test1/test2/test3/test4 -R -W
258                    	cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
259                    	cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
260                    
261                    startcimWithoutSSL:
262 david.dillard 1.15 	$(CIMSERVER_START_SERVICE)
263                    	$(SLEEP)
264 kumpf         1.1  
265                    startcimWithSSL:
266 david.dillard 1.15 	$(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
267                    	$(SLEEP)
268 kumpf         1.1  
269                    stopcim:
270                    	$(CIMSERVER_STOP_SERVICE)
271 david.dillard 1.15 	$(SLEEP)
272 kumpf         1.1  
273                    rebuild:
274 david.dillard 1.15 	$(MAKE) -f TestMakefile -i stopcim
275 kumpf         1.1  	rm -f rebuild.txt
276                    	$(MAKE) -f TestMakefile pegasus >> rebuild.txt  2>&1
277                    
278                    pegasus:
279 david.dillard 1.15 	$(MAKE) -f Makefile rebuild

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2