summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml81
1 files changed, 80 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 0465768e1a..8d1eb9f8b7 100644
--- a/build.xml
+++ b/build.xml
@@ -1739,9 +1739,88 @@ FORWARDED TARGETS FOR NIGHTLY BUILDS
</target>
<!-- ===========================================================================
-MISCELLANEOUS
+POSITIONS
============================================================================ -->
+ <target name="test.positions" depends="pack.done">
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/compiler"/>
+ </antcall>
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/library"/>
+ </antcall>
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/actors"/>
+ </antcall>
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/dbc"/>
+ </antcall>
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/swing"/>
+ </antcall>
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/partest"/>
+ </antcall>
+ <antcall target="test.positions.sub" inheritRefs="true">
+ <param name="test.srcs" value="${src.dir}/scalap"/>
+ </antcall>
+ <antcall target="test.positions.tests.sub" inheritRefs="true">
+ <param name="test.tests.srcs" value="${test.dir}/files/positions"/>
+ </antcall>
+ <antcall target="test.positions.tests.sub" inheritRefs="true">
+ <param name="test.tests.srcs" value="${test.dir}/files/pos"/>
+ </antcall>
+ <antcall target="test.positions.tests.sub" inheritRefs="true">
+ <param name="test.tests.srcs" value="${test.dir}/files/run"/>
+ </antcall>
+ <antcall target="test.positions.tests.sub" inheritRefs="true">
+ <param name="test.tests.srcs" value="${test.dir}/files/neg"/>
+ </antcall>
+ </target>
+
+ <target name="test.positions.sub">
+ <echo message="Validating positions for: ${test.srcs}"/>
+ <if>
+ <isfileselected file="${test.srcs}">
+ <type type="dir"/>
+ </isfileselected>
+ <then>
+ <property name="srcdir" value="${test.srcs}"/>
+ <property name="srcs" value="**/*.scala"/>
+ </then>
+ <else>
+ <dirname property="srcdir" file="${test.srcs}"/>
+ <basename property="srcs" file="${test.srcs}"/>
+ </else>
+ </if>
+ <scalacfork
+ destdir=""
+ compilerpathref="pack.classpath"
+ srcdir="${srcdir}"
+ params="-Xprint-pos -Yide-debug"
+ jvmargs="${scalacfork.jvmargs}">
+ <include name="${srcs}"/>
+ </scalacfork>
+ </target>
+
+ <target name="test.positions.tests.sub">
+ <foreach target="test.positions.sub"
+ inheritAll="true"
+ inheritRefs="true"
+ param="test.srcs">
+ <path>
+ <fileset dir="${test.tests.srcs}" includes="*.scala"/>
+ <dirset dir="${test.tests.srcs}">
+ <include name="*"/>
+ </dirset>
+ </path>
+ </foreach>
+ </target>
+
+ <!-- ===========================================================================
+ MISCELLANEOUS
+ ============================================================================ -->
+
<target name="graph.init">
<taskdef name="vizant" classname="vizant.Vizant" classpath="${lib-ant.dir}/vizant.jar"/>
</target>