<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/docs/writing_tests.md, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/docs/writing_tests.md?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/docs/writing_tests.md?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2024-07-04T06:41:52Z</updated>
<entry>
<title>docs: writing tests: update cleaning instructions</title>
<updated>2024-07-04T06:41:52Z</updated>
<author>
<name>Ivan Orlov</name>
<email>ivan.orlov0322@gmail.com</email>
</author>
<published>2024-07-01T14:11:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=0a667542950ac108e609c2bdfed4c0df87363717'/>
<id>urn:sha1:0a667542950ac108e609c2bdfed4c0df87363717</id>
<content type='text'>
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 &lt;ivan.orlov0322@gmail.com&gt;
Reviewed-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;
Signed-off-by: Ben Dooks &lt;ben.dooks@codethink.co.uk&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>docs: writing_tests: Make docs correspond the latest changes</title>
<updated>2024-03-20T05:32:58Z</updated>
<author>
<name>Ivan Orlov</name>
<email>ivan.orlov0322@gmail.com</email>
</author>
<published>2024-03-19T16:02:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=3b2f89e3d64571ad7af17f036b5ed98a0aee105e'/>
<id>urn:sha1:3b2f89e3d64571ad7af17f036b5ed98a0aee105e</id>
<content type='text'>
We should store test object files list in the `libsbi-objs-y` Makefile
variable, not in `libsbitests-objs-y`. Update the documentation
correspondingly.

Since we don't use the `console_dev` static variable directly in the
`sbi_console_test` unit test anymore, remove the paragraph which says
that we do.

Fixes: 86224ec36aed ("docs/writing_tests: Update tests paths")
Signed-off-by: Ivan Orlov &lt;ivan.orlov0322@gmail.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>docs/writing_tests: Update tests paths</title>
<updated>2024-03-19T05:50:49Z</updated>
<author>
<name>Ivan Orlov</name>
<email>ivan.orlov0322@gmail.com</email>
</author>
<published>2024-03-13T15:01:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=86224ec36aed6bb1b991bba31ab793475c8eac76'/>
<id>urn:sha1:86224ec36aed6bb1b991bba31ab793475c8eac76</id>
<content type='text'>
Since the tests should be moved to the lib/sbi/tests directory, the
documentation should be updated correspondingly. So, update the paths
where they have to be changed.

Signed-off-by: Ivan Orlov &lt;ivan.orlov0322@gmail.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>docs: Add documentation about tests and SBIUnit</title>
<updated>2024-03-10T04:28:57Z</updated>
<author>
<name>Ivan Orlov</name>
<email>ivan.orlov0322@gmail.com</email>
</author>
<published>2024-03-04T21:45:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b9e4de0641a0b4e4ed9cb0439d3b7b66fe6ef75f'/>
<id>urn:sha1:b9e4de0641a0b4e4ed9cb0439d3b7b66fe6ef75f</id>
<content type='text'>
This patch contains the documentation for SBIUnit. It describes:

- What is SBIUnit
- Simple test writing scenario
- How we can cover static functions
- How we can "mock" structures in order to test the functions which
operate on them
- SBIUnit API Reference

Signed-off-by: Ivan Orlov &lt;ivan.orlov0322@gmail.com&gt;
Reviewed-by: Andrew Jones &lt;ajones@ventanamicro.com&gt;
</content>
</entry>
</feed>
