| 26 | class TestBinToElf(unittest.TestCase): |
| 27 | @classmethod |
| 28 | def setUpClass(cls): |
| 29 | if DISABLED: |
| 30 | return |
| 31 | uno_build = PROJECT_ROOT / ".build" / "uno" |
| 32 | print(f"Checking for Uno build in: {uno_build}") |
| 33 | if not uno_build.exists(): |
| 34 | print("Uno build not found. Running compilation...") |
| 35 | try: |
| 36 | subprocess.run( |
| 37 | "uv run python -m ci.ci-compile uno --examples Blink", |
| 38 | shell=True, |
| 39 | check=True, |
| 40 | ) |
| 41 | print("Compilation completed successfully.") |
| 42 | except subprocess.CalledProcessError as e: |
| 43 | print(f"Error during compilation: {e}") |
| 44 | raise |
| 45 | |
| 46 | @unittest.skip("Skip bin to elf conversion test") |
| 47 | def test_bin_to_elf_conversion(self) -> None: |