commit | 6955396e371a18db446e57afb40bcb63c838ac61 | [log] [tgz] |
---|---|---|
author | Sam Leffler <sleffler@google.com> | Thu Feb 02 23:36:01 2023 +0000 |
committer | Sam Leffler <sleffler@google.com> | Fri Feb 03 00:06:24 2023 +0000 |
tree | fcb156b98a3e5d4e043dbfe70b636a543610d847 | |
parent | f883392edfd1fcad9a659c1b1daad1a041dc4f2e [diff] |
Revert "sel4test: enable elfloader/shoehorn fudge factor" This reverts commit 7fc4940d1175a115c8520dca00bd393dd378d2b0. Change-Id: I6b03f51d659b1150d6eaccb83dda986b6f72f9b0
Library for creating and running tests for seL4.
See the Getting Started page for instructions for installing required Host dependencies and how to checkout, build and run the tests in seL4test (this project).
Small unit tests can be defined anywhere, such as libraries outside of sel4test
or in sel4test-driver
. Larger tests that do things like creating processes need to be declared inside sel4test-tests
.
To define a small unit test in a library outside of sel4test
or in sel4test-driver
:
libsel4test
as a dependency for your library and include <sel4test/test.h>
. You may also find the functions in <sel4test/testutil.h>
handy.DEFINE_TEST
macro. They are declared here.libsel4testsupport
. Add a call to any function in your test file to testreporter.c
in dummy_func()
. If you have multiple test files, then you need to call one function for each test file.For an example, take a look at libsel4serialserver/src/test.c
in sel4_libs
.
Currently unit tests are assumed to be running sequentially, standalone (i.e. not multi-threaded). Some tests rely on being the highest priority running thread in the system.
To define a larger test in sel4test-tests
:
apps/sel4test-tests/src/tests
.<../helpers.h>
.DEFINE_TEST
macro. They are declared here.For an example, take a look at trivial.c
in sel4test
.