Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
2167e38c
Commit
2167e38c
authored
2 years ago
by
Utz-Uwe Haus
Committed by
Utz-Uwe Haus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix changed return value for API functions that now return MSTRO_UNINIT
parent
85388018
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!24
Draft: Resolve "scripting interface to maestro core"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripting/check_maestro.py
+0
-28
0 additions, 28 deletions
scripting/check_maestro.py
tests/coverage.c
+4
-4
4 additions, 4 deletions
tests/coverage.c
with
4 additions
and
32 deletions
scripting/check_maestro.py
deleted
100644 → 0
+
0
−
28
View file @
85388018
# test with local pool manager only
import
maestro
as
M
def
test_local_pm
():
M
.
mstro_init
(
"
test_workflow
"
,
"
component1
"
,
0
)
cdo1
=
M
.
mstro_cdo_declare
(
"
CDO1
"
,
None
)
cdo2
=
M
.
mstro_cdo_declare
(
"
CDO2
"
,
None
)
M
.
mstro_cdo_offer
(
cdo1
)
M
.
mstro_cdo_offer
(
cdo2
)
cdo2_copy
=
M
.
mstro_cdo_declare
(
"
CDO2
"
,
None
)
M
.
mstro_cdo_require
(
cdo2_copy
)
M
.
mstro_cdo_demand
(
cdo2_copy
)
M
.
mstro_cdo_withdraw
(
cdo1
)
M
.
mstro_cdo_withdraw
(
cdo2
)
M
.
mstro_cdo_dispose
(
cdo1
)
M
.
mstro_cdo_dispose
(
cdo2
)
M
.
mstro_cdo_dispose
(
cdo2_copy
)
M
.
mstro_finalize
()
test_local_pm
()
test_local_pm
()
This diff is collapsed.
Click to expand it.
tests/coverage.c
+
4
−
4
View file @
2167e38c
...
@@ -84,19 +84,19 @@ CHEAT_TEST(invalid_cdo_declare, {
...
@@ -84,19 +84,19 @@ CHEAT_TEST(invalid_cdo_declare, {
})
})
CHEAT_TEST
(
invalid_cdo_seal
,
{
CHEAT_TEST
(
invalid_cdo_seal
,
{
cheat_assert
(
MSTRO_
INVARG
==
mstro_cdo_declaration_seal
(
NULL
));
cheat_assert
(
MSTRO_
UNINIT
==
mstro_cdo_declaration_seal
(
NULL
));
})
})
CHEAT_TEST
(
invalid_cdo_offer
,
{
CHEAT_TEST
(
invalid_cdo_offer
,
{
cheat_assert
(
MSTRO_
INVARG
==
mstro_cdo_offer
(
NULL
));
cheat_assert
(
MSTRO_
UNINIT
==
mstro_cdo_offer
(
NULL
));
})
})
CHEAT_TEST
(
invalid_cdo_withdraw
,
{
CHEAT_TEST
(
invalid_cdo_withdraw
,
{
cheat_assert
(
MSTRO_
INVARG
==
mstro_cdo_withdraw
(
NULL
));
cheat_assert
(
MSTRO_
UNINIT
==
mstro_cdo_withdraw
(
NULL
));
})
})
CHEAT_TEST
(
invalid_cdo_dispose
,
{
CHEAT_TEST
(
invalid_cdo_dispose
,
{
cheat_assert
(
MSTRO_
INVARG
==
mstro_cdo_dispose
(
NULL
));
cheat_assert
(
MSTRO_
UNINIT
==
mstro_cdo_dispose
(
NULL
));
})
})
CHEAT_TEST
(
math64
,
CHEAT_TEST
(
math64
,
...
...
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