Dylan Baker
bd691b847c
interpreter: use python dunders instead of lock for unpicklability
...
This simplifies things for us, as we don't have to have threading
imported for no other reason, and we can remove the
`an_unpicklable_object` from the Interpreter and mesonlib, since there
was only one user of this.
3 years ago
Dylan Baker
042016a555
unittests: add a test to Interpreter is unpicklable
...
We want this, so let's test it.
3 years ago
Dylan Baker
f073c3cfe1
environment: correctly handle cpu value aarch64_be
...
Fixes #9191
3 years ago
Dylan Baker
78f8a286d0
environment: add ppc -> ppc64 for aix to detect_cpu
...
This seems like an oversight, that we'd replace ppc with ppc64 on AIX
for the cpu_family, but not for the specific cpu.
3 years ago
Dylan Baker
b8cdae7003
unittests: add tests for detect_cpu
...
Same thing, but for the more specific cases
3 years ago
Dylan Baker
84fff3521a
unittests: Add a test case for detect_cpu_family
...
This should help prevent regressions.
3 years ago
Dylan Baker
11fbaf29d8
interpreter: fix cases of `KwargInfo(..., T, default=None)`
...
The correct way to mark these is `KwargInfo(..., (T, type(None)))`.
There's also a few cases of `(T, None)` which is invalid, as `None`
isn't a type
3 years ago
Dylan Baker
aa895b383c
interpreter: Add a helper for checking constrained inputs
...
This is quite valuable for enum-like inputs, where only a certain set
of values is allowed.
3 years ago
Dylan Baker
a450f8c6bc
interenaltests: Add some version strings with ansi escapes in them
...
AS we've run into a few programs using ansi escapes in their version
outputs, we'd like to test them as well.
3 years ago
Xavier Claessens
7eb4c23156
Split run_unittests.py file
3 years ago