Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Cosmos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Benoit Barbot
Cosmos
Commits
59cd86d2
Commit
59cd86d2
authored
Mar 06, 2019
by
Benoit Barbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve test
parent
6a677577
Pipeline
#1052
passed with stages
in 13 minutes and 54 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
4 deletions
+55
-4
Examples/testDistribution/defaultOutpoutv4
Examples/testDistribution/defaultOutpoutv4
+50
-0
Examples/testDistribution/test.ml
Examples/testDistribution/test.ml
+1
-0
Examples/testTeamCity.ml
Examples/testTeamCity.ml
+4
-4
No files found.
Examples/testDistribution/defaultOutpoutv4
0 → 100644
View file @
59cd86d2
################################################################################
########################## Cosmos ##########################
################################################################################
Actions: Generate
Temporary directory set to:tmp
Binary directory path set to:/Users/barbot/Documents/Cosmos/bin/
Start Parsing testdeterministic.grml
read model : formalism = http://formalisms.cosyverif.org/sptgd-net.fml
place i(0){
marking:0
read model : formalism = http://formalisms.cosyverif.org/sptgd-net.fml
transition ln{
id: 0
isTraced: 1
dist: DETERMINISTIC( exp(0.693147 ) , )
priority: 1
weight: 1
varDomain: {}
guard: 1
update:
}
#### Internal Memory Model of GSPN #######
colClasses{
}
transitionStruct{
transition ln{
id: 0
isTraced: 1
dist: DETERMINISTIC( exp(0.693147 ) , )
priority: 1
weight: 1
varDomain: {}
guard: 1
update:
}
}
placeStruct{
place i(0){
marking:0
}
inArcs{
}
outArcs{
(0)-- 1 --(0)
}
inhibArcs{
}
##########################################
Start Parsing
Examples/testDistribution/test.ml
View file @
59cd86d2
#
use
"../testTeamCity.ml"
;;
test_cosmos
"TestWeight"
"TestWeight.grml"
""
"--loop 2.1 --max-run 10000"
[
"Throughput_D0"
,
0
.
043395909
;
"Throughput_D2"
,
0
.
43279409
]
;;
test_cosmos
"TestWeight2"
"TestWeight2.gspn"
""
"--loop '#19' --max-run 10000"
[
"Throughput_t1"
,
17
.
27
;
"Throughput_t0"
,
1
.
727
]
;;
...
...
Examples/testTeamCity.ml
View file @
59cd86d2
...
...
@@ -9,14 +9,14 @@ let teamCity = ref true
let
_
=
if
(
Array
.
length
Sys
.
argv
)
>
1
then
teamCity
:=
false
let
test_cosmosTeamCity
testname
model
prop
opt
v
=
let
test_cosmosTeamCity
testname
model
prop
opt
v
=
try
printf
"##teamcity[testStarted name='%s' captureStandardOutput='<true>']
\n
"
testname
;
flush
stdout
;
let
result
=
exec_cosmos
model
prop
opt
true
in
print_endline
(
print_readable
result
.
haslResult
v
);
if
check_result
result
.
haslResult
v
then
then
printf
"##teamcity[testFinished name='%s' message='inside confidence interval']
\n
"
testname
else
(
printf
"##teamcity[testFailed name='%s' message='outside confidence interval']
\n
"
testname
;
...
...
@@ -35,7 +35,7 @@ let test_cosmos t m p o v =
let
test_cosmos_gspn
n
v
o
=
test_cosmos
n
(
n
^
".gspn"
)
(
n
^
".lha"
)
o
v
test_cosmos
n
(
n
^
".gspn"
)
(
n
^
".lha"
)
(
o
^
addo
)
v
let
test_cosmos_grml
n
v
o
=
test_cosmos
n
(
n
^
".grml"
)
(
n
^
"lha.grml"
)
o
v
test_cosmos
n
(
n
^
".grml"
)
(
n
^
"lha.grml"
)
(
o
^
addo
)
v
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment