(self)
| 44 | |
| 45 | class TestBinToElf(unittest.TestCase): |
| 46 | def test_bin_to_elf_conversion(self) -> None: |
| 47 | # Skip test if required UNO build directory is missing |
| 48 | uno_build_dir = PROJECT_ROOT / ".build" / "uno" |
| 49 | if not uno_build_dir.exists(): |
| 50 | warnings.warn( |
| 51 | "Skipping TestBinToElf::test_bin_to_elf_conversion because .build/uno does not exist. " |
| 52 | "Run 'uv run ci/ci-compile.py uno --examples Blink' to generate it." |
| 53 | ) |
| 54 | self.skipTest(".build/uno missing; skipping ELF conversion test") |
| 55 | tools: Tools |
| 56 | try: |
| 57 | tools = load_tools(BUILD_INFO_PATH) |
| 58 | except KeyboardInterrupt as ki: |
| 59 | handle_keyboard_interrupt(ki) |
| 60 | raise |
| 61 | except Exception as e: |
| 62 | warnings.warn(f"Error while loading tools: {e}") |
| 63 | tools = load_tools(BUILD_INFO_PATH2) |
| 64 | msg = dump_symbol_sizes(tools.nm_path, tools.cpp_filt_path, ELF_FILE) |
| 65 | print(msg) |
| 66 | |
| 67 | |
| 68 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected