Przeglądaj źródła

Test basic non-empty sdist creation

default_compile_flags
vector-of-bool 5 lat temu
rodzic
commit
1d49aabf3a
6 zmienionych plików z 16 dodań i 0 usunięć
  1. +0
    -0
      tests/sdist/create/include/header.h
  2. +0
    -0
      tests/sdist/create/include/header.hpp
  3. +1
    -0
      tests/sdist/create/library.dds
  4. +2
    -0
      tests/sdist/create/package.dds
  5. +0
    -0
      tests/sdist/create/src/foo.cpp
  6. +13
    -0
      tests/sdist/sdist_test.py

+ 0
- 0
tests/sdist/create/include/header.h Wyświetl plik


+ 0
- 0
tests/sdist/create/include/header.hpp Wyświetl plik


+ 1
- 0
tests/sdist/create/library.dds Wyświetl plik

@@ -0,0 +1 @@
Name: foo

+ 2
- 0
tests/sdist/create/package.dds Wyświetl plik

@@ -0,0 +1,2 @@
Name: foo
Version: 1.2.3

+ 0
- 0
tests/sdist/create/src/foo.cpp Wyświetl plik


+ 13
- 0
tests/sdist/sdist_test.py Wyświetl plik

@@ -0,0 +1,13 @@
from tests.dds import DDS, dds_fixture_conf_1

@dds_fixture_conf_1('create')
def test_create_sdist(dds: DDS):
dds.sdist_create()
sd_dir = dds.build_dir / 'created-sdist.sds'
assert sd_dir.is_dir()
foo_cpp = sd_dir / 'src/foo.cpp'
assert foo_cpp.is_file()
header_hpp = sd_dir / 'include/header.hpp'
assert header_hpp.is_file()
header_h = sd_dir / 'include/header.h'
assert header_h.is_file()

Ładowanie…
Anuluj
Zapisz