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)
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
Unknown Object (File)
May 24 2024, 5:39 AM
Unknown Object (File)
Apr 30 2024, 8:49 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable