diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/build/four.xml | 4 | ||||
-rw-r--r-- | src/partest/scala/tools/partest/PartestTask.scala | 14 |
2 files changed, 16 insertions, 2 deletions
diff --git a/src/build/four.xml b/src/build/four.xml index 7e5506d067..8d046df9c8 100644 --- a/src/build/four.xml +++ b/src/build/four.xml @@ -347,8 +347,8 @@ work on a JVM 1.5. <negtests dir="${test.dir}/files/neg" includes="*.scala"/> <runtests dir="${test.dir}/files"> <include name="run/**/*.scala"/> - <include name="jvm/**/*.scala"/> </runtests> + <jvmtests dir="${test.dir}/files/jvm" includes="*.scala"/> <residenttests dir="${test.dir}/files/res" includes="*.res"/> </partest> </target> @@ -385,8 +385,8 @@ work on a JVM 1.4. <negtests dir="${test.dir}/files/neg" includes="*.scala"/> <runtests dir="${test.dir}/files"> <include name="run/**/*.scala"/> - <include name="jvm/**/*.scala"/> </runtests> + <jvmtests dir="${test.dir}/files/jvm" includes="*.scala"/> <residenttests dir="${test.dir}/files/res" includes="*.res"/> </partest> </target> diff --git a/src/partest/scala/tools/partest/PartestTask.scala b/src/partest/scala/tools/partest/PartestTask.scala index 118e50ffd0..b619eaa9ca 100644 --- a/src/partest/scala/tools/partest/PartestTask.scala +++ b/src/partest/scala/tools/partest/PartestTask.scala @@ -32,6 +32,9 @@ class PartestTask extends Task { def addConfiguredRunTests(input: FileSet): Unit = runFiles = Some(input) + def addConfiguredJvmTests(input: FileSet): Unit = + jvmFiles = Some(input) + def addConfiguredJvm5Tests(input: FileSet): Unit = jvm5Files = Some(input) @@ -92,6 +95,7 @@ class PartestTask extends Task { private var pos5Files: Option[FileSet] = None private var negFiles: Option[FileSet] = None private var runFiles: Option[FileSet] = None + private var jvmFiles: Option[FileSet] = None private var jvm5Files: Option[FileSet] = None private var residentFiles: Option[FileSet] = None private var scriptFiles: Option[FileSet] = None @@ -140,6 +144,9 @@ class PartestTask extends Task { else Array() + private def getJvmFiles: Array[File] = + getFilesAndDirs(jvmFiles) + private def getJvm5Files: Array[File] = getFilesAndDirs(jvm5Files) @@ -258,6 +265,13 @@ class PartestTask extends Task { allFailures += failures } + if (getJvmFiles.size > 0) { + log("Compiling and running files") + val (successes, failures) = runTestsForFiles(getJvmFiles, "jvm") + allSucesses += successes + allFailures += failures + } + if (getJvm5Files.size > 0) { log("Compiling and running files") val (successes, failures) = runTestsForFiles(getJvm5Files, "jvm5") |