velxio/frontend/src
David Montero Crespo 558525b4b2 test: add firmware loader tests with real compiled binaries
Tests for firmwareLoader.ts utility covering:

Unit tests (44 tests):
- Format detection (.hex, .bin, .elf by magic bytes and extension)
- ELF architecture detection (AVR, ARM, RISC-V, Xtensa, big/little endian)
- binaryToIntelHex round-trip through hexParser
- ELF PT_LOAD segment extraction with synthetic and real ELF files
- readFirmwareFile for all formats and board types

Integration tests with arduino-cli compiled firmware:
- AVR: .hex and .elf loaded into AVRSimulator, start/stop verified
- RP2040: .bin and .elf loaded, base64 encoding verified
- ESP32-C3: existing fixture .bin and .elf, RISC-V detection verified

Cross-format compatibility:
- .hex → AVR, .bin → RP2040, architecture mismatch warnings
- File size limit enforcement (16MB max)

All 663 tests pass (25 test files).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 13:01:34 -03:00
..
__tests__ test: add firmware loader tests with real compiled binaries 2026-03-29 13:01:34 -03:00
assets feat: Implement Virtual File System for Raspberry Pi 3 with context menu and upload functionality 2026-03-15 14:04:01 -03:00
components feat: load precompiled firmware files (.hex, .bin, .elf) directly 2026-03-29 02:08:11 -03:00
data feat: initialize arduino-cli config and install missing cores; mark subproject commits as dirty 2026-03-24 18:33:21 -03:00
pages feat: update AboutPage with new external links and improve press section 2026-03-28 23:11:57 -03:00
services feat: add documentation page and Arduino serial integration test 2026-03-12 08:17:29 -03:00
simulation feat: remove unnecessary logging and diagnostic dumps in ESP32 worker; update WS2812 event handling in simulator store 2026-03-24 14:38:08 -03:00
store feat: remove unnecessary logging and diagnostic dumps in ESP32 worker; update WS2812 event handling in simulator store 2026-03-24 14:38:08 -03:00
types feat: remove RiscVBoard references and related code from various components 2026-03-18 23:33:20 -03:00
utils feat: load precompiled firmware files (.hex, .bin, .elf) directly 2026-03-29 02:08:11 -03:00
App.css feat: update SEO handling across various pages, enhance mobile tab navigation, and improve .gitignore for sensitive files 2026-03-23 17:15:29 -03:00
App.tsx feat: add About page with content and styling; update routing and SEO metadata 2026-03-28 16:26:29 -03:00
entry-server.tsx feat: enhance build scripts and add SEO prerendering; improve touch interactions for wire creation 2026-03-25 00:08:46 -03:00
index.css Add UserProfilePage styles for layout and design 2026-03-16 00:12:33 -03:00
main.tsx feat: add documentation page and Arduino serial integration test 2026-03-12 08:17:29 -03:00
seoRoutes.ts feat: add About page with content and styling; update routing and SEO metadata 2026-03-28 16:26:29 -03:00
vite-env.d.ts feat: add new components and simulations for logic gates, protocols, and sensors 2026-03-08 16:14:03 -03:00