summaryrefslogtreecommitdiff
path: root/docs/jsonvalidator.py
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2024-10-02 12:43:17 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2024-10-02 22:58:50 +0300
commit1c11a04f94ae18fbe494cce84038763f11b65583 (patch)
treefb8e44ba5bc2452e22471203a0dff23750501b16 /docs/jsonvalidator.py
parent6224a7f48e16852dd49fc85b02a5c508500d6db0 (diff)
downloadmeson-1c11a04f94ae18fbe494cce84038763f11b65583.tar.gz
unittests: Test env2mfile's dpkg_architecture_to_machine_info
This test parses several possible outputs of dpkg-architecture and asserts that they produce the expected MachineInfo. To avoid depending on suitable cross-tools being installed, use unittest.mock to override locate_path with a version that pretends that all of the tools we're interested in are in /usr/bin. Similarly, use mock environment variables to exercise what happens when we have those set. The test data used here exercises most variations: * big- and little-endianness * GNU CPU (x86_64) differing from dpkg CPU (amd64) * Linux, kFreeBSD and Hurd * special-cased architectures: x86, arm, mips64el, ppc64el expected_compilers() intentionally doesn't assume that every compiler is gcc (even though they all are, right now), because #13721 proposes adding valac which does not take a gcc suffix. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'docs/jsonvalidator.py')
0 files changed, 0 insertions, 0 deletions