Skip to main content

Crate axtest_macros

Crate axtest_macros 

Source
Expand description

Procedural macros for the axtest runtime.

This crate provides two attribute macros:

  • def_mod for declaring test modules with optional init/exit hooks.
  • axtest / def_test for registering test functions into the linker-collected .axtest_array section.

The generated descriptors are consumed by axtest::init().run_tests() at runtime.

Attribute Macrosยง

axtest
Define and register a test case for the axtest runtime.
def_mod
Define a test module that is only compiled under cfg(axtest).
def_test
tests
Define an axtest module and generate the kernel test entry point.