
Right now the 'binman test' command fails spectacularly on arm64 since it cannot even setup the test environments properly due to errors during setUpClass(). I can get a 100% coverage result with all tests passing if I cross-compile things to x86 and run the cross-compiling versions of some tools. This series tries to implement that solution in a general way.
I think the thoroughly proper thing would be to make the tests and their files portable. I don't really know how. Another alternative is to split the test environments into multiple parts and skip the parts that can't be prepared for an architecture, but that affects the test coverage results. In any case, this series doesn't really prevent these other solutions from being implemented on top of it.
Alper Nebi Yasak (3): binman: Support cross-compiling test files to x86 binman: Use target-specific tools when cross-compiling binman: Allow resolving host-specific tools from env vars
tools/binman/elf.py | 6 ++- tools/binman/elf_test.py | 4 +- tools/binman/test/Makefile | 28 +++++++++++- tools/dtoc/fdt_util.py | 9 ++-- tools/patman/tools.py | 88 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 127 insertions(+), 8 deletions(-)