Skip to content
Snippets Groups Projects
Commit fc3b1373 authored by Jakob Kaiser's avatar Jakob Kaiser
Browse files

fix: hw test execution

The partition for hardware runs was changed. Do no longer use partition
to decide if hw tests should be executed but other env var.

Change-Id: Ifa633a85bd54a6448c411d18f98632107f7b86e6
parent f98f962d
No related branches found
No related tags found
No related merge requests found
import unittest
import os
from os.path import join
from dlens_vx_v3.hxcomm import ManagedConnection
from dlens_vx_v3.sta import PlaybackProgramBuilder, \
......@@ -7,10 +8,20 @@ from dlens_vx_v3.hal import PPUMemoryWord, Timer
from dlens_vx_v3.halco import iter_all, PPUOnDLS
from dlens_vx_v3.tools.run_ppu_program import load_and_start_program, \
stop_program
import dlens_vx_v3.halco as halco
import dlens_vx_v3.sta as sta
from dlens_vx_v3 import halco, sta
from pylola_vx_v3 import PPUElfFile
from helpers.hwtest_common import TEST_BINARY_PATH
_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
TEST_BINARY_PATH = os.environ.get("TEST_BINARY_PATH",
join(_THIS_DIR,
os.pardir,
os.pardir,
os.pardir,
"build",
"libnux",
"test",
"with_hostcode")
)
class LibnuxBarrierTest(unittest.TestCase):
......
import unittest
import os
from os.path import join
from dlens_vx_v4.hxcomm import ManagedConnection
from dlens_vx_v4.sta import PlaybackProgramBuilder, \
......@@ -7,10 +8,20 @@ from dlens_vx_v4.hal import PPUMemoryWord, Timer
from dlens_vx_v4.halco import iter_all, PPUOnDLS
from dlens_vx_v4.tools.run_ppu_program import load_and_start_program, \
stop_program
import dlens_vx_v4.halco as halco
import dlens_vx_v4.sta as sta
from dlens_vx_v4 import halco, sta
from pylola_vx_v4 import PPUElfFile
from helpers.hwtest_common import TEST_BINARY_PATH
_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
TEST_BINARY_PATH = os.environ.get("TEST_BINARY_PATH",
join(_THIS_DIR,
os.pardir,
os.pardir,
os.pardir,
"build",
"libnux",
"test",
"with_hostcode")
)
class LibnuxBarrierTest(unittest.TestCase):
......
......@@ -141,9 +141,10 @@ def build_host_python(bld, chip_version: Integral):
name=f"libnux_barriertest_vx_v{chip_version}",
tests=f"test_barrier_vx_v{chip_version}.py",
features='use pytest pylint pycodestyle',
use='dlens_vx',
use=f'dlens_vx_v{chip_version}',
install_path='${PREFIX}/bin/tests',
skip_run=not bld.env.cube_partition,
skip_run=not (bld.env.TEST_TARGET == TestTarget.HARDWARE and
int(bld.env.CURRENT_SETUP["chip_revision"]) == chip_version),
env = bld.all_envs[''],
test_environ = dict(TEST_BINARY_PATH=os.path.join(bld.env.PREFIX, 'build', 'libnux', 'tests', 'hw', 'libnux', 'with_hostcode')),
pylint_config=join(get_toplevel_path(), "code-format", "pylintrc"),
......
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