support/testing/tests: add test for check_bin_arch
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 17 Aug 2021 08:39:28 +0000 (10:39 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 29 Aug 2021 09:37:32 +0000 (11:37 +0200)
commitc938698b4a9e537d3e43c692a5c2a3a15c5d8d37
treec9103d126781dd06970ee6067b7952f157801f0e
parent1259d40b0ab2d436fad088f4b9288b9899ef19a4
support/testing/tests: add test for check_bin_arch

This tests build a bogus package that installs a binary built for the
host architecture into $(TARGET_DIR), which should cause a build
failure, at least as long as the host architecture isn't ARM.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
[yann.morin.1998@free.fr: drop uneeded subprocess import to fix flake8]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/testing/tests/core/br2-external/detect-bad-arch/Config.in [new file with mode: 0644]
support/testing/tests/core/br2-external/detect-bad-arch/external.desc [new file with mode: 0644]
support/testing/tests/core/br2-external/detect-bad-arch/external.mk [new file with mode: 0644]
support/testing/tests/core/br2-external/detect-bad-arch/package/detect-bad-arch/Config.in [new file with mode: 0644]
support/testing/tests/core/br2-external/detect-bad-arch/package/detect-bad-arch/detect-bad-arch.mk [new file with mode: 0644]
support/testing/tests/core/test_bad_arch.py [new file with mode: 0644]