Page MenuHomeFreeBSD

Significantly speed up mkimg_test
ClosedPublic

Authored by arichardson on Oct 15 2020, 3:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 30, 5:43 AM
Unknown Object (File)
Tue, Jan 28, 11:31 PM
Unknown Object (File)
Sep 8 2024, 12:27 PM
Unknown Object (File)
Sep 5 2024, 4:21 PM
Unknown Object (File)
Sep 1 2024, 5:30 PM
Unknown Object (File)
Aug 24 2024, 5:58 AM
Unknown Object (File)
Aug 2 2024, 7:39 PM
Unknown Object (File)
Jun 29 2024, 11:27 AM
Subscribers

Details

Summary

It turns out that the majority of the test time for the mkimg tests isn't
mkimg itself but rather the use of jot and hexdump which can be quite slow
on emulated platforms such as QEMU.

On QEMU-RISC-V this reduces the time for kyua test mkimg_test from 655
seconds to 200. And for CheriBSD on QEMU-CHERI this saves 4-5 hours (25%
of the time for the entire testsuite!) since jot ends up triggering slow
functions inside the QEMU emulation a lot.

Test Plan

tests a lot faster and make rebase still works inside buildenv

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34184
Build 31337: arc lint + arc unit