(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 kumpf 1.11.2.1   MKDIR = $(MUEXE) mkdirhier
 36 tony  1.5        TESTS = prestarttests poststarttests
 37 kumpf 1.1      endif
 38                
 39 kumpf 1.2      ifeq ($(OS),HPUX)
 40 kumpf 1.1        CIMSERVER_START_SERVICE = cimserver
 41 kumpf 1.8        CIMSERVER_STOP_SERVICE = cimserver -s; true
 42 kumpf 1.1        SLEEP = sleep 5
 43                  MUEXE = mu
 44 kumpf 1.11.2.1   MKDIR = $(MUEXE) mkdirhier
 45 kumpf 1.1        TESTS = prestarttests poststarttests
 46                endif
 47                
 48 david.eger 1.7      ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
 49 kumpf      1.1        CIMSERVER_START_SERVICE = cimserver
 50 kumpf      1.9        CIMSERVER_STOP_SERVICE = cimserver -s; true
 51 kumpf      1.1        SLEEP = sleep 5
 52                       MUEXE = mu
 53 kumpf      1.11.2.1   MKDIR = $(MUEXE) mkdirhier
 54 kumpf      1.1        TESTS = prestarttests poststarttests
 55                     endif
 56                     
 57                     error: 
 58                     	@ echo "Specify desired makefile option (i.e., build, rebuild)"
 59                     
 60                     buildmu:
 61 mday       1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile
 62 kumpf      1.1      	$(MKDIR) $(BIN_DIR)
 63                     
 64                     rebuild: clean buildmu all
 65                     
 66                     build: all
 67                     
 68                     all: buildmu
 69                     	$(MAKE)  -f Makefile depend
 70                     	$(MAKE)  -f Makefile all
 71                     
 72                     doc:
 73 mday       1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile
 74                     	$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile
 75 kumpf      1.1      
 76                     clean:
 77                     	$(MAKE) -f Makefile clean
 78                     
 79                     repositoryServer: 
 80                     	$(CIMSERVER_STOP_SERVICE)
 81                     	$(SLEEP)
 82                     	$(RMDIRHIER) $(REPOSITORY_ROOT)
 83                     	$(CIMSERVER_START_SERVICE)
 84                     	$(SLEEP)
 85                     	$(MAKE) -f Makefile repositoryServer
 86                     	$(MAKE) -f Makefile testrepositoryServer
 87 mday       1.6      
 88 kumpf      1.1      prestarttests: 
 89                     	$(CIMSERVER_STOP_SERVICE)
 90                     	$(SLEEP)
 91                     	$(MAKE) -f Makefile repository
 92                     	$(MAKE) -f Makefile testrepository
 93                     	$(MAKE) -f Makefile tests
 94 mday       1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install
 95 kumpf      1.1      
 96                     poststarttests:
 97 mday       1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean
 98 kumpf      1.1      	$(CIMSERVER_START_SERVICE)
 99                     	$(SLEEP)
100                     	$(MAKE) -f Makefile poststarttests
101                     
102                     tests: $(TESTS)
103 tony       1.5      ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
104                     	$(CIMSERVER_STOP_SERVICE)
105 mday       1.6      	$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall
106 tony       1.5      endif
107 kumpf      1.1      	@ echo Finished Tests
108                     
109                     ###############################################################################
110                     ##
111                     ## Trace Configuration
112                     ##
113                     ## Options:
114                     ##      XMLTraceOn: Enables XML request and response tracing.
115                     ##      ProviderLoadTraceOn: Enables Provider load tracing.
116                     ##      XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
117                     ##                                 load tracing.
118                     ##      AllTraceOn: Enables all tracing.
119                     ##      AllTraceOff: Disables all tracing.
120                     ##      list: Lists trace settings.
121                     ##
122                     ###############################################################################
123                     
124                     XMLTraceOn:
125                     	cimconfig -s traceComponents=XmlIO -c
126                     	cimconfig -s traceLevel=3 -c
127                     	cimconfig -g traceComponents
128 kumpf      1.1      	cimconfig -g traceLevel
129                     
130                     ProviderLoadTraceOn:
131                     	cimconfig -s traceComponents=ProvManager,OsAbstraction
132                     	cimconfig -s traceLevel=3 -c
133                     	cimconfig -g traceComponents
134                     	cimconfig -g traceLevel
135                     
136                     XML+ProviderLoadTraceOn:
137                     	cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
138                     	cimconfig -s traceLevel=3 -c
139                     	cimconfig -g traceComponents
140                     	cimconfig -g traceLevel
141                     
142                     AllTraceOn:
143                     	cimconfig -s traceComponents=ALL
144                     	cimconfig -s traceLevel=3 -c
145                     	cimconfig -g traceComponents
146                     	cimconfig -g traceLevel
147                     
148                     AllTraceOff:
149 kumpf      1.1      	cimconfig -s traceComponents=
150                     	cimconfig -g traceComponents
151                     	cimconfig -g traceLevel
152                     
153                     list:
154                     	cimconfig -g traceComponents
155                     	cimconfig -g traceLevel
156                     	cimconfig -g traceFilePath
157                     
158                     # DO NOT DELETE
159                     
160                     standardtests: 
161                     	$(MAKE) -f TestMakefile -i DisableSecurity
162                     	$(MAKE) -f TestMakefile TestCimmof
163                     	$(MAKE) -f TestMakefile TestNoSecurity
164                     	$(MAKE) -f TestMakefile EnableAuthentication 
165                     	$(MAKE) -f TestMakefile TestLocalSecurity
166 kumpf      1.3      	$(MAKE) -f TestMakefile TestRemoteSecurity
167 kumpf      1.4      	$(MAKE) -f TestMakefile EnableAuthorization
168                     	$(MAKE) -f TestMakefile TestAuthorization 
169 kumpf      1.1      
170                     TestNoSecurity:
171                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests
172                     	$(MAKE) -f TestMakefile RunTestClientLocal
173                     
174                     TestLocalSecurity:
175                     	$(MAKE) -f TestMakefile RunTestClientLocal
176                     	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile poststarttests HOSTNAME= PORT= USER= PASSWORD= SECURITY_ENABLED=true
177                     
178                     TestRemoteSecurity:
179                     	TestClient -user guest -password guest $(system):5988
180                     	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
181                     
182                     TestAuthorization:
183 kumpf      1.4      	DeleteNamespace -a -user guest -password guest
184 kumpf      1.1      	$(MAKE) -f TestMakefile RunTestClientLocal
185 kumpf      1.4      	TestClient -user guest -password guest $(system):5988
186                     	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/static -f Makefile poststarttests HOSTNAME=-h$(system) USER=-uguest PASSWORD=-wguest SECURITY_ENABLED=true
187 kumpf      1.1      
188                     TestSubscriptions:
189                     	$(MAKE) -f TestMakefile DisableSecurity
190                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository
191                     	$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository
192                     	$(MAKE) -f TestMakefile startcimWithoutSSL
193                     	$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest/cimv2/Subscription -f Makefile poststarttests 
194                     	$(MAKE) -f TestMakefile stopcim
195                     
196                     TestCimmof:
197                     	$(MAKE) -f Testcimmof poststarttests
198                     
199                     
200                     RunTestClientLocal:
201                     	TestClient -local
202                     
203                     DisableSecurity:
204                     	$(MAKE) -f TestMakefile -i stopcim	
205                     	cimconfig -s enableAuthentication=false -p
206                     	cimconfig -s enableNamespaceAuthorization=false -p
207                     
208 kumpf      1.1      EnableAuthentication:
209                     	$(MAKE) -f TestMakefile -i stopcim	
210                     	cimconfig -s enableAuthentication=true -p
211                     	$(MAKE) -f TestMakefile startcimWithoutSSL
212                     	$(MAKE) -f TestMakefile ConfigureUsers
213                     
214                     EnableAuthorization:
215                     	$(MAKE) -f TestMakefile -i stopcim
216 kumpf      1.10     	cimconfig -s enableNamespaceAuthorization=true -p
217 kumpf      1.1      	$(MAKE) -f TestMakefile startcimWithoutSSL
218                     	$(MAKE) -f TestMakefile -i ConfigureAuthorizations
219                     
220                     EnableSSL:
221                     	$(MAKE) -f TestMakefile -i stopcim
222                     	$(MAKE) -f TestMakefile startcimWithSSL
223                     
224                     ConfigureUsers:
225                     ifndef PEGASUS_PAM_AUTHENTICATION
226                     	cimuser -a -u guest -w guest
227                     endif
228                     
229                     ConfigureAuthorizations:
230                     	cimauth -a -u guest -n test/cimv2 -R -W
231                     	cimauth -a -u guest -n root/cimv2 -R -W
232 kumpf      1.10     	cimauth -a -u guest -n root/PG_Internal -R -W
233                     	cimauth -a -u guest -n root/PG_InterOp -R -W
234                     	cimauth -a -u guest -n root/benchmark -R -W
235                     	cimauth -a -u guest -n root/sampleprovider -R -W
236 kumpf      1.1      	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                     
255                     startcimWithSSL:
256 kumpf      1.11     	cimserver enableHttpConnection=false enableHttpsConnection=true
257 kumpf      1.1      	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