Test that an Alarm implementation is working. Depends on a working
UART and debug! macro.
Test that an Alarm implementation is working by trying a few edge
cases on the delay, including delays of 1 and 0 delays. Depends
on a working UART and debug! macro.
Interface for running capsule tests.
Test that tries to enter a grant twice.
Test that an Alarm implementation is working by trying a few edge
cases on the delay, including delays of 1 and 0 delays. Depends
on a working UART and debug! macro.
Test that a Timer implementation is working by trying a few edge
cases on the interval, including intervals of 1 and 0. Depends
on a working UART and debug! macro. Tries repeating as well as
one-shot Timers.
Test entropy and random number generators. Usually, to test the
full library, these generators should be through two layers of
translation for entropy then converted to randomness. For example,
if your platform provides an Entropy32, then test Entropy32 ->
Entropy32to8 -> Entropy8to32 -> Entropy32ToRandom. Then simply ask
for ELEMENTS random numbers and print them in hex to console.
Test virtual rng for a single device
Gets a specified number of random numbers by making sequential calls to get()
Full test harness for this can be found in nano33ble/test/virtual_rng_test
Test reception on the virtualized UART: best if multiple Tests are
instantiated and tested in parallel.