-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
164 lines (145 loc) · 5.52 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
153
154
155
156
157
158
159
160
161
162
163
164
<project name="TAJSCheck" default="help" basedir=".">
<property name="source-directory" value="src"/>
<property name="test-source-directory" value="test/src/"/>
<property name="build-directory" value="build"/>
<path id="class-path">
<pathelement location="${build-directory}"/>
<pathelement location="lib/selenium/"/>
<pathelement location="lib/selenium/selenium-server-standalone-3.3.1.jar"/>
<fileset dir="." includes="lib/*.jar" />
<pathelement location="ts-spec-reader/deserializers/java/src"/>
</path>
<target name="help">
<echo>
See README.md
</echo>
</target>
<target name="clean">
<delete dir="${build-directory}"/>
</target>
<target name="prepare">
<mkdir dir="${build-directory}"/>
</target>
<target name="copy-source" depends="prepare">
<copy todir="${build-directory}" >
<fileset dir="${source-directory}" includes="**"/>
</copy>
<copy todir="${build-directory}">
<fileset dir="resources" includes="**" />
</copy>
</target>
<target name="build-src" depends="prepare, copy-source">
<javac
destdir="${build-directory}"
debug="on"
includeantruntime="no"
>
<src path="ts-spec-reader/deserializers/java/src" />
<src path="${source-directory}" />
<classpath refid="class-path"/>
</javac>
</target>
<target name="build-test" depends="build-src">
<javac
destdir="${build-directory}"
debug="on"
includeantruntime="no"
>
<src path="${test-source-directory}" />
<classpath refid="class-path"/>
</javac>
</target>
<target name="build-all" depends="build-src,build-test"/>
<!-- JUnit testing -->
<target name="test" depends="build-all">
<junit printsummary="on" haltonfailure="yes" fork="true" showoutput="true">
<classpath>
<path refid="class-path"/>
<pathelement location="${build-directory}"/>
</classpath>
<formatter type="plain" usefile="false" /> <!-- to screen -->
<formatter type="plain" /> <!-- to file -->
<batchtest>
<fileset dir="${test-source-directory}" includes="**/UnitTests.java" />
<fileset dir="${test-source-directory}" includes="**/TestParsing.java" />
<fileset dir="${test-source-directory}" includes="**/TestVarious.java" />
</batchtest>
</junit>
</target>
<target name="unittest" depends="build-all">
<junit printsummary="on" haltonfailure="yes" fork="true" showoutput="true">
<classpath>
<path refid="class-path"/>
<pathelement location="${build-directory}"/>
</classpath>
<formatter type="plain" usefile="false" /> <!-- to screen -->
<formatter type="plain" /> <!-- to file -->
<batchtest>
<fileset dir="${test-source-directory}" includes="**/UnitTests.java" />
</batchtest>
</junit>
</target>
<target name="run" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.RunSingle">
<jvmarg line="-Xmx6G" />
<arg value="${name}"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
<target name="run-all" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.AutomaticExperiments">
<jvmarg line="-Xmx6G" />
<arg value="RUNALL"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
<target name="RQ1.1" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.AutomaticExperiments">
<jvmarg line="-Xmx6G" />
<arg value="CountMismatches"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
<target name="RQ1.2" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.AutomaticExperiments">
<jvmarg line="-Xmx6G" />
<arg value="CompareConfigurations"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
<target name="RQ1.3" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.AutomaticExperiments">
<jvmarg line="-Xmx6G" />
<arg value="Coverage"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
<target name="run-trivial" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.RunSingleTrivial">
<jvmarg line="-Xmx6G" />
<arg value="${name}"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
<target name="qualitative" depends="build-all">
<java fork="yes" classname="dk.webbies.tajscheck.test.experiments.ManualExperiment">
<jvmarg line="-Xmx6G" />
<arg value="${name}"/>
<classpath>
<path refid="class-path"/>
</classpath>
</java>
</target>
</project>