Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
0d3df7a8
Commit
0d3df7a8
authored
10 years ago
by
Etienne Kneuss
Browse files
Options
Downloads
Patches
Plain Diff
One reporter per test case, to avoid fatals from breaking other tests
parent
aef80512
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/scala/leon/test/repair/RepairSuite.scala
+13
-12
13 additions, 12 deletions
src/test/scala/leon/test/repair/RepairSuite.scala
with
13 additions
and
12 deletions
src/test/scala/leon/test/repair/RepairSuite.scala
+
13
−
12
View file @
0d3df7a8
...
@@ -11,13 +11,6 @@ class RepairSuite extends LeonTestSuite {
...
@@ -11,13 +11,6 @@ class RepairSuite extends LeonTestSuite {
PreprocessingPhase
andThen
PreprocessingPhase
andThen
RepairPhase
RepairPhase
val
settings
=
Settings
(
verify
=
false
,
repair
=
true
)
val
reporter
=
new
TestSilentReporter
val
ctx0
=
LeonContext
(
reporter
,
new
InterruptManager
(
reporter
)
)
val
fileToFun
=
Map
(
val
fileToFun
=
Map
(
"Compiler1.scala"
->
"desugar"
,
"Compiler1.scala"
->
"desugar"
,
"Heap4.scala"
->
"merge"
,
"Heap4.scala"
->
"merge"
,
...
@@ -29,12 +22,20 @@ class RepairSuite extends LeonTestSuite {
...
@@ -29,12 +22,20 @@ class RepairSuite extends LeonTestSuite {
for
(
file
<-
filesInResourceDir
(
"regression/repair/"
))
{
for
(
file
<-
filesInResourceDir
(
"regression/repair/"
))
{
val
path
=
file
.
getAbsoluteFile
().
toString
val
path
=
file
.
getAbsoluteFile
().
toString
val
name
=
file
.
getName
()
val
name
=
file
.
getName
()
val
option
=
LeonValueOption
(
"functions"
,
fileToFun
(
name
))
val
ctx
=
ctx0
.
copy
(
options
=
option
+:
ctx0
.
options
)
val
reporter
=
new
TestSilentReporter
val
ctx
=
LeonContext
(
reporter
=
reporter
,
interruptManager
=
new
InterruptManager
(
reporter
),
options
=
Seq
(
LeonValueOption
(
"functions"
,
fileToFun
(
name
)))
)
test
(
name
)
{
test
(
name
)
{
pipeline
.
run
(
ctx
)(
List
(
path
))
pipeline
.
run
(
ctx
)(
List
(
path
))
if
(
reporter
.
errorCount
>
0
)
{
fail
(
"Errors during repair!"
)
}
}
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment