tests: Fix up to work on arbitrary architectures

The current test infrastructure is tied to x86/amd64.  This means the
tests always fail on a non-x86 architecture (like aarch64).  Fix this
by generating the efi binary directly from C code and removing the
architectural restrictions in the Makefile.am.  One of the
consequences of this is that we no longer test ia32 on x86_64, but the
difficulty of detecting which architectures can support 32 bit
variants and generating them correctly from EFI c code is too great.

We also need to exclude tests involving objdump from aarch64 since its
bfd still doesn't have an efi_app_aarch64 target.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
James Bottomley 2017-10-19 09:20:42 -07:00
parent cbbafe244b
commit f065bb5705
5 changed files with 56 additions and 38 deletions

View file

@ -24,7 +24,7 @@ function run_test()
test="$1"
# image depends on the test arch
image="$datadir/test-$arch.pecoff"
image="$datadir/test.pecoff"
export image
# create the temporary directory...