You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
338B

  1. from tests import DDS
  2. from tests.fileutil import set_contents
  3. from dds_ci import paths
  4. def test_lib_with_just_app(dds: DDS) -> None:
  5. dds.scope.enter_context(set_contents(
  6. dds.source_root / 'src/foo.main.cpp',
  7. b'int main() {}',
  8. ))
  9. dds.build()
  10. assert (dds.build_dir / f'foo{paths.EXE_SUFFIX}').is_file()