def test_empty_sdist_create(dds: DDS): dds.scope.enter_context(basic_pkg_dds(dds)) dds.sdist_create()
def test_empty_sdist_export(dds: DDS): dds.scope.enter_context(basic_pkg_dds(dds)) dds.sdist_export()
def test_build_simple(dds: DDS): dds.scope.enter_context( set_contents(dds.source_root / 'src/f.cpp', b'void foo() {}')) dds.build()
def test_empty_with_lib_dds(dds: DDS): dds.scope.enter_context(basic_pkg_dds(dds)) dds.build()
def test_empty_dir(dds: DDS): with ensure_dir(dds.source_root): dds.build()
def test_build_empty(dds: DDS): assert not dds.source_root.exists() dds.scope.enter_context(ensure_dir(dds.source_root)) dds.build()
def test_simple_substitution(dds: DDS): dds.build()
def test_get_build_use_spdlog(dds: DDS): dds.catalog_import(dds.source_root / 'catalog.json') tc_fname = 'gcc.tc.dds' if 'gcc' in dds.default_builtin_toolchain else 'msvc.tc.dds' tc = str(dds.test_dir / tc_fname) dds.build(toolchain=tc, apps=True) proc.check_run((dds.build_dir / 'use-spdlog').with_suffix(dds.exe_suffix))
def test_deps_build(dds: DDS): dds.catalog_import(dds.source_root / 'catalog.json') assert not dds.repo_dir.exists() dds.build() assert dds.repo_dir.exists( ), '`Building` did not generate a repo directory'