Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
b715a300
Commit
b715a300
authored
Oct 11, 2018
by
Samuel GAIST
Browse files
[test][docker_execution] Add test for CXX V2 API algorithms
parent
0b488f13
Changes
2
Hide whitespace changes
Inline
Side-by-side
beat/core/test/test_docker_execution.py
View file @
b715a300
...
...
@@ -28,6 +28,8 @@
# Tests for experiment execution within Docker containers
import
os
from
..dock
import
Host
from
..execution
import
DockerExecutor
...
...
@@ -98,3 +100,27 @@ class TestDockerExecution(BaseExecutionMixIn):
# @slow
# def test_cxx_double_1(self):
# assert self.execute('user/user/double/1/cxx_double', [{'out_data': 42}]) is None
@
slow
def
test_cxx_double_legacy
(
self
):
datasets_uid
=
os
.
getuid
()
result
=
self
.
execute
(
'user/user/double/1/cxx_double_legacy'
,
[{
'out_data'
:
42
}],
datasets_uid
=
datasets_uid
)
assert
result
is
None
@
slow
def
test_cxx_double_sequential
(
self
):
datasets_uid
=
os
.
getuid
()
assert
self
.
execute
(
'user/user/double/1/cxx_double_sequential'
,
[{
'out_data'
:
42
}],
datasets_uid
=
datasets_uid
)
is
None
@
slow
def
test_cxx_double_autonomous
(
self
):
datasets_uid
=
os
.
getuid
()
assert
self
.
execute
(
'user/user/double/1/cxx_double_autonomous'
,
[{
'out_data'
:
42
}],
datasets_uid
=
datasets_uid
)
is
None
@
slow
def
test_cxx_analyzer_error
(
self
):
datasets_uid
=
os
.
getuid
()
result
=
self
.
execute
(
'user/user/double/1/cxx_analyzer_error'
,
[{
'out_data'
:
42
}],
datasets_uid
=
datasets_uid
)
assert
result
[
'status'
]
==
255
assert
"[sys] C++ algorithm can't be analyzers"
in
result
[
'stderr'
]
buildout_pull_images.sh
View file @
b715a300
...
...
@@ -3,8 +3,8 @@
IMAGES
=(
docker.idiap.ch/beat/beat.env.system.python:1.3.0r1
docker.idiap.ch/beat/beat.env.db.examples:1.4.0r1
docker.idiap.ch/beat/beat.env.cxx:
1.1.0r1
docker.idiap.ch/beat/beat.env.client:
1.3.0r1
docker.idiap.ch/beat/beat.env.cxx:
2.0.0
docker.idiap.ch/beat/beat.env.client:
2.0.0
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment