You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scripts: qemu-run: add standard firmware ZTest execution flag
Added the '--test-fw-standard' execution path to the QEMU automation runner. This compiles a fully-functional baseline firmware topology (avoiding the isolated STANDALONE runtime) but still transparently links the ZTest executable blocks so they can trigger via the standard IPC boot hook.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Copy file name to clipboardExpand all lines: scripts/sof-qemu-run.py
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@ def main():
84
84
parser.add_argument("--interactive", action="store_true", help="Drop into the interactive QEMU monitor after execution completes instead of quitting natively.")
85
85
parser.add_argument("--qemu-d", default="in_asm,nochain,int", help="Options to pass to QEMU's -d flag. Defaults to 'in_asm,nochain,int'.")
86
86
parser.add_argument("--ztest", action="store_true", help="Automatically compile the firmware image with ztest_overlay.conf prior to booting.")
87
+
parser.add_argument("--test-fw-standard", action="store_true", help="Build a fully standard firmware image but forcibly natively attach test suite blocks into the OS IPC boot handler hook (circumventing standard isolated boot modes).")
87
88
parser.add_argument("--rebuild", action="store_true", help="Rebuild the firmware before running; otherwise, assumes firmware is already built.")
88
89
parser.add_argument("--timeout", type=float, default=5.0, help="Seconds to wait after the last log event before dumping registers (default: 5.0).")
89
90
parser.add_argument("--cores", type=int, default=None, help="Number of SMP cores to emulate in QEMU.")
print("\033[32;1m[sof-qemu-run] Skipping compilation/rebuild, using previously generated binaries.\033[0m\n")
147
+
elifargs.test_fw_standard:
148
+
print("\n\033[32;1m[sof-qemu-run] STANDARD FIRMWARE + ZTEST ENABLED: Tests attached to normal IPC boot hook without standalone overlay limits.\033[0m")
149
+
ifargs.rebuild:
150
+
print("\033[32;1m[sof-qemu-run] Recompiling standard Zephyr firmware natively alongside unit testing modules...\033[0m")
151
+
# Inject standard rimage build directory directly into PATH so `west sign` mathematically authenticates Zephyr.elf into Zephyr.ri directly seamlessly.
0 commit comments