Browse Source

Run build tests with -ldebug

default_compile_flags
vector-of-bool 3 years ago
parent
commit
afbf9aed65
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      tools/dds_ci/dds.py
  2. +1
    -1
      tools/dds_ci/testing/fixtures.py

+ 3
- 1
tools/dds_ci/dds.py View File

root: Path, root: Path,
toolchain: Optional[Path] = None, toolchain: Optional[Path] = None,
build_root: Optional[Path] = None, build_root: Optional[Path] = None,
jobs: Optional[int] = None) -> None:
jobs: Optional[int] = None,
more_args: Optional[proc.CommandLine] = None) -> None:
""" """
Run 'dds build' with the given arguments. Run 'dds build' with the given arguments.


f'--jobs={jobs}', f'--jobs={jobs}',
f'{self.project_dir_flag}={root}', f'{self.project_dir_flag}={root}',
f'--out={build_root}', f'--out={build_root}',
more_args or (),
]) ])


def compile_file(self, def compile_file(self,

+ 1
- 1
tools/dds_ci/testing/fixtures.py View File

Execute 'dds build' on the project Execute 'dds build' on the project
""" """
with tc_mod.fixup_toolchain(toolchain or tc_mod.get_default_test_toolchain()) as tc: with tc_mod.fixup_toolchain(toolchain or tc_mod.get_default_test_toolchain()) as tc:
self.dds.build(root=self.root, build_root=self.build_root, toolchain=tc)
self.dds.build(root=self.root, build_root=self.build_root, toolchain=tc, more_args=['-ldebug'])


def compile_file(self, *paths: Pathish, toolchain: Optional[Pathish] = None) -> None: def compile_file(self, *paths: Pathish, toolchain: Optional[Pathish] = None) -> None:
with tc_mod.fixup_toolchain(toolchain or tc_mod.get_default_test_toolchain()) as tc: with tc_mod.fixup_toolchain(toolchain or tc_mod.get_default_test_toolchain()) as tc:

Loading…
Cancel
Save