docs: writing tests: update cleaning instructions

After the changes introduced by the previous patches are applied, there
is no need of the manual removal of the `build/` directory every time
new test is added. Running `make clean` should be enough to regenerate
the carray-related files.

Update the documentation correspondingly.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Ivan Orlov 2024-07-01 15:11:01 +01:00 committed by Anup Patel
parent 1ede0cab0e
commit 0a66754295
1 changed files with 1 additions and 3 deletions

View File

@ -57,9 +57,7 @@ carray-sbi_unit_tests-$(CONFIG_SBIUNIT) += string_test_suite
libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_string_test.o libsbi-objs-$(CONFIG_SBIUNIT) += tests/sbi_string_test.o
``` ```
If you compiled OpenSBI with CONFIG_SBIUNIT enabled before, you may need to Now, run `make clean` in order to regenerate the carray-related files.
manually remove the build folder in order to regenerate the carray files:
`rm -rf build/`.
Recompile OpenSBI with the CONFIG_SBIUNIT option enabled and run it in QEMU. Recompile OpenSBI with the CONFIG_SBIUNIT option enabled and run it in QEMU.
You will see something like this: You will see something like this: