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

Make each repair test only fail itself

parent 43c45c32
No related branches found
No related tags found
No related merge requests found
...@@ -23,15 +23,17 @@ class RepairSuite extends LeonRegressionSuite { ...@@ -23,15 +23,17 @@ class RepairSuite extends LeonRegressionSuite {
) )
for (file <- filesInResourceDir("regression/repair/", _.endsWith(".scala"))) { for (file <- filesInResourceDir("regression/repair/", _.endsWith(".scala"))) {
if (!(fileToFun contains file.getName)) {
fail(s"Don't know which function to repair for ${file.getName}")
}
val path = file.getAbsoluteFile.toString val path = file.getAbsoluteFile.toString
val name = file.getName val name = file.getName
val ctx = createLeonContext("--parallel", "--timeout=180", "--solvers=smt-z3")
test(name) { test(name) {
if (!(fileToFun contains file.getName)) {
fail(s"Don't know which function to repair for ${file.getName}")
}
val ctx = createLeonContext("--parallel", "--timeout=180", "--solvers=smt-z3", s"--functions=${fileToFun(name)}")
pipeline.run(ctx, List(path)) pipeline.run(ctx, List(path))
if(ctx.reporter.errorCount > 0) { if(ctx.reporter.errorCount > 0) {
fail("Errors during repair:\n"+ctx.reporter.asInstanceOf[TestSilentReporter].lastErrors.mkString("\n")) fail("Errors during repair:\n"+ctx.reporter.asInstanceOf[TestSilentReporter].lastErrors.mkString("\n"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment