Exemplo n.º 1
0
def test_empty_sdist_create(dds: DDS):
    dds.scope.enter_context(basic_pkg_dds(dds))
    dds.sdist_create()
Exemplo n.º 2
0
def test_empty_sdist_export(dds: DDS):
    dds.scope.enter_context(basic_pkg_dds(dds))
    dds.sdist_export()
Exemplo n.º 3
0
def test_build_simple(dds: DDS):
    dds.scope.enter_context(
        set_contents(dds.source_root / 'src/f.cpp', b'void foo() {}'))
    dds.build()
Exemplo n.º 4
0
def test_empty_with_lib_dds(dds: DDS):
    dds.scope.enter_context(basic_pkg_dds(dds))
    dds.build()
Exemplo n.º 5
0
def test_empty_dir(dds: DDS):
    with ensure_dir(dds.source_root):
        dds.build()
Exemplo n.º 6
0
def test_build_empty(dds: DDS):
    assert not dds.source_root.exists()
    dds.scope.enter_context(ensure_dir(dds.source_root))
    dds.build()
Exemplo n.º 7
0
def test_simple_substitution(dds: DDS):
    dds.build()
Exemplo n.º 8
0
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))
Exemplo n.º 9
0
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'