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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2