-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.xml
152 lines (135 loc) · 5.44 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<project name="cite_tools" default="usage">
<property name="enginedir" value="${basedir}/engine"/>
<property name="scriptdir" value="${basedir}/engine/scripts"/>
<property name="workdir" value="${basedir}/target/work"/>
<property name="logdir" value="${basedir}/users/geoserver"/>
<property name="cite.headless.formroot" value="forms"/>
<condition property="script.ext" value="bat" else="sh">
<os family="windows"/>
</condition>
<condition property="script.exe" value="cmd" else="sh">
<os family="windows"/>
</condition>
<target name="usage">
<echo message=""/>
<echo message="Targets:"/>
<echo message=""/>
<echo message=" wfs-1.0 --> Run WFS 1.0 tests"/>
<echo message=" wfs-1.0-log --> View WFS 1.0 test log"/>
<echo message=" wfs-1.1 --> Run WFS 1.1 tests"/>
<echo message=" wfs-1.1-log --> View WFS 1.1 test log"/>
<echo message=" wms-1.1 --> Run WMS 1.1 tests"/>
<echo message=" wms-1.1-log --> View WMS 1.1 test log"/>
<echo message=" wms-1.3 --> Run WMS 1.3 tests"/>
<echo message=" wms-1.3-log --> View WMS 1.3 test log"/>
<echo message=" wcs-1.0 --> Run WCS 1.0 tests"/>
<echo message=" wcs-1.0-log --> View WCS 1.0 test log"/>
<echo message=" wcs-1.1 --> Run WCS 1.1 tests"/>
<echo message=" wcs-1.1-log --> View WCS 1.1 test log"/>
<echo message=" clean --> Cleans results from previous test runs"/>
<echo message=" webapp --> Runs teamengine web application"/>
</target>
<target name="clean">
<delete includeemptydirs="true">
<fileset dir="users/geoserver" includes="**/*"/>
</delete>
</target>
<target name="webapp">
<exec dir="${enginedir}" executable="mvn">
<env key="MAVEN_OPTS" value="-Xmx512m"/>
<arg line="jetty:run-exploded"/>
</exec>
</target>
<target name="wfs-1.0">
<antcall target="run-test">
<param name="sources"
value="-source=${scriptdir}/wfs-1.0.0/ctl/wfs.xml"/>
<param name="session" value="wfs-1.0.0"/>
</antcall>
</target>
<target name="wfs-1.0-log">
<antcall target="view-log">
<param name="session" value="wfs-1.0.0"/>
</antcall>
</target>
<target name="wfs-1.1">
<antcall target="run-test">
<param name="sources"
value="-source=${scriptdir}/wfs-1.1.0/ctl/all.xml"/>
<param name="session" value="wfs-1.1.0"/>
</antcall>
</target>
<target name="wfs-1.1-log">
<antcall target="view-log">
<param name="session" value="wfs-1.1.0"/>
</antcall>
</target>
<target name="wms-1.1">
<antcall target="run-test">
<param name="sources" value="-source=${scriptdir}/wms-1.1.1/ctl/functions.xml -source=${scriptdir}/wms-1.1.1/ctl/wms.xml" />
<param name="session" value="wms-1.1.1"/>
</antcall>
</target>
<target name="wms-1.1-log">
<antcall target="view-log">
<param name="session" value="wms-1.1.1"/>
</antcall>
</target>
<target name="wms-1.3">
<property name="ctldir" value="${scriptdir}/wms-1.3.0/ctl"/>
<antcall target="run-test">
<param name="sources" value="-source=${ctldir}/functions.xml -source=${ctldir}/interactive.xml -source=${ctldir}/basic_elements.xml -source=${ctldir}/getcapabilities.xml -source=${ctldir}/getmap.xml -source=${ctldir}/getfeatureinfo.xml -source=${ctldir}/recommendations.xml -source=${ctldir}/dimensions.xml -source=${ctldir}/main.xml" />
<param name="session" value="wms-1.3.0"/>
</antcall>
</target>
<target name="wms-1.3-log">
<antcall target="view-log">
<param name="session" value="wms-1.3.0"/>
</antcall>
</target>
<target name="wcs-1.0">
<antcall target="run-test">
<param name="sources" value="-source=${scriptdir}/wcs-1.0.0/ctl/wcs.xml" />
<param name="session" value="wcs-1.0.0"/>
</antcall>
</target>
<target name="wcs-1.0-log">
<antcall target="view-log">
<param name="session" value="wcs-1.0.0"/>
</antcall>
</target>
<target name="wcs-1.1">
<antcall target="run-test">
<param name="sources" value="-source=${scriptdir}/wcs-1.1.1/ctl/wcs.xml" />
<param name="session" value="wcs-1.1.1"/>
</antcall>
</target>
<target name="wcs-1.1-log">
<antcall target="view-log">
<param name="session" value="wcs-1.1.1"/>
</antcall>
</target>
<!--
Fires up the engine.
Takes the following parameters:
session : Session name, ex 'wfs-1.0.0'
sources : Test sources, ex '-source=engine/scripts/wfs-1.0.0/ctl/wfs.xml'
-->
<target name="run-test">
<exec dir="." executable="${script.exe}">
<env key="JAVA_OPTS" value="-Xmx512m -Dcite.headless=${cite.headless} -Dcite.headless.formroot=${cite.headless.formroot}"/>
<!--env key="JAVA_OPTS" value="-Xmx512m -Dcite.headless=true -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"/-->
<arg line="${enginedir}/bin/test.${script.ext}"/>
<arg line="-mode=test -workdir=${workdir} -logdir=${logdir} -session=${session} ${sources}"/>
</exec>
<copy file="${basedir}/target/sessions/session.xml.${session}"
tofile="${logdir}/${session}/session.xml"/>
</target>
<target name="view-log">
<exec dir="." executable="${script.exe}">
<env key="JAVA_OPTS" value="-Xmx512m"/>
<arg line="${enginedir}/bin/viewlog.${script.ext}"/>
<arg line="-logdir=${logdir} -session=${session}"/>
</exec>
</target>
</project>