Commit b715a300 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][docker_execution] Add test for CXX V2 API algorithms

parent 0b488f13
......@@ -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']
......@@ -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
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment