How should QA cover compile-time options and cross-compiled firmware configurations?
Answer
Treat build options, target architecture, linker layout and feature flags as product inputs. Validate supported combinations, reject invalid ones early, archive the exact toolchain and configuration, and run smoke tests on each released binary. Use pairwise or risk-based selection when the full configuration space is too large, with dedicated coverage for safety and security options.
Strong answer includes
- treats the binary and toolchain as traceable artifacts
- covers invalid as well as supported combinations
- uses a justified combinatorial strategy
Practical example
A firmware image built with a debug-logging flag accidentally enabled ships to production because the release pipeline never ran a smoke test on the exact binary that got signed and flashed — only on a nightly build with different flags. The debug UART output later floods a safety-relevant timing loop and causes missed deadlines in the field.