(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 rohini.deshpande 1.21 XMLREQUESTS_STRIPPED_MU = $(foreach i, $(XMLSCRIPTS_STRIPPED_MU), $i.xml)
 50                       XMLRESPONSES_STRIPPED_MU = $(XMLREQUESTS_STRIPPED_MU:.xml=.rsp_stripped_mu)
 51                       XMLGOODRESPONSE_STRIPPED_MU = $(XMLREQUESTS_STRIPPED_MU:.xml=rspgood.xml.stripped)
 52                       
 53 marek            1.19 XMLREQUESTS_DS_STRIPPED = $(foreach i, $(XMLSCRIPTS_DS_STRIPPED), $i.xml)
 54                       XMLRESPONSES_DS_STRIPPED = $(XMLREQUESTS_DS_STRIPPED:.xml=.rsp_ds_stripped)
 55                       XMLGOODRESPONSE_DS_STRIPPED = $(XMLREQUESTS_DS_STRIPPED:.xml=rspgood.xml.stripped)
 56                       
 57 david.dillard    1.13 WBEMEXECOPTIONS = $(HOSTNAME) $(PORT) $(HTTPMETHOD) $(HTTPVERSION) $(USER) $(PASSWORD) $(SSL)
 58 mike             1.2  
 59                       %.rsp: %.xml
 60 david.dillard    1.13 	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp || cd .
 61 kumpf            1.9  	@ $(DIFF) $*rspgood.xml $(TMP_DIR)/$*.rsp
 62                       	@ $(RM) $(TMP_DIR)/$*.rsp
 63 david.dillard    1.10 	@ $(ECHO) +++ $* passed successfully +++
 64 jim.wunderlich   1.11 
 65                       ##	@ $(call DIFFSORT,file_unsorted,file_sorted)
 66                       
 67                       %.rsp_ds: %.xml
 68 david.dillard    1.13 	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_ds || cd .
 69 jim.wunderlich   1.11 	@ $(call DIFFSORT,$*rspgood.xml,$(TMP_DIR)/$*.rsp_ds)
 70                       	@ $(RM) $(TMP_DIR)/$*.rsp_ds
 71                       	@ $(ECHO) +++ $* passed successfully +++
 72                       
 73                       
 74 marek            1.19 %.rsp_stripped: %.xml
 75                       	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_stripped || cd .
 76                       	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
 77                       	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*.rsp_stripped
 78                       	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*rspgood.xml.stripped
 79 venkat.puvvada   1.20 	@ $(DIFF) $(TMP_DIR)/$*rspgood.xml.stripped $(TMP_DIR)/$*.rsp_stripped
 80 marek            1.19 	@ $(RM) $(TMP_DIR)/$*.rsp_stripped
 81                       	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
 82                       	@ $(ECHO) +++ $* passed successfully +++
 83                       
 84 rohini.deshpande 1.21 %.rsp_stripped_mu: %.xml
 85                       	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_stripped_mu || cd .
 86                       	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
 87                       	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*.rsp_stripped_mu
 88                       	@ $(STRIPL) $(STRIPLINES) $(TMP_DIR)/$*rspgood.xml.stripped
 89                       	@ $(MU) $(MULINES) $(TMP_DIR)/$*.rsp_stripped_mu
 90                       	@ $(MU) $(MULINES) $(TMP_DIR)/$*rspgood.xml.stripped
 91                       	@ $(DIFF) $(TMP_DIR)/$*rspgood.xml.stripped $(TMP_DIR)/$*.rsp_stripped_mu
 92                       	@ $(RM) $(TMP_DIR)/$*.rsp_stripped_mu
 93                       	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
 94                       	@ $(ECHO) +++ $* passed successfully +++
 95 marek            1.19 
 96                       %.rsp_ds_stripped: %.xml
 97                       	@ wbemexec $(WBEMEXECOPTIONS) $*.xml > $(TMP_DIR)/$*.rsp_ds_stripped || cd .
 98                       	@ $(COPY) $*rspgood.xml $(TMP_DIR)/$*rspgood.xml.stripped
 99                       	@ $(STRIPL) $(STRIPLINES_DS) $(TMP_DIR)/$*.rsp_ds_stripped
100                       	@ $(STRIPL) $(STRIPLINES_DS) $(TMP_DIR)/$*rspgood.xml.stripped
101 venkat.puvvada   1.20 	@ $(call DIFFSORT,$(TMP_DIR)/$*rspgood.xml.stripped,$(TMP_DIR)/$*.rsp_ds_stripped)
102 marek            1.19 	@ $(RM) $(TMP_DIR)/$*.rsp_ds_stripped
103                       	@ $(RM) $(TMP_DIR)/$*rspgood.xml.stripped
104                       	@ $(ECHO) +++ $* passed successfully +++
105 rohini.deshpande 1.21 

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2