]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Significantly speed up mkimg_test
authorAlex Richardson <arichardson@FreeBSD.org>
Sun, 18 Oct 2020 18:35:23 +0000 (18:35 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Sun, 18 Oct 2020 18:35:23 +0000 (18:35 +0000)
commit3ac62888fc211e92785751c9bb6e73868101f65c
tree3765298765360cd5847a1925b888abda4bc00564
parentd061adc48d54ebb91b1709b16c59e8ceca895be2
Significantly speed up mkimg_test

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.

Reviewed By: lwhsu
Differential Revision: https://reviews.freebsd.org/D26796
Makefile.inc1
usr.bin/mkimg/tests/Makefile
usr.bin/mkimg/tests/mkimg_test.sh