您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

14 行
624B

  1. from pathlib import Path
  2. from dds_ci.testing import RepoFixture, 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: RepoFixture) -> 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)])