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