diff options
| author | Ivan Orlov <ivan.orlov0322@gmail.com> | 2024-03-04 21:45:51 +0000 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-03-10 10:12:52 +0530 |
| commit | 87d8fe78653e77de33cc12b9df07fc3a202f7d49 (patch) | |
| tree | 72dcede42594f559b484092726f8bc1e5287ad3f /include | |
| parent | e5f53fdea30e1a3d2e22e5b7fec34b26f59f310f (diff) | |
| download | opensbi-87d8fe78653e77de33cc12b9df07fc3a202f7d49.tar.gz opensbi-87d8fe78653e77de33cc12b9df07fc3a202f7d49.tar.bz2 opensbi-87d8fe78653e77de33cc12b9df07fc3a202f7d49.zip | |
lib: tests: Add sbi_console test
Add the test suite covering some of the functions from
lib/sbi/sbi_console.c: putc, puts and printf. The test covers a variety
of format specifiers for printf and different strings and characters for
putc and puts.
In order to do that, the test "mocks" the sbi_console_device structure
by setting the 'console_dev' variable to the virtual console.
Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
