Disable TIMEOUTFAULT0003 for simulation
It is very timing sensitive and relies on non-guaranteed ordering of timeout faults. In Qemu it faults about 1 in 10 times for me.
Proper long-term fix is to make the test more robust by not assuming ordering of faults, but that requires rewriting a lot of the test code.
Signed-off-by: Indan Zupancic indan@nul.nu
sel4test
Library for creating and running tests for seL4.
Setup
See the build instructions page for instructions for installing required Host dependencies and how to checkout, build and run the tests in seL4test (this project).
Usage
Small unit tests can be defined anywhere, such as libraries outside of
sel4testor insel4test-driver. Larger tests that do things like creating processes need to be declared insidesel4test-tests.Unit tests
To define a small unit test in a library outside of
sel4testor insel4test-driver:libsel4testas a dependency for your library and include<sel4test/test.h>. You may also find the functions in<sel4test/testutil.h>handy.DEFINE_TESTmacro. They are declared here.libsel4testsupport. Add a call to any function in your test file totestreporter.cindummy_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.cinsel4_libs.Assumptions
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.
Other tests
To define a larger test in
sel4test-tests:apps/sel4test-tests/src/tests.<../helpers.h>.DEFINE_TESTmacro. They are declared here.For an example, take a look at
trivial.cinsel4test.