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.

test_test_only.py 429B

123456789101112131415
  1. from contextlib import ExitStack
  2. from tests import DDS
  3. from tests.fileutil import set_contents
  4. from dds_ci import paths
  5. def test_lib_with_just_test(dds: DDS, scope: ExitStack) -> None:
  6. scope.enter_context(set_contents(
  7. dds.source_root / 'src/foo.test.cpp',
  8. b'int main() {}',
  9. ))
  10. dds.build(tests=True, apps=False, warnings=False)
  11. assert (dds.build_dir / f'test/foo{paths.EXE_SUFFIX}').is_file()