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

test_use_cryptopp.py 540B

123456789101112131415161718
  1. from tests import DDS
  2. import platform
  3. import pytest
  4. from dds_ci import proc
  5. @pytest.mark.skipif(
  6. platform.system() == 'FreeBSD',
  7. reason='This one has trouble running on FreeBSD')
  8. def test_get_build_use_cryptopp(dds: DDS):
  9. dds.catalog_import(dds.source_root / 'catalog.json')
  10. tc_fname = 'gcc.tc.jsonc' if 'gcc' in dds.default_builtin_toolchain else 'msvc.tc.jsonc'
  11. tc = str(dds.test_dir / tc_fname)
  12. dds.build(toolchain=tc)
  13. proc.check_run(
  14. (dds.build_dir / 'use-cryptopp').with_suffix(dds.exe_suffix))