-
Notifications
You must be signed in to change notification settings - Fork 16
/
super-build.xml
165 lines (138 loc) · 5.65 KB
/
super-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
165
<?xml version="1.0"?>
<project name="MinorThirdSuperBuild" default="build">
<description>Extended build file for MinorThird</description>
<import file="./tasks.xml"/>
<target name="build-ks" depends="init"
description="build the source ">
<!-- Compile the java code from $ into ${classDir} -->
<javac srcdir="apps/ksteppe/src" destdir="${classDir}" debug="on" classpathref="classpath"/>
</target>
<target name="kt" depends="build, build-test" description="Run the tests, halting on failure">
<mkdir dir="${reportsDir}"/>
<!-- for edu.cmu.minorthird.wcohen.bb.TestPackage -->
<mkdir dir="${testRootDir}"/>
<junit printsummary="yes" haltonfailure="no">
<!-- <jvmarg value="-Xmx600m -Xms600m"/> -->
<classpath>
<path refid="classpath"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="yes" todir="${reportsDir}">
<fileset dir="${classDir}">
<include name="**/TextLabelsLoaderTest.class"/>
<!--<include name="com/wcohen/txt/ann/POSTaggerTest.class"/>-->
<!--<include name="**/TextLabelsLoaderTest.class"/>-->
</fileset>
</batchtest>
</junit>
</target>
<!-- visual tests -->
<target name="visual-tests" depends="build, build-test" description="Run the tests, NOT halting on failure">
<mkdir dir="${reportsDir}"/>
<junit printsummary="yes" haltonfailure="no">
<!--<jvmarg value="-Xmx512m"/>-->
<classpath>
<path refid="classpath"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="no" todir="${reportsDir}">
<fileset dir="${classDir}">
<include name="**/ViewerTest.class"/>
<include name="**/BasicDatasetTest.class"/>
<include name="**/BayesClassifiersTest.class"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="base-tests" depends="build, build-test" description="Run the tests, NOT halting on failure">
<mkdir dir="${reportsDir}"/>
<!-- <mkdir dir="${testRootDir}"/> -->
<junit printsummary="yes" haltonfailure="no">
<!--<jvmarg value="-Xmx512m"/>-->
<classpath>
<path refid="classpath"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="no" todir="${reportsDir}">
<fileset dir="${classDir}">
<!-- either TestPackage or *Test -->
<include name="**/TestPackage.class"/>
<include name="**/*Test.class"/>
<include name="**/LongTestPackage.class"/>
<exclude name="**/*$*.class"/> <!-- inner classes excluded -->
<exclude name="edu/cmu/minorthird/text/learn/ClassifyTest.class"/> <!-- a base class, not to be run -->
<!-- visual tests -->
<exclude name="**/ViewerTest.class"/>
<exclude name="**/BasicDatasetTest.class"/>
<!-- requires test data -->
<exclude name="**/IOUtilTest.class"/> <!-- data -->
<exclude name="**/LibsvmTest.class"/> <!-- data -->
<exclude name="**/LearnToClassifyTest.class"/>
<exclude name="**/EdoTextLabelsTest.class"/>
<exclude name="**/BayesClassifiersTest.class"/>
<exclude name="**/TextLabelsLoaderTest.class"/>
<!-- long running time (>5 seconds) -->
<!-- <exclude name="**/POSTaggerTest.class"/> -->
<exclude name="**/MixupProgramTest.class"/>
<!-- even longer running time (>20 secs) -->
<exclude name="**/TextBaseLoaderTest.class"/>
<!-- VERY long running time (>1 minute) -->
</fileset>
</batchtest>
</junit>
</target>
<target name="data-tests" depends="build, build-test" description="Run the long tests">
<junit printsummary="yes" haltonfailure="no">
<jvmarg value="-Xmx512m"/>
<classpath>
<path refid="classpath"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="no" todir="${reportsDir}">
<fileset dir="${classDir}">
<include name="**/LearnToClassifyTest.class"/>
<include name="**/IOUtilTest.class"/> <!-- data -->
<include name="**/LearnToClassifyTest.class"/>
<include name="**/EdoTextLabelsTest.class"/>
<include name="**/TextLabelsLoaderTest.class"/>
<include name="**/TextBaseLoaderTest.class"/>
<include name="**/SimpleTextLoaderTest.class"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="all-tests" depends="base-tests, visual-tests, data-tests, long-tests" description="run everything"/>
<target name="raff-tests" depends="base-tests, data-tests, long-tests" description="run everything"/>
<!--
<include name="com/wcohen/cls/SampleDatasetsClassificationTest.class"/>
<include name="com/wcohen/cls/CompactInstanceTest.class"/>
-->
<target name="profile" depends="build, build-test" description="Run the tests, halting on failure">
<mkdir dir="${reportsDir}"/>
<!-- for edu.cmu.minorthird.wcohen.bb.TestPackage -->
<mkdir dir="${testRootDir}"/>
<junit printsummary="yes" haltonfailure="no">
<jvmarg value="-Xmx16m -Xms16m"/>
<classpath>
<path refid="classpath"/>
</classpath>
<formatter type="plain"/>
<batchtest fork="yes" todir="${reportsDir}">
<fileset dir="${classDir}">
<include name="com/wcohen/txt/TextBaseLoaderTest.class"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="mail">
<mail mailhost="ux13.sp.cs.cmu.edu" mailport="25"
subject="minorthird auto-build" encoding="plain">
<from name="mnr3rd on raff" address="[email protected]"/>
<to address="[email protected], [email protected]"/>
<message> Auto Build and Test </message>
<fileset dir="/usr1/ksteppe/minorthird/output">
<include name="*.txt"/>
</fileset>
</mail>
</target>
</project>