(file) Return to config.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / test

  1 martin 1.17 #//%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.18 #//
  3 martin 1.17 #// Licensed to The Open Group (TOG) under one or more contributor license
  4             #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             #// this work for additional information regarding copyright ownership.
  6             #// Each contributor licenses this file to you under the OpenPegasus Open
  7             #// Source License; you may not use this file except in compliance with the
  8             #// License.
  9 martin 1.18 #//
 10 martin 1.17 #// Permission is hereby granted, free of charge, to any person obtaining a
 11             #// copy of this software and associated documentation files (the "Software"),
 12             #// to deal in the Software without restriction, including without limitation
 13             #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             #// and/or sell copies of the Software, and to permit persons to whom the
 15             #// Software is furnished to do so, subject to the following conditions:
 16 martin 1.18 #//
 17 martin 1.17 #// The above copyright notice and this permission notice shall be included
 18             #// in all copies or substantial portions of the Software.
 19 martin 1.18 #//
 20 martin 1.17 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.18 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.17 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.18 #//
 28 martin 1.17 #//////////////////////////////////////////////////////////////////////////
 29 kumpf  1.3  include $(ROOT)/mak/test.mak
 30             
 31 mike   1.2  HOSTNAME =
 32 kumpf  1.8  PORT =
 33 mike   1.2  HTTPMETHOD = -m M-POST
 34             HTTPVERSION = -v 1.1
 35 jim.wunderlich 1.16 USER = -u $(PEGASUS_TEST_USER_ID)
 36                     PASSWORD = -w $(PEGASUS_TEST_USER_PASS)
 37 kumpf          1.7  SSL =
 38 mike           1.2  
 39                     XMLREQUESTS = $(foreach i, $(XMLSCRIPTS), $i.xml)
 40                     XMLRESPONSES = $(XMLREQUESTS:.xml=.rsp)
 41                     
 42 jim.wunderlich 1.11 XMLREQUESTS_DS = $(foreach i, $(XMLSCRIPTS_DS), $i.xml)
 43                     XMLRESPONSES_DS = $(XMLREQUESTS_DS:.xml=.rsp_ds)
 44                     
 45 marek          1.19 XMLREQUESTS_STRIPPED = $(foreach i, $(XMLSCRIPTS_STRIPPED), $i.xml)
 46                     XMLRESPONSES_STRIPPED = $(XMLREQUESTS_STRIPPED:.xml=.rsp_stripped)
 47                     XMLGOODRESPONSE_STRIPPED = $(XMLREQUESTS_STRIPPED:.xml=rspgood.xml.stripped)
 48                     
 49 karl           1.19.2.2 ifeq ($(OS),$(filter $(OS),linux zos))
 50                         XMLREQUESTS_STRIPPED_MU = $(foreach i, $(XMLSCRIPTS_STRIPPED_MU), $i.xml)
 51                         XMLRESPONSES_STRIPPED_MU = $(XMLREQUESTS_STRIPPED_MU:.xml=.rsp_stripped_diff)
 52                         XMLGOODRESPONSE_STRIPPED_MU = $(XMLREQUESTS_STRIPPED_MU:.xml=rspgood.xml.stripped)
 53                         else
 54                         XMLREQUESTS_STRIPPED_MU = $(foreach i, $(XMLSCRIPTS_STRIPPED_MU), $i.xml)
 55                         XMLRESPONSES_STRIPPED_MU = $(XMLREQUESTS_STRIPPED_MU:.xml=.rsp_stripped_mu)
 56                         XMLGOODRESPONSE_STRIPPED_MU = $(XMLREQUESTS_STRIPPED_MU:.xml=rspgood.xml.stripped)
 57                         endif
 58                         
 59 marek          1.19     XMLREQUESTS_DS_STRIPPED = $(foreach i, $(XMLSCRIPTS_DS_STRIPPED), $i.xml)
 60                         XMLRESPONSES_DS_STRIPPED = $(XMLREQUESTS_DS_STRIPPED:.xml=.rsp_ds_stripped)
 61                         XMLGOODRESPONSE_DS_STRIPPED = $(XMLREQUESTS_DS_STRIPPED:.xml=rspgood.xml.stripped)
 62                         
 63 david.dillard  1.13     WBEMEXECOPTIONS = $(HOSTNAME) $(PORT) $(HTTPMETHOD) $(HTTPVERSION) $(USER) $(PASSWORD) $(SSL)
 64 mike           1.2      
 65                         %.rsp: %.xml
 66 david.dillard  1.13     	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp || cd .
 67 kumpf          1.9      	@ $(DIFF) $*rspgood.xml $(TMP_DIR)/$*.rsp
 68                         	@ $(RM) $(TMP_DIR)/$*.rsp
 69 david.dillard  1.10     	@ $(ECHO) +++ $* passed successfully +++
 70 jim.wunderlich 1.11     
 71                         ##	@ $(call DIFFSORT,file_unsorted,file_sorted)
 72                         
 73                         %.rsp_ds: %.xml
 74 david.dillard  1.13     	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_ds || cd .
 75 jim.wunderlich 1.11     	@ $(call DIFFSORT,$*rspgood.xml,$(TMP_DIR)/$*.rsp_ds)
 76                         	@ $(RM) $(TMP_DIR)/$*.rsp_ds
 77                         	@ $(ECHO) +++ $* passed successfully +++
 78                         
 79 marek          1.19     %.rsp_stripped: %.xml
 80                         	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_stripped || cd .
 81                         	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
 82                         	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*.rsp_stripped
 83                         	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*rspgood.xml.stripped
 84 karl           1.19.2.1 	@ $(DIFF) $(TMP_DIR)/$*rspgood.xml.stripped $(TMP_DIR)/$*.rsp_stripped
 85 marek          1.19     	@ $(RM) $(TMP_DIR)/$*.rsp_stripped
 86                         	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
 87                         	@ $(ECHO) +++ $* passed successfully +++
 88                         
 89 karl           1.19.2.2 # if OS = linux
 90                         %.rsp_stripped_diff: %.xml
 91                         	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_stripped_mu || cd .
 92                         	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
 93                         	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*.rsp_stripped_mu
 94                         	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*rspgood.xml.stripped
 95                         	@ $(DIFF) -I $(DIFFLINE1) -I $(DIFFLINE2) $(TMP_DIR)/$*rspgood.xml.stripped $(TMP_DIR)/$*.rsp_stripped_mu
 96                         	@ $(RM) $(TMP_DIR)/$*.rsp_stripped_mu
 97                         	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
 98                         	@ $(ECHO) +++ $* passed successfully +++
 99                         
100                         # if OS!=linux
101                         %.rsp_stripped_mu: %.xml
102                         	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_stripped_mu || cd .
103                         	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
104                         	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*.rsp_stripped_mu
105                         	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*rspgood.xml.stripped
106                         	@ $(MU) $(MULINES) $(TMP_DIR)/$*.rsp_stripped_mu
107                         	@ $(MU) $(MULINES) $(TMP_DIR)/$*rspgood.xml.stripped
108                         	@ $(DIFF) $(TMP_DIR)/$*rspgood.xml.stripped $(TMP_DIR)/$*.rsp_stripped_mu
109                         	@ $(RM) $(TMP_DIR)/$*.rsp_stripped_mu
110 karl           1.19.2.2 	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
111                         	@ $(ECHO) +++ $* passed successfully +++
112 marek          1.19     
113                         %.rsp_ds_stripped: %.xml
114                         	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_ds_stripped || cd .
115                         	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
116                         	@ $(STRIPL) $(STRIPLINES_DS) $(TMP_DIR)/$*.rsp_ds_stripped
117                         	@ $(STRIPL) $(STRIPLINES_DS) $(TMP_DIR)/$*rspgood.xml.stripped
118 karl           1.19.2.1 	@ $(call DIFFSORT,$(TMP_DIR)/$*rspgood.xml.stripped,$(TMP_DIR)/$*.rsp_ds_stripped)
119 marek          1.19     	@ $(RM) $(TMP_DIR)/$*.rsp_ds_stripped
120                         	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
121                         	@ $(ECHO) +++ $* passed successfully +++
122 karl           1.19.2.2 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2