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

14 行
539B

  1. from tests import DDS
  2. from tests.http import RepoFixture
  3. from dds_ci import proc, paths, toolchain
  4. def test_get_build_use_spdlog(dds: DDS, http_repo: RepoFixture) -> None:
  5. http_repo.import_json_file(dds.source_root / 'catalog.json')
  6. dds.repo_add(http_repo.url)
  7. tc_fname = 'gcc.tc.jsonc' if 'gcc' in toolchain.get_default_test_toolchain().name else 'msvc.tc.jsonc'
  8. tc = str(dds.test_dir / tc_fname)
  9. dds.build(toolchain=tc, apps=True)
  10. proc.check_run([(dds.build_dir / 'use-spdlog').with_suffix(paths.EXE_SUFFIX)])