MCPcopy Create free account
hub / github.com/FastLED/FastLED / test_bin_to_elf_conversion

Method test_bin_to_elf_conversion

ci/tests/test_elf.py:46–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44
45class 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
68if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

load_toolsFunction · 0.90
dump_symbol_sizesFunction · 0.90
printFunction · 0.50

Tested by

no test coverage detected