from tests import DDS from tests.http import RepoFixture import platform import pytest from dds_ci import proc, toolchain, paths @pytest.mark.skipif(platform.system() == 'FreeBSD', reason='This one has trouble running on FreeBSD') def test_get_build_use_cryptopp(dds: DDS, http_repo: RepoFixture) -> None: http_repo.import_json_file(dds.source_root / 'catalog.json') dds.repo_add(http_repo.url) tc_fname = 'gcc.tc.jsonc' if 'gcc' in toolchain.get_default_test_toolchain().name else 'msvc.tc.jsonc' tc = str(dds.test_dir / tc_fname) dds.build(toolchain=tc) proc.check_run([(dds.build_dir / 'use-cryptopp').with_suffix(paths.EXE_SUFFIX)])