]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Significantly speed up mkimg_test
authorarichardson <arichardson@FreeBSD.org>
Sun, 18 Oct 2020 18:35:23 +0000 (18:35 +0000)
committerarichardson <arichardson@FreeBSD.org>
Sun, 18 Oct 2020 18:35:23 +0000 (18:35 +0000)
commit9a50431145cc6da068ac931ff2269dbbcb180220
tree3765298765360cd5847a1925b888abda4bc00564
parentcd12cd6f90817410ce7903d64d2ea2c3622f34e6
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