Entropy (Random-Number Generator)
Overview
See tests/drivers/entropy and tests/crypto/rand32 for the original scope of tests, its structure and description.
Requirements
You will need an ST-LINK/V2 debug tool adapter already connected to the TiaC Magpie board, which has an already configured UART console connection.
Building and Running
Drivers
Build and run the tests on target as follows:
$ ./zephyr/scripts/twister \
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--board-root bridle/boards \
--testcase-root zephyr/tests/drivers/entropy
You should see the following messages on host console:
Device testing on: | Platform | ID | Serial device | |-------------|----------|-----------------| | tiac_magpie | DT04BNT1 | /dev/ttyUSB0 | INFO - 1 test scenarios (1 configurations) selected, 0 configurations discarded due to filters. INFO - Adding tasks to the queue... INFO - Added initial list of jobs to queue INFO - 1/1 tiac_magpie tests/drivers/entropy/api/drivers.entropy PASSED (device 4.039s) INFO - 1 of 1 test configurations passed (100.00%), 0 failed, 0 skipped with 0 warnings in 52.74 seconds INFO - In total 1 test cases were executed, 0 skipped on 1 out of total 428 platforms (0.23%) INFO - 1 test configurations executed on platforms, 0 test configurations were only built. Hardware distribution summary: | Board | ID | Counter | |-------------|----------|-----------| | tiac_magpie | DT04BNT1 | 1 | INFO - Saving reports... INFO - Writing JSON report .../twister-out/twister.json INFO - Using 'zephyr' toolchain. INFO - Writing xunit report .../twister-out/twister.xml... INFO - Writing xunit report .../twister-out/twister_report.xml... INFO - Writing target report for tiac_magpie... INFO - Run completed
Cryptography
Build and run the tests on target as follows:
$ ./zephyr/scripts/twister \
--verbose --jobs 4 --inline-logs \
--enable-size-report --platform-reports \
--device-testing --hardware-map map.yaml \
--board-root bridle/boards \
--testcase-root zephyr/tests/crypto/rand32
You should see the following messages on host console:
Device testing on: | Platform | ID | Serial device | |-------------|----------|-----------------| | tiac_magpie | DT04BNT1 | /dev/ttyUSB0 | INFO - 4 test scenarios (4 configurations) selected, 0 configurations discarded due to filters. INFO - Adding tasks to the queue... INFO - Added initial list of jobs to queue INFO - 1/4 tiac_magpie tests/crypto/rand32/crypto.rand32.random_ctr_drbg PASSED (device 4.378s) INFO - 2/4 tiac_magpie tests/crypto/rand32/crypto.rand32.random_hw_xoshiro PASSED (device 4.403s) INFO - 3/4 tiac_magpie tests/crypto/rand32/crypto.rand32.random_sw_systimer PASSED (device 4.075s) INFO - 4/4 tiac_magpie tests/crypto/rand32/crypto.rand32 PASSED (device 4.265s) INFO - 4 of 4 test configurations passed (100.00%), 0 failed, 0 skipped with 0 warnings in 75.69 seconds INFO - In total 4 test cases were executed, 0 skipped on 1 out of total 428 platforms (0.23%) INFO - 4 test configurations executed on platforms, 0 test configurations were only built. Hardware distribution summary: | Board | ID | Counter | |-------------|----------|-----------| | tiac_magpie | DT04BNT1 | 4 | INFO - Saving reports... INFO - Writing JSON report .../twister-out/twister.json INFO - Using 'zephyr' toolchain. INFO - Writing xunit report .../twister-out/twister.xml... INFO - Writing xunit report .../twister-out/twister_report.xml... INFO - Writing target report for tiac_magpie... INFO - Run completed