Merge pull request #1542 from ninjarobot/UriTemplateMatchException
[mono.git] / mcs / class / System.Web.Services / Test / standalone / Makefile
1 MCS=mcs -g
2 MONO=MONO_PATH=../../../lib/net_4_5 mono
3 sourcefile = proxies.sources
4
5 tools: wstest.exe
6
7 proxies: proxies.dll
8
9 wstest.exe: wstest.cs
10         $(MCS) wstest.cs /r:System.Web.Services.dll
11
12 clean:
13         rm -f *.dll *.exe *~ *.pdb
14         rm -rf proxies
15         rm -rf wsdlcache
16         rm error/*
17
18 proxies.dll:
19         $(MCS) /r:System.Web.Services.dll /r:System.Data /target:library -out:proxies.dll @proxies.sources
20
21 tests: proxies
22         $(MCS) /r:proxies.dll /r:System.Web.Services.dll /r:nunit.framework.dll /r:System.Data /target:library -out:System.Web.Services-standalone_test.dll @client.sources WebServiceTest.cs
23
24 update:
25         $(MONO) --debug wstest.exe ur http://www.xmethods.net/default.disco wsdl.ignore
26         $(MONO) --debug wstest.exe ur http://localhost:8080/xsp.vsdisco
27         $(MONO) --debug wstest.exe dw
28         rm -f wsdlfiles.tar.gz
29         tar --gzip -cf wsdlfiles.tar.gz wsdl
30
31 gen:
32         $(MONO) --debug wstest.exe gp
33         $(MONO) --debug wstest.exe gc
34
35 regen:
36         $(MONO) --debug wstest.exe gp all
37
38 cls:
39         $(MONO) --debug wstest.exe clean
40
41 pack:
42         tar --gzip -cf wsdlfiles.tar.gz wsdlcache
43         gzip proxies.net.xml
44
45 winbase:
46         csc wstest.cs
47         rm -rf wsdl
48         rm -rf proxies
49         rm -f proxies.dll
50         tar xvfz wsdlfiles.tar.gz
51         wstest.exe gp
52         csc /r:System.Web.Services.dll /r:System.Data /target:library -out:proxies.dll @proxies.sources
53         $(MONO) ../../../../tools/corcompare/mono-api-info.exe proxies.net.dll > proxies.net.xml
54
55 test-wsdl: tools
56         rm -rf error/*
57         rm -rf wsdlcache
58         rm -rf proxies
59         rm -f proxies.dll
60         tar xvfz wsdlfiles.tar.gz
61         gunzip -c proxies.net.xml.gz > proxies.net.xml
62         $(MONO) wstest.exe gp
63         $(MONO) wstest.exe gc
64         mcs /r:System.Web.Services.dll /r:System.Data /target:library -out:proxies.dll @proxies.sources
65         $(MONO) ../../../../tools/corcompare/mono-api-info.exe proxies.dll > proxies.mono.xml
66         $(MONO) wstest.exe msfix proxies.net.xml
67         $(MONO) ../../../../tools/corcompare/mono-api-diff.exe proxies.net.xml proxies.mono.xml > proxies.diff.xml
68         $(MONO) wstest.exe checkdiff proxies.diff.xml
69
70 test-clients: tests
71         rm -f somefile && touch somefile
72         (tail -f somefile | xsp --root server)&
73         sleep 2
74         -harness=../../../lib/net_4_5/nunit-console.exe; \
75         if test -f $$harness; then :; else harness=../../../lib/nunit-console.exe; fi; \
76         $(MONO) $$harness System.Web.Services-standalone_test.dll
77         echo "" >> somefile
78
79 test: test-wsdl test-clients
80
81 respage:
82         $(MONO) transform.exe proxies.diff.xml ../../../../tools/corcompare/mono-api.xsl > proxies.data.html
83         cat header.html proxies.data.html > proxies.html
84         rm proxies.data.html
85
86 genfiles:
87         $(MONO) wstest.exe genfiles templates.xml