ninja test and
meson test --setup=fake_media_root will
cover most of rmw’s operations. If there’s a test missing, please open
To test using valgrind (from the build dir):
meson test --setup=valgrind
(replaces RMWTEST_HOME, introduced in v0.7.03)
RMW_FAKE_HOME=$PWD/footestWhile set, using rmw to move any files that reside on the same file system as *$PWD/footest* will be moved to the waste directories under *$PWD/footest* and rmw will use the configuration file under *$PWD/footest*.
(replaces RMWTRASH=fake-year, introduced in v0.4.01)
RMW_FAKE_YEAR=true rmw FILE(s)Then running rmw with the purge option will find the items expired and permanently delete them.
RMW_FAKE_MEDIA_ROOT (v0.7.07)If set to **true** when rmw-ing a file, relative paths will be written to the Path key of a .trashinfo file. rmw is faked into believing that all waste directories are at the top level of a device or removable medium (see also: issue 299).
RMW_FAKE_MEDIA_ROOT=true rmw FILE(s)