|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | 3 | <project name="sabbus" default="build" xmlns:artifact="urn:maven-artifact-ant"> |
| 4 | + <include file="test/build-partest.xml" as="partest"/> |
| 5 | + |
4 | 6 | <description> |
5 | 7 | SuperSabbus for Scala core, builds the scala library and compiler. It can also package it as a simple distribution, tests it for stable bootstrapping and against the Scala test suite. |
6 | 8 | </description> |
@@ -135,7 +137,7 @@ TODO: |
135 | 137 | <property name="dists.dir" value="${basedir}/dists"/> |
136 | 138 |
|
137 | 139 | <property name="copyright.string" value="Copyright 2002-2013, LAMP/EPFL"/> |
138 | | - <property name="partest.version.number" value="0.9.2"/> |
| 140 | + <property name="partest.version.number" value="0.9.3"/> |
139 | 141 |
|
140 | 142 | <!-- These are NOT the flags used to run SuperSabbus, but the ones written |
141 | 143 | into the script runners created with scala.tools.ant.ScalaTool --> |
@@ -530,7 +532,7 @@ TODO: |
530 | 532 | <path id="quick.partest.build.path"> |
531 | 533 | <path refid="quick.scalap.build.path"/> |
532 | 534 | <path refid="partest.extras.classpath"/> |
533 | | - <pathelement location="${build-quick.dir}/classes/repl"/> |
| 535 | + <pathelement location="${build-quick.dir}/classes/repl"/> |
534 | 536 | <pathelement location="${scalacheck.jar}"/> |
535 | 537 | </path> |
536 | 538 |
|
@@ -650,11 +652,15 @@ TODO: |
650 | 652 | <path refid="partest.extras.classpath"/> |
651 | 653 | </path> |
652 | 654 |
|
| 655 | + <!-- obsolete? --> |
| 656 | + <!-- TODO - segregate swing tests (there can't be many) --> |
| 657 | + <!-- |
653 | 658 | <path id="partest.build.path"> |
654 | 659 | <path refid="pack.compiler.path"/> |
655 | 660 | <fileset dir="${partest.dir}/files/lib" includes="*.jar" /> |
656 | | - <pathelement location="${pack.dir}/lib/scala-swing.jar"/> <!-- TODO - segregate swing tests (there can't be many) --> |
| 661 | + <pathelement location="${pack.dir}/lib/scala-swing.jar"/> |
657 | 662 | </path> |
| 663 | + --> |
658 | 664 |
|
659 | 665 | <path id="test.osgi.compiler.build.path"> |
660 | 666 | <pathelement location="${test.osgi.classes}"/> |
@@ -762,8 +768,8 @@ TODO: |
762 | 768 | <touch file="${build-libs.dir}/@{project}.complete" verbose="no"/> |
763 | 769 | </then></if> |
764 | 770 | </sequential> |
765 | | - </macrodef> |
766 | | - |
| 771 | + </macrodef> |
| 772 | + |
767 | 773 | <target name="asm.done" depends="init"> <simple-javac project="asm" jar="no"/> </target> |
768 | 774 | <target name="forkjoin.done" depends="init"> <simple-javac project="forkjoin" args="-XDignore.symbol.file"/></target> |
769 | 775 |
|
@@ -1418,80 +1424,39 @@ TODO: |
1418 | 1424 | <stopwatch name="quick.sbt-interface.timer" action="total"/> |
1419 | 1425 | </target> |
1420 | 1426 |
|
1421 | | - <property name="partest.srcdir" value="files" /> <!-- TODO: make targets for `pending` and other subdirs --> |
| 1427 | + <!-- See test/build-partest.xml for the macro(s) being used here. --> |
1422 | 1428 |
|
1423 | | - <target name="test.run" depends="pack.done"> |
1424 | | - <partest showlog="yes" erroronfailed="yes" javacmd="${java.home}/bin/java" |
1425 | | - timeout="1200000" |
1426 | | - srcdir="${partest.srcdir}" |
1427 | | - scalacopts="${scalac.args.optimise}"> |
1428 | | - |
1429 | | - <compilationpath refid="partest.build.path"/> |
1430 | | - <runtests dir="${partest.dir}/${partest.srcdir}/run" includes="*.scala"/> |
1431 | | - <jvmtests dir="${partest.dir}/${partest.srcdir}/jvm" includes="*.scala"/> |
1432 | | - </partest> |
| 1429 | + <target name="test.suite" depends="pack.done"> |
| 1430 | + <testSuite/> |
1433 | 1431 | </target> |
1434 | 1432 |
|
1435 | | - <target name="test.suite" depends="pack.done"> |
1436 | | - <partest showlog="yes" erroronfailed="yes" javacmd="${java.home}/bin/java" |
1437 | | - timeout="2400000" |
1438 | | - srcdir="${partest.srcdir}" |
1439 | | - scalacopts="${scalac.args.optimise}"> |
1440 | | - <compilationpath refid="partest.build.path"/> |
1441 | | - <postests dir="${partest.dir}/${partest.srcdir}/pos" includes="*.scala"/> |
1442 | | - <negtests dir="${partest.dir}/${partest.srcdir}/neg" includes="*.scala"/> |
1443 | | - <runtests dir="${partest.dir}/${partest.srcdir}/run" includes="*.scala"/> |
1444 | | - <jvmtests dir="${partest.dir}/${partest.srcdir}/jvm" includes="*.scala"/> |
1445 | | - <residenttests dir="${partest.dir}/${partest.srcdir}/res" includes="*.res"/> |
1446 | | - <scalaptests dir="${partest.dir}/${partest.srcdir}/scalap" includes="**/*.scala"/> |
1447 | | - <scalachecktests dir="${partest.dir}/${partest.srcdir}/scalacheck"> |
1448 | | - <include name="*.scala"/> |
1449 | | - </scalachecktests> |
1450 | | - <specializedtests dir="${partest.dir}/${partest.srcdir}/specialized"> |
1451 | | - <include name="*.scala"/> |
1452 | | - </specializedtests> |
1453 | | - <instrumentedtests dir="${partest.dir}/${partest.srcdir}/instrumented"> |
1454 | | - <include name="*.scala"/> |
1455 | | - </instrumentedtests> |
1456 | | - </partest> |
| 1433 | + <target name="test.suite.color" depends="pack.done"> |
| 1434 | + <testSuite colors="8"/> |
| 1435 | + </target> |
| 1436 | + |
| 1437 | + <target name="test.run" depends="pack.done"> |
| 1438 | + <testSuite kinds="run jvm"/> |
1457 | 1439 | </target> |
1458 | 1440 |
|
1459 | 1441 | <target name="test.continuations.suite" depends="pack.done"> |
1460 | | - <partest showlog="yes" erroronfailed="yes" javacmd="${java.home}/bin/java" |
1461 | | - timeout="2400000" |
1462 | | - srcdir="${partest.srcdir}" |
1463 | | - scalacopts="${scalac.args.optimise} -Xplugin-require:continuations -P:continuations:enable"> |
1464 | | - <compilerarg value="-Xpluginsdir"/> |
1465 | | - <compilerarg file="${build-quick.dir}/misc/scala-devel/plugins"/> |
1466 | | - <compilationpath refid="partest.build.path"/> |
1467 | | - <negtests dir="${partest.dir}/${partest.srcdir}/continuations-neg" includes="*.scala"/> |
1468 | | - <runtests dir="${partest.dir}/${partest.srcdir}/continuations-run" includes="*.scala"/> |
1469 | | - </partest> |
| 1442 | + <testSuite kinds="continuations-neg continuations-run" |
| 1443 | + scalacOpts="${scalac.args.optimise} -Xpluginsdir ${build-quick.dir}/misc/scala-devel/plugins -Xplugin-require:continuations -P:continuations:enable" |
| 1444 | + /> |
1470 | 1445 | </target> |
1471 | 1446 |
|
1472 | 1447 | <target name="test.scaladoc" depends="pack.done"> |
1473 | | - <partest erroronfailed="yes" scalacopts="${scalac.args.optimise}" showlog="yes"> |
1474 | | - <compilationpath refid="partest.build.path"/> |
1475 | | - <runtests dir="${partest.dir}/scaladoc/run" includes="*.scala" /> |
1476 | | - <scalachecktests dir="${partest.dir}/scaladoc/scalacheck" includes="*.scala" /> |
1477 | | - </partest> |
| 1448 | + <testSuite kinds="run scalacheck" srcdir="scaladoc"/> |
1478 | 1449 | </target> |
1479 | 1450 |
|
1480 | 1451 | <target name="test.interactive" depends="pack.done"> |
1481 | | - <partest erroronfailed="yes" scalacopts="${scalac.args.optimise}" showlog="yes"> |
1482 | | - <compilationpath refid="partest.build.path"/> |
1483 | | - <presentationtests dir="${partest.dir}/${partest.srcdir}/presentation"> |
1484 | | - <include name="*/*.scala"/> |
1485 | | - </presentationtests> |
1486 | | - </partest> |
| 1452 | + <testSuite kinds="presentation"/> |
1487 | 1453 | </target> |
1488 | 1454 |
|
1489 | 1455 | <!-- for use in PR validation, where stability is rarely broken, so we're going to use starr for locker, |
1490 | 1456 | and skip test.stability (which requires locker == quick) --> |
1491 | 1457 | <target name="test.core" depends="test.osgi, test.sbt, test.bc, test.interactive, test.continuations.suite, test.scaladoc, test.suite"/> |
1492 | 1458 | <target name="test.done" depends="test.core, test.stability"/> |
1493 | 1459 |
|
1494 | | - |
1495 | 1460 | <!-- =========================================================================== |
1496 | 1461 | BINARY COMPATIBILITY TESTING |
1497 | 1462 | ============================================================================ --> |
|
0 commit comments