[PATCH v2 03/33] dtoc: Save scan information across test runs

Simon Glass sjg at chromium.org
Sun Feb 7 01:17:28 CET 2021


At present most of the tests scan the U-Boot source tree as part of their
run. This information does not change across tests, so we can save time
by remembering it.

Add a way to set up this information and use it for each test, taking a
copy first, so as not to mess up the original.

This reduces the run time from about 1.6 seconds to 1.5 seconds on my
machine. For code coverage (which cannot run in parallel), it reduces from
33 seconds to 5.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 tools/dtoc/dtb_platdata.py | 11 ++++++++---
 tools/dtoc/main.py         |  2 ++
 tools/dtoc/test_dtoc.py    | 40 +++++++++++++++++++++++++++++++-------
 3 files changed, 43 insertions(+), 10 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list