Skip to main content

Module test

Module test 

Source
Expand description

§Proka Kernel - A kernel for ProkaOS

Copyright (C) RainSTR Studio 2025, All rights reserved.

This provides the test trait and runner.

Structs§

JumpBuffer
The Jump Buffer to save the CPU state.

Enums§

QemuExitCode
This is the QEMU exit code

Traits§

Testable
The trait that assign the function is testable.

Functions§

exit_qemu
The function to quit the QEMU
long_jmp
Restore the context and jump back to the set_jmp location.
set_jmp
Save the current context into the jump buffer. Returns 0 when saving, and 1 when returning from long_jmp.
test_runner
This is the test runner, which will run if the test begins.