Module capsules_extra::test::kv_system
source · Expand description
Test for Tock KV System capsules.
This capsule implements the tests for KV system libraries in Tock. This is originally written to test TicKV.
hil::flash
The tests can be enabled by adding this line to the main()
ⓘ
tickv_test::run_tickv_tests(kvstore)
You should then see the following output
---Starting TicKV Tests---
Key: [18, 52, 86, 120, 154, 188, 222, 240] with value [16, 32, 48] was added
Now retrieving the key
Key: [18, 52, 86, 120, 154, 188, 222, 240] with value [16, 32, 48, 0] was retrieved
Removed Key: [18, 52, 86, 120, 154, 188, 222, 240]
Try to read removed key: [18, 52, 86, 120, 154, 188, 222, 240]
Unable to find key: [18, 52, 86, 120, 154, 188, 222, 240]
Let's start a garbage collection
Finished garbage collection
---Finished TicKV Tests---