Skip to main content

Crate testing_support

Crate testing_support 

Source
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 MemoryManager as the global allocator and Xila memory manager.

Structs§

Executor
A std executor that Executor::run until Executor::stop is called.
HashDevice
MemoryManager
Xila memory manager for tests: every capability is served by System.
RandomDevice
ThreadAllocations
Allocation counters recorded for a single thread by MemoryManager.
TimeDevice

Enums§

ConsoleDevice
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.