Porting Guide (testing)
Each data structure is provided with a range of tests. These tests are implemented in a library, libtest, which offers a small and simple API, so it can be used on arbitrary platforms. The libtest library depends on liblfds itself and also on a third library, libshared. Finally, a convenience thin command line veneer, test, is provided, which is used from the command line to run the test suite and see the results.
Each of these components offers a porting abstraction layer, to mask platform differences.