Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cool
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hans-Peter Deifel
cool
Commits
dcb82f00
Commit
dcb82f00
authored
10 years ago
by
Thorsten Wißmann
Browse files
Options
Downloads
Patches
Plain Diff
Add statistics to testsuite output
parent
ee45f2fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/testsuite/Testsuite.ml
+3
-3
3 additions, 3 deletions
src/testsuite/Testsuite.ml
src/testsuite/Testsuite.mli
+1
-1
1 addition, 1 deletion
src/testsuite/Testsuite.mli
src/testsuite/cool-testsuite.ml
+17
-4
17 additions, 4 deletions
src/testsuite/cool-testsuite.ml
with
21 additions
and
8 deletions
src/testsuite/Testsuite.ml
+
3
−
3
View file @
dcb82f00
...
...
@@ -50,11 +50,11 @@ let runSatCheckVerbose (sc:satCheck) =
PF
.
printf
"Is %-50s "
(
cs
"1"
title
);
PF
.
printf
"%s?… "
(
sotr
expectation
);
let
res
=
runSatCheck
sc
in
if
(
res
=
expectation
)
(
if
(
res
=
expectation
)
then
PF
.
printf
"%s
\n
"
(
cs
"1;32"
"Yes"
)
else
PF
.
printf
"%s, it is %s
\n
"
(
cs
"1;31"
"No"
)
(
sotr
res
)
(
sotr
res
)
);
res
This diff is collapsed.
Click to expand it.
src/testsuite/Testsuite.mli
+
1
−
1
View file @
dcb82f00
...
...
@@ -12,5 +12,5 @@ type testResult = | Sat
type
satCheck
=
testResult
*
(
CoAlgMisc
.
sortTable
)
*
string
(* expected * functors * formula *)
val
runSatCheck
:
satCheck
->
testResult
val
runSatCheckVerbose
:
satCheck
->
uni
t
val
runSatCheckVerbose
:
satCheck
->
testResul
t
This diff is collapsed.
Click to expand it.
src/testsuite/cool-testsuite.ml
+
17
−
4
View file @
dcb82f00
...
...
@@ -10,7 +10,6 @@ let kd = [| (CM.MultiModalKD, [0]) |]
let
cl
=
[
|
(
CM
.
CoalitionLogic
,
[
0
])
|
]
let
gml
=
[
|
(
CM
.
GML
,
[
0
])
|
]
(* ============ multi modal K ============ *)
let
k_testcases
:
satCheck
list
=
let
c
a
b
=
(
a
,
k
,
b
)
in
[
c
Sat
"True"
...
...
@@ -50,10 +49,24 @@ let testcases =
]
let
main
=
let
success
=
ref
0
in
let
failed
=
ref
0
in
foreach_l
testcases
(
fun
(
name
,
table
)
->
Printf
.
printf
"
\n
==== Testing %s ====
\n
"
name
;
foreach_l
table
runSatCheckVerbose
)
Printf
.
printf
"==== Testing %s ====
\n
"
name
;
foreach_l
table
(
fun
sc
->
let
(
expected
,_,_
)
=
sc
in
let
actual
=
runSatCheckVerbose
sc
in
(* compare the expected and the actual result *)
if
actual
=
expected
then
success
:=
!
success
+
1
else
failed
:=
!
failed
+
1
);
Printf
.
printf
"
\n
"
);
let
s
n
=
if
n
=
1
then
"testcase"
else
"testcases"
in
Printf
.
printf
"=> %d %s succeeded, %d %s failed.
\n
"
!
success
(
s
!
success
)
!
failed
(
s
!
failed
)
let
_
=
main
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