Skip to content
Snippets Groups Projects
Commit 08f4f6ba authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Failed compilation during tests should spawn failing test

parent a6566fa7
Branches
Tags
No related merge requests found
...@@ -30,7 +30,7 @@ trait VerificationRegression extends LeonTestSuite { ...@@ -30,7 +30,7 @@ trait VerificationRegression extends LeonTestSuite {
val pipeFront: Pipeline[Program, Program] val pipeFront: Pipeline[Program, Program]
val pipeBack : Pipeline[Program, VerificationReport] val pipeBack : Pipeline[Program, VerificationReport]
private def mkTest(files: List[String])(block: Output=>Unit) = { private def mkTest(files: List[String], cat: String)(block: Output=>Unit) = {
val extraction = val extraction =
ExtractionPhase andThen ExtractionPhase andThen
PreprocessingPhase andThen PreprocessingPhase andThen
...@@ -61,6 +61,7 @@ trait VerificationRegression extends LeonTestSuite { ...@@ -61,6 +61,7 @@ trait VerificationRegression extends LeonTestSuite {
} }
case _ => case _ =>
} }
test("Compilation of test files in " + testDir + cat)(fail("Failed to compile"))
} }
} }
...@@ -74,7 +75,7 @@ trait VerificationRegression extends LeonTestSuite { ...@@ -74,7 +75,7 @@ trait VerificationRegression extends LeonTestSuite {
val files = fs map { _.getPath } val files = fs map { _.getPath }
mkTest(files)(block) mkTest(files, cat)(block)
} }
override def run(testName: Option[String], args: Args): Status = { override def run(testName: Option[String], args: Args): Status = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment