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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2