(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                        SLEEP =
 33                        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 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
107 kumpf         1.1  	$(CIMSERVER_START_SERVICE)
108                    	$(SLEEP)
109                    	$(MAKE) -f Makefile poststarttests
110                    
111                    tests: $(TESTS)
112 tony          1.5  ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
113                    	$(CIMSERVER_STOP_SERVICE)
114 mday          1.6  	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
115 tony          1.5  endif
116 david.dillard 1.15 	@ $(ECHO) Finished Tests
117 kumpf         1.1  
118                    ###############################################################################
119                    ##
120                    ## Trace Configuration
121                    ##
122                    ## Options:
123                    ##      XMLTraceOn: Enables XML request and response tracing.
124                    ##      ProviderLoadTraceOn: Enables Provider load tracing.
125                    ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
126                    ##                                 load tracing.
127                    ##      AllTraceOn: Enables all tracing.
128                    ##      AllTraceOff: Disables all tracing.
129                    ##      list: Lists trace settings.
130                    ##
131                    ###############################################################################
132                    
133                    XMLTraceOn:
134                    	cimconfig -s traceComponents=XmlIO -c
135                    	cimconfig -s traceLevel=3 -c
136                    	cimconfig -g traceComponents
137                    	cimconfig -g traceLevel
138 kumpf         1.1  
139                    ProviderLoadTraceOn:
140                    	cimconfig -s traceComponents=ProvManager,OsAbstraction
141                    	cimconfig -s traceLevel=3 -c
142                    	cimconfig -g traceComponents
143                    	cimconfig -g traceLevel
144                    
145                    XML+ProviderLoadTraceOn:
146                    	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
147                    	cimconfig -s traceLevel=3 -c
148                    	cimconfig -g traceComponents
149                    	cimconfig -g traceLevel
150                    
151                    AllTraceOn:
152                    	cimconfig -s traceComponents=ALL
153                    	cimconfig -s traceLevel=3 -c
154                    	cimconfig -g traceComponents
155                    	cimconfig -g traceLevel
156                    
157                    AllTraceOff:
158                    	cimconfig -s traceComponents=
159 kumpf         1.1  	cimconfig -g traceComponents
160                    	cimconfig -g traceLevel
161                    
162                    list:
163                    	cimconfig -g traceComponents
164                    	cimconfig -g traceLevel
165                    	cimconfig -g traceFilePath
166                    
167                    # DO NOT DELETE
168                    
169 david.dillard 1.15 standardtests:
170 kumpf         1.1  	$(MAKE) -f TestMakefile -i DisableSecurity
171                    	$(MAKE) -f TestMakefile TestCimmof
172                    	$(MAKE) -f TestMakefile TestNoSecurity
173 david.dillard 1.15 	$(MAKE) -f TestMakefile EnableAuthentication
174 kumpf         1.1  	$(MAKE) -f TestMakefile TestLocalSecurity
175 kumpf         1.3  	$(MAKE) -f TestMakefile TestRemoteSecurity
176 kumpf         1.4  	$(MAKE) -f TestMakefile EnableAuthorization
177 david.dillard 1.15 	$(MAKE) -f TestMakefile TestAuthorization
178 kumpf         1.1  
179                    TestNoSecurity:
180                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
181                    	$(MAKE) -f TestMakefile RunTestClientLocal
182                    
183                    TestLocalSecurity:
184                    	$(MAKE) -f TestMakefile RunTestClientLocal
185                    	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
186                    
187                    TestRemoteSecurity:
188                    	TestClient -user guest -password guest $(system):5988
189                    	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
190                    
191                    TestAuthorization:
192 kumpf         1.4  	DeleteNamespace -a -user guest -password guest
193 kumpf         1.1  	$(MAKE) -f TestMakefile RunTestClientLocal
194 kumpf         1.4  	TestClient -user guest -password guest $(system):5988
195                    	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
196 kumpf         1.1  
197                    TestSubscriptions:
198                    	$(MAKE) -f TestMakefile DisableSecurity
199                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
200                    	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
201                    	$(MAKE) -f TestMakefile startcimWithoutSSL
202 david.dillard 1.15 	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests
203 kumpf         1.1  	$(MAKE) -f TestMakefile stopcim
204                    
205                    TestCimmof:
206                    	$(MAKE) -f Testcimmof poststarttests
207                    
208                    
209                    RunTestClientLocal:
210                    	TestClient -local
211                    
212                    DisableSecurity:
213 david.dillard 1.15 	$(MAKE) -f TestMakefile -i stopcim
214 kumpf         1.1  	cimconfig -s enableAuthentication=false -p
215                    	cimconfig -s enableNamespaceAuthorization=false -p
216                    
217                    EnableAuthentication:
218 david.dillard 1.15 	$(MAKE) -f TestMakefile -i stopcim
219 kumpf         1.1  	cimconfig -s enableAuthentication=true -p
220                    	$(MAKE) -f TestMakefile startcimWithoutSSL
221                    	$(MAKE) -f TestMakefile ConfigureUsers
222                    
223                    EnableAuthorization:
224                    	$(MAKE) -f TestMakefile -i stopcim
225 kumpf         1.10 	cimconfig -s enableNamespaceAuthorization=true -p
226 kumpf         1.1  	$(MAKE) -f TestMakefile startcimWithoutSSL
227                    	$(MAKE) -f TestMakefile -i ConfigureAuthorizations
228                    
229                    EnableSSL:
230                    	$(MAKE) -f TestMakefile -i stopcim
231                    	$(MAKE) -f TestMakefile startcimWithSSL
232                    
233                    ConfigureUsers:
234                    ifndef PEGASUS_PAM_AUTHENTICATION
235                    	cimuser -a -u guest -w guest
236                    endif
237                    
238                    ConfigureAuthorizations:
239                    	cimauth -a -u guest -n test/cimv2 -R -W
240                    	cimauth -a -u guest -n root/cimv2 -R -W
241 kumpf         1.10 	cimauth -a -u guest -n root/PG_Internal -R -W
242                    	cimauth -a -u guest -n root/PG_InterOp -R -W
243                    	cimauth -a -u guest -n root/benchmark -R -W
244                    	cimauth -a -u guest -n root/sampleprovider -R -W
245 kumpf         1.1  	cimauth -a -u guest -n test/static -R -W
246                    	cimauth -a -u guest -n root/SampleProvider -R -W
247                    	cimauth -a -u guest -n root -R -W
248                    	cimauth -a -u guest -n test1 -R -W
249                    	cimauth -a -u guest -n test2 -R -W
250                    	cimauth -a -u guest -n test3 -R -W
251                    	cimauth -a -u guest -n test4 -R -W
252                    	cimauth -a -u guest -n test5 -R -W
253                    	cimauth -a -u guest -n test6 -R -W
254                    	cimauth -a -u guest -n test1/test2 -R -W
255                    	cimauth -a -u guest -n test1/test2/test3 -R -W
256                    	cimauth -a -u guest -n test1/test2/test3/test4 -R -W
257                    	cimauth -a -u guest -n test1/test2/test3/test4/test5 -R -W
258                    	cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W
259                    
260                    startcimWithoutSSL:
261 david.dillard 1.15 	$(CIMSERVER_START_SERVICE)
262                    	$(SLEEP)
263 kumpf         1.1  
264                    startcimWithSSL:
265 david.dillard 1.15 	$(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true
266                    	$(SLEEP)
267 kumpf         1.1  
268                    stopcim:
269                    	$(CIMSERVER_STOP_SERVICE)
270 david.dillard 1.15 	$(SLEEP)
271 kumpf         1.1  
272                    rebuild:
273 david.dillard 1.15 	$(MAKE) -f TestMakefile -i stopcim
274 kumpf         1.1  	rm -f rebuild.txt
275                    	$(MAKE) -f TestMakefile pegasus >> rebuild.txt  2>&1
276                    
277                    pegasus:
278 david.dillard 1.15 	$(MAKE) -f Makefile rebuild

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2