()
| 25 | |
| 26 | |
| 27 | def init() -> None: |
| 28 | uno_build = PROJECT_ROOT / ".build" / "uno" |
| 29 | print(f"Checking for Uno build in: {uno_build}") |
| 30 | if not BUILD_INFO_PATH.exists() or not TOOLCHAIN_AVR.exists(): |
| 31 | print("Uno build not found. Running compilation...") |
| 32 | try: |
| 33 | subprocess.run( |
| 34 | "uv run python -m ci.ci-compile uno --examples Blink", |
| 35 | shell=True, |
| 36 | check=True, |
| 37 | cwd=str(PROJECT_ROOT), |
| 38 | ) |
| 39 | print("Compilation completed successfully.") |
| 40 | except subprocess.CalledProcessError as e: |
| 41 | print(f"Error during compilation: {e}") |
| 42 | raise |
| 43 | |
| 44 | |
| 45 | class TestBinToElf(unittest.TestCase): |
no test coverage detected