You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 3 години
преди 3 години
12345678910111213
  1. from pathlib import Path
  2. from dds_ci.testing import RepoServer, ProjectOpener
  3. from dds_ci import proc, paths, toolchain
  4. def test_get_build_use_spdlog(test_parent_dir: Path, project_opener: ProjectOpener, http_repo: RepoServer) -> None:
  5. proj = project_opener.open('project')
  6. http_repo.import_json_file(proj.root / 'catalog.json')
  7. proj.dds.repo_add(http_repo.url)
  8. tc_fname = 'gcc.tc.jsonc' if 'gcc' in toolchain.get_default_test_toolchain().name else 'msvc.tc.jsonc'
  9. proj.build(toolchain=test_parent_dir / tc_fname)
  10. proc.check_run([(proj.build_root / 'use-spdlog').with_suffix(paths.EXE_SUFFIX)])