|
|
|
|
|
|
|
|
import pytest |
|
|
import pytest |
|
|
from pathlib import Path |
|
|
from pathlib import Path |
|
|
from concurrent import futures |
|
|
from concurrent import futures |
|
|
|
|
|
import shutil |
|
|
import sys |
|
|
import sys |
|
|
from typing import NoReturn, Sequence, Optional |
|
|
from typing import NoReturn, Sequence, Optional |
|
|
from typing_extensions import Protocol |
|
|
from typing_extensions import Protocol |
|
|
|
|
|
|
|
|
dds_cp = paths.BUILD_DIR / ('dds.test' + paths.EXE_SUFFIX) |
|
|
dds_cp = paths.BUILD_DIR / ('dds.test' + paths.EXE_SUFFIX) |
|
|
test_dds.path.rename(dds_cp) |
|
|
test_dds.path.rename(dds_cp) |
|
|
test_dds.path = dds_cp |
|
|
test_dds.path = dds_cp |
|
|
|
|
|
# Workaround: dds doesn't rebuild the test-driver on toolchain changes: |
|
|
|
|
|
shutil.rmtree(paths.BUILD_DIR / '_test-driver') |
|
|
test_fut = pool.submit(lambda: run_pytest(test_dds, args)) |
|
|
test_fut = pool.submit(lambda: run_pytest(test_dds, args)) |
|
|
|
|
|
|
|
|
main_fut = pool.submit(lambda: main_build(dds, args)) |
|
|
main_fut = pool.submit(lambda: main_build(dds, args)) |