Expand description
Host test helpers for Core crates that the full test environment depends on.
This crate must not depend on little_fs, graphics or on any other crate
that exports #[no_mangle] symbols. Crates in the environment dependency tree
use it instead of xila-testing in their own tests: otherwise their unit-test
binary links a second copy of those symbols and fails. The workspace link
check in ci:host-tests (with xila-testing/graphics) enforces this.
Re-exports§
pub use logger::Logger;
Modules§
- logger
- A logger that prints errors, warnings and information to standard output,
and checks that exercise any [
LoggerTrait] implementation.
Macros§
- instantiate_
global_ allocator - Install
MemoryManageras the global allocator and Xila memory manager.
Structs§
- Executor
- A std executor that
Executor::rununtilExecutor::stopis called. - Hash
Device - Memory
Manager - Xila memory manager for tests: every capability is served by
System. - Random
Device - Thread
Allocations - Allocation counters recorded for a single thread by
MemoryManager. - Time
Device
Enums§
- Console
Device - Standard input, output or error of the test process. Never a terminal, so tests behave the same whether or not they run interactively.
Functions§
- new_
thread_ executor - Start an executor on a new thread and register it with
manager.