Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.19 KB

code-testing.md

File metadata and controls

36 lines (28 loc) · 1.19 KB
title Code Testing
layout default

General Testing

Run meson test from your build directory. This covers most of rmw's operations. Some tests need a tool or a permission that your system may not have; those report SKIP instead of failing.

If faketime is installed, you can also run the tests with a clock set 14 years ahead. This checks that rmw still handles dates correctly after the year 2038:

meson test --setup=epochalypse

If there's a test missing, please open a ticket.

Environmental Variables

rmw's meson test suite sets a few environment variables to run the code in a controlled environment (for example, to keep it from scanning the host's real mount points during a test). They are set by the suite and are not meant for normal use.

For the current list and a description of each one, see the ENVIRONMENT section of the manual.